154{
155 BOOLEAN CheckThisDispatchRoutine;
156 PVOID FirstMajorFunc;
163
166
168 {
169 ok(
DriverObject->DeviceObject ==
NULL,
"Expected DeviceObject pointer to be 0, got %p\n",
172 "Expected Flags to be DRVO_LEGACY_DRIVER, got %lu\n",
174
176 "DriverStart is %p, expected < %p\n",
185 &RegPath,
192 &ServiceKeyName,
194 ok(Equal,
"ServiceKeyName is '%wZ'\n", &
DriverObject->DriverExtension->ServiceKeyName);
200 &DriverName,
206
208 &HardwareDatabase,
210 ok(Equal,
"HardwareDatabase is '%wZ'\n",
DriverObject->HardwareDatabase);
214 "DriverInit is %p, expected %p\n",
216 }
218 {
219 ok(
DriverObject->DeviceObject !=
NULL,
"Expected DeviceObject pointer to non null\n");
221 "Expected Flags to be DRVO_LEGACY_DRIVER | DRVO_INITIALIZED, got %lu\n",
223 }
225 {
226 ok(
DriverObject->DeviceObject !=
NULL,
"Expected DeviceObject pointer to non null\n");
228 "Expected Flags to be DRVO_LEGACY_DRIVER | DRVO_INITIALIZED | DRVO_UNLOAD_INVOKED, got %lu\n",
230 }
231 else
233
234
236 ok(FirstMajorFunc != 0,
"Expected MajorFunction[1] to be non NULL\n");
237
238 if (!
skip(FirstMajorFunc !=
NULL,
"First major function not set!\n"))
239 {
241 {
242 if (DriverStatus > 0) CheckThisDispatchRoutine = (
i > 3) && (
i != 14);
243 else CheckThisDispatchRoutine =
TRUE;
244
245 if (CheckThisDispatchRoutine)
246 {
247 ok(
DriverObject->MajorFunction[
i] == FirstMajorFunc,
"Expected MajorFunction[%d] to match %p\n",
249 }
250 }
251 }
252}
#define BASE_POOL_TYPE_MASK
DRIVER_INITIALIZE DriverEntry
NTSTATUS TestEntry(IN PDRIVER_OBJECT DriverObject, IN PCUNICODE_STRING RegistryPath, OUT PCWSTR *DeviceName, IN OUT INT *Flags)
#define ok_eq_pointer(value, expected)
#define ok_eq_ulong(value, expected)
#define ok_eq_tag(value, expected)
#define ok_eq_uint(value, expected)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
USHORT KmtGetPoolType(PVOID Memory)
ULONG KmtGetPoolTag(PVOID Memory)
NTSYSAPI BOOLEAN NTAPI RtlEqualUnicodeString(PUNICODE_STRING String1, PUNICODE_STRING String2, BOOLEAN CaseInSensitive)
#define RTL_CONSTANT_STRING(s)
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
#define DRVO_UNLOAD_INVOKED
#define DRVO_LEGACY_DRIVER
#define IRP_MJ_MAXIMUM_FUNCTION