1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-19 07:21:20 +03:00

import KernelEx-4.0-RC1

This commit is contained in:
UzixLS
2018-11-03 16:18:57 +03:00
commit d4e0420295
295 changed files with 28034 additions and 0 deletions

42
util/load.c Normal file
View File

@ -0,0 +1,42 @@
#include <windows.h>
#include <stdio.h>
typedef int (* initproc_t)();
int main()
{
HMODULE h;
initproc_t init;
initproc_t uninit;
DWORD starttime;
int i;
h = LoadLibrary("KernelEx.dll");
if (h)
{
printf("KernelEx successfully loaded @ 0x%08x\n", h);
}
else
{
printf("Load error\n");
}
init = (initproc_t) GetProcAddress(h, "kexInit");
uninit = (initproc_t) GetProcAddress(h, "kexUninit");
starttime = GetTickCount();
i = init();
if (i)
printf("init completed (%d) in %d ms\n", i, GetTickCount() - starttime);
else
printf("init failure\n");
printf("Press ENTER.\n");
getchar();
i = uninit();
printf("uninit complete (%d)\n", i);
FreeLibrary(h);
return 0;
}