mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
Implement EngUnloadImage
svn path=/trunk/; revision=26231
This commit is contained in:
parent
d1004e8c13
commit
9a92415ba4
|
@ -213,10 +213,28 @@ EngLoadModule(LPWSTR ModuleName)
|
||||||
// FIXME: should load as readonly
|
// FIXME: should load as readonly
|
||||||
|
|
||||||
RtlInitUnicodeString (&GdiDriverInfo.DriverName, ModuleName);
|
RtlInitUnicodeString (&GdiDriverInfo.DriverName, ModuleName);
|
||||||
Status = ZwSetSystemInformation (SystemLoadGdiDriverInformation, &GdiDriverInfo, sizeof(SYSTEM_GDI_DRIVER_INFORMATION));
|
Status = ZwSetSystemInformation (SystemLoadGdiDriverInformation,
|
||||||
|
&GdiDriverInfo, sizeof(SYSTEM_GDI_DRIVER_INFORMATION));
|
||||||
if (!NT_SUCCESS(Status)) return NULL;
|
if (!NT_SUCCESS(Status)) return NULL;
|
||||||
|
|
||||||
return (HANDLE)GdiDriverInfo.ImageAddress;
|
return (HANDLE)GdiDriverInfo.ImageAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
EngUnloadImage ( IN HANDLE hModule )
|
||||||
|
{
|
||||||
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
DPRINT1("hModule=%x\n", hModule);
|
||||||
|
Status = ZwSetSystemInformation(SystemUnloadGdiDriverInformation,
|
||||||
|
&hModule, sizeof(HANDLE));
|
||||||
|
|
||||||
|
if(!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
DPRINT1("%s: ZwSetSystemInformation failed with status %x.",
|
||||||
|
__FUNCTION__, Status);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue