如何调用ntoskrnl.exe srand函数?
How to call ntoskrnl.exe srand function?
加上dumpbin.exe,我们可以看到ntoskrnl.exe导出了srand函数。
有了Windows驱动包,这个函数怎么调用?
我已经用 stdlib.h 测试过,但我想直接调用 ntoskrnl.exe。
谢谢
#include <stdlib.h>
EXTERN_C NTSTATUS DriverEntry(DRIVER_OBJECT *pDriverObject, UNICODE_STRING *pRegistryPath)
{
srand(100);
return STATUS_UNSUCCESSFUL;
}
加上dumpbin.exe,我们可以看到ntoskrnl.exe导出了srand函数。
有了Windows驱动包,这个函数怎么调用?
我已经用 stdlib.h 测试过,但我想直接调用 ntoskrnl.exe。
谢谢
#include <stdlib.h>
EXTERN_C NTSTATUS DriverEntry(DRIVER_OBJECT *pDriverObject, UNICODE_STRING *pRegistryPath)
{
srand(100);
return STATUS_UNSUCCESSFUL;
}