first commit

Version 3.x.x
This commit is contained in:
VNGhostMans
2023-05-14 20:21:09 +07:00
parent a3037a8db3
commit 5ec92ee05e
1166 changed files with 1036539 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef UTILS_H
#define UTILS_H
void ShowMessage(const VMP_CHAR *message);
#ifdef VMP_GNU
#elif defined(WIN_DRIVER)
HMODULE GetModuleHandleA(const char *name);
#else
void *InternalGetProcAddress(HMODULE module, const char *proc_name);
__forceinline void InitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
{
if (SourceString)
DestinationString->MaximumLength = (DestinationString->Length = (USHORT)(wcslen(SourceString) * sizeof(WCHAR))) + sizeof(UNICODE_NULL);
else
DestinationString->MaximumLength = DestinationString->Length = 0;
DestinationString->Buffer = (PWCH)SourceString;
}
#endif
#endif