status = ObReferenceObjectByName(&uniNtNameString, OBJ_CASE_INSENSITIVE, NULL, 0, IoDriverObjectType, KernelMode, NULL, (PVOID *)&pKbdDriverObject);
if (!(NT_SUCCESS(status)))
{
KdPrint(("could not get the KbdDriverObject!"));
return status;
}
status = ObReferenceObjectByName(&uniNtNameString, OBJ_CASE_INSENSITIVE, NULL, 0, *IoDriverObjectType, KernelMode, NULL, (PVOID *)&pKbdDriverObject);
if (!(NT_SUCCESS(status)))
{
KdPrint(("could not get the KbdDriverObject!"));
return status;
}