Here's my code, the error remains the same...
Code: Select all
Another question, if this would work, as the ObGetObjectType isn't referenced in the winXP kernel, how could I do to make this work under every OS (without rebuilding another driver)?//Get devices
RtlInitUnicodeString(&name, driverName);
TypeObjectType = ObGetObjectType(*IoDriverObjectType);
status = ObReferenceObjectByName(&name, OBJ_KERNEL_HANDLE|OBJ_CASE_INSENSITIVE, NULL, 0, TypeObjectType, KernelMode, NULL, &driverobj);