Which is the cause of this error?
Thanks
--
SteM
Just a vague idea: Do you stop the service using the services mmc
snap-in? this often keeps a handle open to services you otherwise delete
and those services are then marked for deletion. An alternative would be
to use the command line with net start/stop or sc.exe.
--
Stefan
No, by C code recalling Windows APIs.
If i run 'net stop driver' i receive the same error.
--
Volodymyr M. Shcherbyna, blog: http://www.shcherbyna.com/
(This posting is provided "AS IS" with no warranties, and confers no
rights)
"SteM" <x...@yyy.zzz> wrote in message
news:upALDIM...@TK2MSFTNGP05.phx.gbl...
This is my code:
NTSTATUS DriverEntry( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING
RegistryPath)
{
wchar_t *p;
KdPrint(("DriverEntry()\n"));
...
// Export other driver entry points...
DriverObject->DriverUnload = WdmUnload;
DriverObject->MajorFunction[IRP_MJ_CREATE] = WdmCreate;
DriverObject->MajorFunction[IRP_MJ_CLOSE] = WdmClose;
// DriverObject->MajorFunction[IRP_MJ_READ] = WdmRead;
// DriverObject->MajorFunction[IRP_MJ_WRITE] = WdmWrite;
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = WdmDeviceControl;
WdmAddDevice(DriverObject);
return STATUS_SUCCESS;
}
#pragma code_seg() // end INIT section
#pragma code_seg("PAGE") // start PAGE section
VOID WdmUnload(IN PDRIVER_OBJECT DriverObject)
{
KdPrint(("WdmUnload\n"));
IoDeleteSymbolicLink( &uniWin32NameString);
ExFreePool(WdmRegistryPath.Buffer);
ExFreePool(uniWin32NameString.Buffer);
ExFreePool(uniNtNameString.Buffer);
// delete our fdo
if(DriverObject->DeviceObject)
IoDeleteDevice(DriverObject->DeviceObject);
DriverObject->DeviceObject=NULL;
}
Thanks.
"Volodymyr Shcherbyna" <v_sch...@online.mvps.org> ha scritto nel
messaggio news:OM$PjDOxJ...@TK2MSFTNGP03.phx.gbl...
"SteM" <x...@yyy.zzz> ha scritto nel messaggio
news:um81rWPx...@TK2MSFTNGP03.phx.gbl...
Yes - since unload is called at passive irql.
-- pa