mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
Implement EngUnloadImage
svn path=/trunk/; revision=26231
This commit is contained in:
parent
d1004e8c13
commit
9a92415ba4
1 changed files with 19 additions and 1 deletions
|
@ -213,10 +213,28 @@ EngLoadModule(LPWSTR ModuleName)
|
|||
// FIXME: should load as readonly
|
||||
|
||||
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;
|
||||
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue