47{
65
66
69 FileInfoSize,
73
77
86
88 &TcpDeviceName,
92
94 &AddressHandle,
97 &StatusBlock,
98 0,
104 FileInfoSize);
106
108
109
112 FileInfoSize,
116
121
126 &StatusBlock,
127 0,
133 FileInfoSize);
135
137
138
144 (
PVOID*)&ConnectionFileObject,
149
150
153 ok(
Irp !=
NULL,
"IoAllocateIrp failed.\n");
154
157
160 {
161 trace(
"Associate address IRP is pending.\n");
169 trace(
"Associate address IRP completed.\n");
170 }
173
174
176
177
179 ok(
Irp !=
NULL,
"IoAllocateIrp failed.\n");
180
181
192
193
198
201 ConnectionFileObject,
205 &RequestInfo,
206 &ReturnInfo);
208
211 {
212 trace(
"Connect IRP is pending.\n");
220 trace(
"Connect IRP completed.\n");
221 }
224
225
232
238
240
243}
#define ok_eq_pointer(value, expected)
#define ok_eq_hex(value, expected)
#define ok_eq_long(value, expected)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define FILE_ATTRIBUTE_NORMAL
#define ExAllocatePoolWithTag(hernya, size, tag)
#define KeWaitForSingleObject(pEvt, foo, a, b, c)
#define KeInitializeEvent(pEvt, foo, foo2)
VOID NTAPI KeClearEvent(IN PKEVENT Event)
#define OBJ_KERNEL_HANDLE
#define OBJ_CASE_INSENSITIVE
POBJECT_TYPE IoFileObjectType
#define IoSetCompletionRoutine(_Irp, _CompletionRoutine, _Context, _InvokeOnSuccess, _InvokeOnError, _InvokeOnCancel)
_In_ PKSPIN_CONNECT _In_ ACCESS_MASK _Out_ PHANDLE ConnectionHandle
#define ExFreePoolWithTag(_P, _T)
static NTSTATUS NTAPI IrpCompletionRoutine(_In_ PDEVICE_OBJECT DeviceObject, _In_ PIRP Irp, _In_ PVOID Context)
#define TEST_CONNECT_SERVER_PORT
#define TEST_CONNECT_CLIENT_PORT
#define InitializeObjectAttributes(p, n, a, r, s)
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
NTSYSAPI NTSTATUS NTAPI RtlIpv4StringToAddressW(_In_ PCWSTR String, _In_ BOOLEAN Strict, _Out_ PCWSTR *Terminator, _Out_ struct in_addr *Addr)
PDEVICE_OBJECT NTAPI IoGetRelatedDeviceObject(IN PFILE_OBJECT FileObject)
PIRP NTAPI IoAllocateIrp(IN CCHAR StackSize, IN BOOLEAN ChargeQuota)
VOID NTAPI IoFreeIrp(IN PIRP Irp)
NTSTATUS NTAPI ObReferenceObjectByHandle(IN HANDLE Handle, IN ACCESS_MASK DesiredAccess, IN POBJECT_TYPE ObjectType, IN KPROCESSOR_MODE AccessMode, OUT PVOID *Object, OUT POBJECT_HANDLE_INFORMATION HandleInformation OPTIONAL)
struct _TA_ADDRESS_IP::_AddrIp Address[1]
union in_addr::@1031 S_un
struct _TA_ADDRESS_IP TA_IP_ADDRESS
struct _TA_ADDRESS_IP * PTA_IP_ADDRESS
#define TDI_CONNECTION_CONTEXT_LENGTH
#define TDI_TRANSPORT_ADDRESS_LENGTH
#define TDI_ADDRESS_LENGTH_IP
#define TDI_ADDRESS_TYPE_IP
#define TdiConnectionContext
#define TdiTransportAddress
#define TdiBuildAssociateAddress( Irp, DevObj, FileObj, CompRoutine, Contxt, AddrHandle)
#define TdiBuildConnect( Irp, DevObj, FileObj, CompRoutine, Contxt, Time, RequestConnectionInfo, ReturnConnectionInfo)
#define RTL_CONSTANT_STRING(s)
#define FIELD_OFFSET(t, f)
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
#define ObDereferenceObject