mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
- Get afd to build.
svn path=/trunk/; revision=20658
This commit is contained in:
parent
9e3f61ba5d
commit
d805761fd6
8 changed files with 16 additions and 15 deletions
|
@ -65,7 +65,7 @@ NTSTATUS MakeSocketIntoConnection( PAFD_FCB FCB ) {
|
|||
return Status;
|
||||
}
|
||||
|
||||
static NTSTATUS DDKAPI StreamSocketConnectComplete
|
||||
static NTSTATUS NTAPI StreamSocketConnectComplete
|
||||
( PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp,
|
||||
PVOID Context ) {
|
||||
|
|
|
@ -72,7 +72,7 @@ static VOID SatisfyPreAccept( PIRP Irp, PAFD_TDI_OBJECT_QELT Qelt ) {
|
|||
IoCompleteRequest( Irp, IO_NETWORK_INCREMENT );
|
||||
}
|
||||
|
||||
static NTSTATUS DDKAPI ListenComplete
|
||||
static NTSTATUS NTAPI ListenComplete
|
||||
( PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp,
|
||||
PVOID Context ) {
|
||||
|
|
|
@ -232,7 +232,7 @@ VOID SocketStateUnlock( PAFD_FCB FCB ) {
|
|||
ExReleaseFastMutex( &FCB->Mutex );
|
||||
}
|
||||
|
||||
NTSTATUS DDKAPI UnlockAndMaybeComplete
|
||||
NTSTATUS NTAPI UnlockAndMaybeComplete
|
||||
( PAFD_FCB FCB, NTSTATUS Status, PIRP Irp,
|
||||
UINT Information,
|
||||
PIO_COMPLETION_ROUTINE Completion,
|
||||
|
|
|
@ -47,9 +47,10 @@ static NTSTATUS TryToSatisfyRecvRequestFromBuffer( PAFD_FCB FCB,
|
|||
UINT i, BytesToCopy = 0,
|
||||
BytesAvailable =
|
||||
FCB->Recv.Content - FCB->Recv.BytesUsed;
|
||||
*TotalBytesCopied = 0;
|
||||
PAFD_MAPBUF Map;
|
||||
NTSTATUS Status;
|
||||
*TotalBytesCopied = 0;
|
||||
|
||||
|
||||
AFD_DbgPrint(MID_TRACE,("Called, BytesAvailable = %d\n",
|
||||
BytesAvailable));
|
||||
|
@ -210,7 +211,7 @@ static NTSTATUS ReceiveActivity( PAFD_FCB FCB, PIRP Irp ) {
|
|||
return RetStatus;
|
||||
}
|
||||
|
||||
NTSTATUS DDKAPI ReceiveComplete
|
||||
NTSTATUS NTAPI ReceiveComplete
|
||||
( PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp,
|
||||
PVOID Context ) {
|
||||
|
@ -418,7 +419,7 @@ SatisfyPacketRecvRequest( PAFD_FCB FCB, PIRP Irp,
|
|||
return Status;
|
||||
}
|
||||
|
||||
NTSTATUS DDKAPI
|
||||
NTSTATUS NTAPI
|
||||
PacketSocketRecvComplete(
|
||||
PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp,
|
||||
|
|
|
@ -8,9 +8,7 @@
|
|||
* CSH 01/09-2000 Created
|
||||
*/
|
||||
#include <afd.h>
|
||||
#ifndef _MSC_VER
|
||||
#include <pseh/pseh.h>
|
||||
#endif
|
||||
#include "debug.h"
|
||||
#include "tdiconn.h"
|
||||
#include "tdi_proto.h"
|
||||
|
|
|
@ -183,6 +183,7 @@ TdiBuildConnectionInfoPair
|
|||
PCHAR LayoutFrame;
|
||||
UINT SizeOfEntry;
|
||||
ULONG TdiAddressSize;
|
||||
PTDI_CONNECTION_INFORMATION FromTdiConn, ToTdiConn;
|
||||
|
||||
/* FIXME: Get from socket information */
|
||||
TdiAddressSize = TdiAddressSizeFromType(From->Address[0].AddressType);
|
||||
|
@ -197,8 +198,7 @@ TdiBuildConnectionInfoPair
|
|||
|
||||
RtlZeroMemory( LayoutFrame, 2 * SizeOfEntry );
|
||||
|
||||
PTDI_CONNECTION_INFORMATION
|
||||
FromTdiConn = (PTDI_CONNECTION_INFORMATION)LayoutFrame,
|
||||
FromTdiConn = (PTDI_CONNECTION_INFORMATION)LayoutFrame;
|
||||
ToTdiConn = (PTDI_CONNECTION_INFORMATION)LayoutFrame + SizeOfEntry;
|
||||
|
||||
if (From != NULL) {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "tdiconn.h"
|
||||
#include "debug.h"
|
||||
|
||||
static NTSTATUS DDKAPI SendComplete
|
||||
static NTSTATUS NTAPI SendComplete
|
||||
( PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp,
|
||||
PVOID Context ) {
|
||||
|
@ -159,7 +159,7 @@ static NTSTATUS DDKAPI SendComplete
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static NTSTATUS DDKAPI PacketSocketSendComplete
|
||||
static NTSTATUS NTAPI PacketSocketSendComplete
|
||||
( PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp,
|
||||
PVOID Context ) {
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include <string.h>
|
||||
#define _WINBASE_
|
||||
#define _WINDOWS_H
|
||||
#define _INC_WINDOWS
|
||||
#include <windef.h>
|
||||
#include <winsock2.h>
|
||||
#include <afd/shared.h>
|
||||
|
||||
|
@ -201,7 +203,7 @@ PAFD_WSABUF LockBuffers( PAFD_WSABUF Buf, UINT Count,
|
|||
BOOLEAN Write, BOOLEAN LockAddress );
|
||||
VOID UnlockBuffers( PAFD_WSABUF Buf, UINT Count, BOOL Address );
|
||||
UINT SocketAcquireStateLock( PAFD_FCB FCB );
|
||||
NTSTATUS DDKAPI UnlockAndMaybeComplete
|
||||
NTSTATUS NTAPI UnlockAndMaybeComplete
|
||||
( PAFD_FCB FCB, NTSTATUS Status, PIRP Irp,
|
||||
UINT Information,
|
||||
PIO_COMPLETION_ROUTINE Completion,
|
||||
|
@ -223,12 +225,12 @@ VOID DestroySocket( PAFD_FCB FCB );
|
|||
|
||||
/* read.c */
|
||||
|
||||
NTSTATUS DDKAPI ReceiveComplete
|
||||
NTSTATUS NTAPI ReceiveComplete
|
||||
( PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp,
|
||||
PVOID Context );
|
||||
|
||||
NTSTATUS DDKAPI PacketSocketRecvComplete
|
||||
NTSTATUS NTAPI PacketSocketRecvComplete
|
||||
( PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp,
|
||||
PVOID Context );
|
||||
|
|
Loading…
Reference in a new issue