From 63312257f36cf176381d20991d793b41cd7d2b4a Mon Sep 17 00:00:00 2001 From: Thomas May Date: Sat, 13 Apr 2024 21:13:33 +0100 Subject: [PATCH] Use DLL forwarders --- wrappers/advapi32.c | 475 +----------- wrappers/comdlg32.c | 4 +- wrappers/corkel32.def | 730 +++++++++--------- wrappers/corusr.def | 41 +- wrappers/kernel32.c | 1691 +---------------------------------------- wrappers/user32.c | 114 --- 6 files changed, 431 insertions(+), 2624 deletions(-) diff --git a/wrappers/advapi32.c b/wrappers/advapi32.c index 7384728..3e56288 100644 --- a/wrappers/advapi32.c +++ b/wrappers/advapi32.c @@ -3,473 +3,6 @@ #include "debug.h" -// Passthroughs -BOOL WINAPI CORKEL32_GetKernelObjectSecurity(HANDLE param_0, SECURITY_INFORMATION param_1, PSECURITY_DESCRIPTOR param_2, DWORD param_3, LPDWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "GetKernelObjectSecurity"); - return GetKernelObjectSecurity(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR param_0, PSID * param_1, LPBOOL param_2) -{ - Trace(TRACE_PASSTHROUGH, "GetSecurityDescriptorOwner"); - return GetSecurityDescriptorOwner(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_CryptEncrypt(HCRYPTKEY param_0, HCRYPTHASH param_1, BOOL param_2, DWORD param_3, LPBYTE param_4, LPDWORD param_5, DWORD param_6) -{ - Trace(TRACE_PASSTHROUGH, "CryptEncrypt"); - return CryptEncrypt(param_0, param_1, param_2, param_3, param_4, param_5, param_6); -} - -BOOL WINAPI CORKEL32_CryptDecrypt (HCRYPTKEY param_0, HCRYPTHASH param_1, BOOL param_2, DWORD param_3, BYTE * param_4, DWORD * param_5) -{ - Trace(TRACE_PASSTHROUGH, "CryptDecrypt"); - return CryptDecrypt(param_0, param_1, param_2, param_3, param_4, param_5); -} - -BOOL WINAPI CORKEL32_CryptDeriveKey (HCRYPTPROV param_0, ALG_ID param_1, HCRYPTHASH param_2, DWORD param_3, HCRYPTKEY * param_4) -{ - Trace(TRACE_PASSTHROUGH, "CryptDeriveKey"); - return CryptDeriveKey(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_CryptSetProvParam(HCRYPTPROV hProv, DWORD dwParam, BYTE *pbData, DWORD dwFlags) -{ - Trace(TRACE_PASSTHROUGH, "CryptSetProvParam"); - return CryptSetProvParam(hProv, dwParam, pbData, dwFlags); -} - -BOOL WINAPI CORKEL32_CryptSetKeyParam(HCRYPTKEY hKey, DWORD dwParam, BYTE *pbData, DWORD dwFlags) -{ - Trace(TRACE_PASSTHROUGH, "CryptSetKeyParam"); - return CryptSetKeyParam(hKey, dwParam, pbData, dwFlags); -} - -BOOL WINAPI CORKEL32_CryptGenKey (HCRYPTPROV param_0, ALG_ID param_1, DWORD param_2, HCRYPTKEY * param_3) -{ - Trace(TRACE_PASSTHROUGH, "CryptGenKey"); - return CryptGenKey(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR param_0, BOOL param_1, PACL param_2, BOOL param_3) -{ - Trace(TRACE_PASSTHROUGH, "SetSecurityDescriptorDacl"); - return SetSecurityDescriptorDacl(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "InitializeSecurityDescriptor"); - return InitializeSecurityDescriptor(param_0, param_1); -} - -BOOL WINAPI CORKEL32_AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY param_0, BYTE param_1, DWORD param_2, DWORD param_3, DWORD param_4, DWORD param_5, DWORD param_6, DWORD param_7, DWORD param_8, DWORD param_9, PSID * param_10) -{ - Trace(TRACE_PASSTHROUGH, "AllocateAndInitializeSid"); - return AllocateAndInitializeSid(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8, param_9, param_10); -} - -BOOL WINAPI CORKEL32_AddAccessAllowedAce(PACL param_0, DWORD param_1, DWORD param_2, PSID param_3) -{ - Trace(TRACE_PASSTHROUGH, "AddAccessAllowedAce"); - return AddAccessAllowedAce(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_DeleteAce(PACL param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "DeleteAce"); - return DeleteAce(param_0, param_1); -} - -BOOL WINAPI CORKEL32_CryptVerifySignatureA (HCRYPTHASH param_0, const LPBYTE param_1, DWORD param_2, HCRYPTKEY param_3, LPCSTR param_4, DWORD param_5) -{ - Trace(TRACE_PASSTHROUGH, "CryptVerifySignatureA"); - return CryptVerifySignatureA(param_0, param_1, param_2, param_3, param_4, param_5); -} - -BOOL WINAPI CORKEL32_CryptSetHashParam (HCRYPTHASH param_0, DWORD param_1, const LPBYTE param_2, DWORD param_3) -{ - Trace(TRACE_PASSTHROUGH, "CryptSetHashParam"); - return CryptSetHashParam(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_CryptSignHashA (HCRYPTHASH param_0, DWORD param_1, LPCSTR param_2, DWORD param_3, BYTE * param_4, DWORD * param_5) -{ - Trace(TRACE_PASSTHROUGH, "CryptSignHashA"); - return CryptSignHashA(param_0, param_1, param_2, param_3, param_4, param_5); -} - -DWORD WINAPI CORKEL32_GetLengthSid(PSID param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetLengthSid"); - return GetLengthSid(param_0); -} - -BOOL WINAPI CORKEL32_CopySid(DWORD param_0, PSID param_1, PSID param_2) -{ - Trace(TRACE_PASSTHROUGH, "CopySid"); - return CopySid(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_IsValidSid(PSID param_0) -{ - Trace(TRACE_PASSTHROUGH, "IsValidSid"); - return IsValidSid(param_0); -} - -PSID_IDENTIFIER_AUTHORITY WINAPI CORKEL32_GetSidIdentifierAuthority(PSID param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetSidIdentifierAuthority"); - return GetSidIdentifierAuthority(param_0); -} - -PUCHAR WINAPI CORKEL32_GetSidSubAuthorityCount(PSID param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetSidSubAuthorityCount"); - return GetSidSubAuthorityCount(param_0); -} - -PDWORD WINAPI CORKEL32_GetSidSubAuthority(PSID param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetSidSubAuthority"); - return GetSidSubAuthority(param_0, param_1); -} - -BOOL WINAPI CORKEL32_CryptGetKeyParam (HCRYPTKEY param_0, DWORD param_1, BYTE * param_2, DWORD * param_3, DWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "CryptGetKeyParam"); - return CryptGetKeyParam(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_CryptImportKey (HCRYPTPROV param_0, const BYTE * param_1, DWORD param_2, HCRYPTKEY param_3, DWORD param_4, HCRYPTKEY * param_5) -{ - Trace(TRACE_PASSTHROUGH, "CryptImportKey"); - return CryptImportKey(param_0, param_1, param_2, param_3, param_4, param_5); -} - -BOOL WINAPI CORKEL32_CryptGetProvParam (HCRYPTPROV param_0, DWORD param_1, BYTE * param_2, DWORD * param_3, DWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "CryptGetProvParam"); - return CryptGetProvParam(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_CryptGetUserKey (HCRYPTPROV param_0, DWORD param_1, HCRYPTKEY * param_2) -{ - Trace(TRACE_PASSTHROUGH, "CryptGetUserKey"); - return CryptGetUserKey(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_CryptDestroyKey (HCRYPTKEY param_0) -{ - Trace(TRACE_PASSTHROUGH, "CryptDestroyKey"); - return CryptDestroyKey(param_0); -} - -BOOL WINAPI CORKEL32_CryptExportKey (HCRYPTKEY param_0, HCRYPTKEY param_1, DWORD param_2, DWORD param_3, BYTE * param_4, DWORD * param_5) -{ - Trace(TRACE_PASSTHROUGH, "CryptExportKey"); - return CryptExportKey(param_0, param_1, param_2, param_3, param_4, param_5); -} - -BOOL WINAPI CORKEL32_CryptGenRandom (HCRYPTPROV param_0, DWORD param_1, BYTE * param_2) -{ - Trace(TRACE_PASSTHROUGH, "CryptGenRandom"); - return CryptGenRandom(param_0, param_1, param_2); -} - -HANDLE WINAPI CORKEL32_RegisterEventSourceW(LPCWSTR param_0, LPCWSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "RegisterEventSourceW"); - return RegisterEventSourceW(param_0, param_1); -} - -BOOL WINAPI CORKEL32_ReportEventW(HANDLE param_0, WORD param_1, WORD param_2, DWORD param_3, PSID param_4, WORD param_5, DWORD param_6, LPCWSTR * param_7, LPVOID param_8) -{ - Trace(TRACE_PASSTHROUGH, "ReportEventW"); - return ReportEventW(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8); -} - -BOOL WINAPI CORKEL32_DeregisterEventSource(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "DeregisterEventSource"); - return DeregisterEventSource(param_0); -} - -BOOL WINAPI CORKEL32_LookupAccountSidW(LPCWSTR param_0, PSID param_1, LPWSTR param_2, LPDWORD param_3, LPWSTR param_4, LPDWORD param_5, PSID_NAME_USE param_6) -{ - Trace(TRACE_PASSTHROUGH, "LookupAccountSidW"); - return LookupAccountSidW(param_0, param_1, param_2, param_3, param_4, param_5, param_6); -} - -BOOL WINAPI CORKEL32_LookupAccountSidA(LPCSTR param_0, PSID param_1, LPSTR param_2, LPDWORD param_3, LPSTR param_4, LPDWORD param_5, PSID_NAME_USE param_6) -{ - Trace(TRACE_PASSTHROUGH, "LookupAccountSidA"); - return LookupAccountSidA(param_0, param_1, param_2, param_3, param_4, param_5, param_6); -} - -LONG WINAPI CORKEL32_RegQueryValueExW(HKEY param_0, LPCWSTR param_1, LPDWORD param_2, LPDWORD param_3, LPBYTE param_4, LPDWORD param_5) -{ - LONG l = RegQueryValueExW(param_0, param_1, param_2, param_3, param_4, param_5);; - Trace(TRACE_PASSTHROUGH, "RegQueryValueExW"); - return l; -} - -LONG WINAPI CORKEL32_RegEnumValueW(HKEY param_0, DWORD param_1, LPWSTR param_2, LPDWORD param_3, LPDWORD param_4, LPDWORD param_5, LPBYTE param_6, LPDWORD param_7) -{ - Trace(TRACE_PASSTHROUGH, "RegEnumValueW"); - return RegEnumValueW(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7); -} - -LONG WINAPI CORKEL32_RegEnumValueA(HKEY param_0, DWORD param_1, LPSTR param_2, LPDWORD param_3, LPDWORD param_4, LPDWORD param_5, LPBYTE param_6, LPDWORD param_7) -{ - Trace(TRACE_PASSTHROUGH, "RegEnumValueA"); - return RegEnumValueA(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7); -} - -LONG WINAPI CORKEL32_RegDeleteValueW(HKEY param_0, LPCWSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "RegDeleteValueW"); - return RegDeleteValueW(param_0, param_1); -} - -LONG WINAPI CORKEL32_RegDeleteValueA(HKEY param_0, LPCSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "RegDeleteValueA"); - return RegDeleteValueA(param_0, param_1); -} - -LONG WINAPI CORKEL32_RegQueryValueW(HKEY param_0, LPCWSTR param_1, LPWSTR param_2, LPLONG param_3) -{ - LONG l = RegQueryValueW(param_0, param_1, param_2, param_3); - Trace(TRACE_PASSTHROUGH, "RegQueryValueW"); - return l; -} - -LONG WINAPI CORKEL32_RegQueryValueA(HKEY param_0, LPCSTR param_1, LPSTR param_2, LPLONG param_3) -{ - LONG l = RegQueryValueA(param_0, param_1, param_2, param_3); - Trace(TRACE_PASSTHROUGH, "RegQueryValueA"); - return l; -} - -LONG WINAPI CORKEL32_RegCreateKeyExW(HKEY param_0, LPCWSTR param_1, DWORD param_2, LPWSTR param_3, DWORD param_4, REGSAM param_5, LPSECURITY_ATTRIBUTES param_6, PHKEY param_7, LPDWORD param_8) -{ - Trace(TRACE_PASSTHROUGH, "RegCreateKeyExW"); - return RegCreateKeyExW(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8); -} - -LONG WINAPI CORKEL32_RegCreateKeyExA(HKEY param_0, LPCSTR param_1, DWORD param_2, LPSTR param_3, DWORD param_4, REGSAM param_5, LPSECURITY_ATTRIBUTES param_6, PHKEY param_7, LPDWORD param_8) -{ - Trace(TRACE_PASSTHROUGH, "RegCreateKeyExA"); - return RegCreateKeyExA(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8); -} - -LONG WINAPI CORKEL32_RegSetValueExW(HKEY param_0, LPCWSTR param_1, DWORD param_2, DWORD param_3, const BYTE* param_4, DWORD param_5) -{ - Trace(TRACE_PASSTHROUGH, "RegSetValueExW"); - return RegSetValueExW(param_0, param_1, param_2, param_3, param_4, param_5); -} - -LONG WINAPI CORKEL32_RegSetValueExA(HKEY param_0, LPCSTR param_1, DWORD param_2, DWORD param_3, const BYTE* param_4, DWORD param_5) -{ - Trace(TRACE_PASSTHROUGH, "RegSetValueExA"); - return RegSetValueExA(param_0, param_1, param_2, param_3, param_4, param_5); -} - -LONG WINAPI CORKEL32_RegDeleteKeyW(HKEY param_0, LPCWSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "RegDeleteKeyW"); - return RegDeleteKeyW(param_0, param_1); -} - -LONG WINAPI CORKEL32_RegDeleteKeyA(HKEY param_0, LPCSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "RegDeleteKeyA"); - return RegDeleteKeyA(param_0, param_1); -} - -BOOL WINAPI CORKEL32_DuplicateToken(HANDLE param_0, SECURITY_IMPERSONATION_LEVEL param_1, PHANDLE param_2) -{ - Trace(TRACE_PASSTHROUGH, "DuplicateToken"); - return DuplicateToken(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_GetUserNameW(LPWSTR param_0, LPDWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetUserNameW"); - return GetUserNameW(param_0, param_1); -} - -BOOL WINAPI CORKEL32_GetUserNameA(LPSTR param_0, LPDWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetUserNameA"); - return GetUserNameA(param_0, param_1); -} - -LONG WINAPI CORKEL32_RegQueryInfoKeyW(HKEY param_0, LPWSTR param_1, LPDWORD param_2, LPDWORD param_3, LPDWORD param_4, LPDWORD param_5, LPDWORD param_6, LPDWORD param_7, LPDWORD param_8, LPDWORD param_9, LPDWORD param_10, LPFILETIME param_11) -{ - LONG l = RegQueryInfoKeyW(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8, param_9, param_10, param_11); - Trace(TRACE_PASSTHROUGH, "RegQueryInfoKeyW"); - return l; -} - -LONG WINAPI CORKEL32_RegQueryInfoKeyA(HKEY param_0, LPSTR param_1, LPDWORD param_2, LPDWORD param_3, LPDWORD param_4, LPDWORD param_5, LPDWORD param_6, LPDWORD param_7, LPDWORD param_8, LPDWORD param_9, LPDWORD param_10, LPFILETIME param_11) -{ - LONG l = RegQueryInfoKeyA(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8, param_9, param_10, param_11);; - Trace(TRACE_PASSTHROUGH, "RegQueryInfoKeyA"); - return l; -} - -LONG WINAPI CORKEL32_RegEnumKeyExW(HKEY param_0, DWORD param_1, LPWSTR param_2, LPDWORD param_3, LPDWORD param_4, LPWSTR param_5, LPDWORD param_6, LPFILETIME param_7) -{ - LONG l = RegEnumKeyExW(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7); - Trace(TRACE_PASSTHROUGH, "RegEnumKeyExW"); - return l; -} - -LONG WINAPI CORKEL32_RegEnumKeyExA(HKEY param_0, DWORD param_1, LPSTR param_2, LPDWORD param_3, LPDWORD param_4, LPSTR param_5, LPDWORD param_6, LPFILETIME param_7) -{ - LONG l = RegEnumKeyExA(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7); - Trace(TRACE_PASSTHROUGH, "RegEnumKeyExA"); - return l; -} - -LONG WINAPI CORKEL32_RegOpenKeyExW(HKEY param_0, LPCWSTR param_1, DWORD param_2, REGSAM param_3, PHKEY param_4) -{ - LONG l = RegOpenKeyExW(param_0, param_1, param_2, param_3, param_4); - Trace(TRACE_PASSTHROUGH, "RegOpenKeyExW"); - return l; -} - -BOOL WINAPI CORKEL32_EqualSid(PSID param_0, PSID param_1) -{ - Trace(TRACE_PASSTHROUGH, "EqualSid"); - return EqualSid(param_0, param_1); -} - -LONG WINAPI CORKEL32_RegOpenKeyExA(HKEY hKey, LPCSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult) -{ - LONG l = RegOpenKeyExA(hKey, lpSubKey, ulOptions, samDesired, phkResult); - Trace(TRACE_PASSTHROUGH, "RegOpenKeyExA - hKey = %p, lpSubKey = %s", hKey, lpSubKey); - return l; -} - -LONG WINAPI CORKEL32_RegQueryValueExA(HKEY hKey, LPCSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData) -{ - LONG l = RegQueryValueExA(hKey, lpValueName, lpReserved, lpType, lpData, lpcbData); - Trace(TRACE_PASSTHROUGH, "RegQueryValueExA - hKey = %p, lpValueName = %s, result = %d, data = %s", hKey, lpValueName, l, lpData); - return l; -} - -BOOL WINAPI CORKEL32_CryptAcquireContextA(HCRYPTPROV * param_0, LPCSTR param_1, LPCSTR param_2, DWORD param_3, DWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "CryptAcquireContextA"); - return CryptAcquireContextA(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_CryptCreateHash (HCRYPTPROV param_0, ALG_ID param_1, HCRYPTKEY param_2, DWORD param_3, HCRYPTHASH * param_4) -{ - Trace(TRACE_PASSTHROUGH, "CryptCreateHash"); - return CryptCreateHash(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_CryptHashData (HCRYPTHASH param_0, const BYTE * param_1, DWORD param_2, DWORD param_3) -{ - Trace(TRACE_PASSTHROUGH, "CryptHashData"); - return CryptHashData(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_CryptGetHashParam (HCRYPTHASH param_0, DWORD param_1, BYTE * param_2, DWORD * param_3, DWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "CryptGetHashParam"); - return CryptGetHashParam(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_CryptDestroyHash (HCRYPTHASH param_0) -{ - Trace(TRACE_PASSTHROUGH, "CryptDestroyHash"); - return CryptDestroyHash(param_0); -} - -BOOL WINAPI CORKEL32_CryptReleaseContext (HCRYPTPROV param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "CryptReleaseContext"); - return CryptReleaseContext(param_0, param_1); -} - -BOOL WINAPI CORKEL32_GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR param_0, LPBOOL param_1, PACL * param_2, LPBOOL param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetSecurityDescriptorDacl"); - return GetSecurityDescriptorDacl(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_SetKernelObjectSecurity(HANDLE param_0, SECURITY_INFORMATION param_1, PSECURITY_DESCRIPTOR param_2) -{ - Trace(TRACE_PASSTHROUGH, "SetKernelObjectSecurity"); - return SetKernelObjectSecurity(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_InitializeAcl(PACL param_0, DWORD param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "InitializeAcl"); - return InitializeAcl(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_GetAce(PACL param_0, DWORD param_1, LPVOID* param_2) -{ - Trace(TRACE_PASSTHROUGH, "GetAce"); - return GetAce(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_OpenThreadToken(HANDLE param_0, DWORD param_1, BOOL param_2, PHANDLE param_3) -{ - Trace(TRACE_PASSTHROUGH, "OpenThreadToken"); - return OpenThreadToken(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_SetThreadToken(PHANDLE param_0, HANDLE param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetThreadToken"); - return SetThreadToken(param_0, param_1); -} - -BOOL WINAPI CORKEL32_ImpersonateLoggedOnUser(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "ImpersonateLoggedOnUser"); - return ImpersonateLoggedOnUser(param_0); -} - -BOOL WINAPI CORKEL32_RevertToSelf() -{ - Trace(TRACE_PASSTHROUGH, "RevertToSelf"); - return RevertToSelf(); -} - -LONG WINAPI CORKEL32_RegCloseKey(HKEY param_0) -{ - Trace(TRACE_PASSTHROUGH, "RegCloseKey"); - return RegCloseKey(param_0); -} - -BOOL WINAPI CORKEL32_OpenProcessToken(HANDLE param_0, DWORD param_1, PHANDLE param_2) -{ - Trace(TRACE_PASSTHROUGH, "OpenProcessToken"); - return OpenProcessToken(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_GetTokenInformation(HANDLE param_0, TOKEN_INFORMATION_CLASS param_1, LPVOID param_2, DWORD param_3, LPDWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "GetTokenInformation"); - return GetTokenInformation(param_0, param_1, param_2, param_3, param_4); -} - -PVOID WINAPI CORKEL32_FreeSid(PSID param_0) -{ - Trace(TRACE_PASSTHROUGH, "FreeSid"); - return FreeSid(param_0); -} - // Reimplementations typedef enum _SE_OBJECT_TYPE { SE_UNKNOWN_OBJECT_TYPE, @@ -554,28 +87,28 @@ typedef struct _EXPLICIT_ACCESS_W { TRUSTEE_W Trustee; } EXPLICIT_ACCESS_W, *PEXPLICIT_ACCESS_W, EXPLICIT_ACCESSW, *PEXPLICIT_ACCESSW; -DWORD WINAPI CORKEL32_SetEntriesInAclW( ULONG param_0, PEXPLICIT_ACCESSW param_1, PACL param_2, PACL* param_3) +DWORD WINAPI CORADV32_SetEntriesInAclW( ULONG param_0, PEXPLICIT_ACCESSW param_1, PACL param_2, PACL* param_3) { Trace(TRACE_UNIMPLEMENTED, "SetEntriesInAclW"); // TODO: Stub return 0; } -BOOL WINAPI CORKEL32_CryptEnumProvidersA (DWORD param_0, LPDWORD param_1, DWORD param_2, LPDWORD param_3, LPSTR param_4, LPDWORD param_5) +BOOL WINAPI CORADV32_CryptEnumProvidersA (DWORD param_0, LPDWORD param_1, DWORD param_2, LPDWORD param_3, LPSTR param_4, LPDWORD param_5) { Trace(TRACE_UNIMPLEMENTED, "CryptEnumProvidersA"); // TODO: Stub return FALSE; } -DWORD WINAPI CORKEL32_GetSecurityInfo( HANDLE param_0, SE_OBJECT_TYPE param_1, SECURITY_INFORMATION param_2, PSID* param_3, PSID* param_4, PACL* param_5, PACL* param_6, PSECURITY_DESCRIPTOR* param_7) +DWORD WINAPI CORADV32_GetSecurityInfo( HANDLE param_0, SE_OBJECT_TYPE param_1, SECURITY_INFORMATION param_2, PSID* param_3, PSID* param_4, PACL* param_5, PACL* param_6, PSECURITY_DESCRIPTOR* param_7) { Trace(TRACE_UNIMPLEMENTED, "GetSecurityInfo"); // TODO: Stub return 0; } -BOOL WINAPI CORKEL32_CryptAcquireContextW (HCRYPTPROV * param_0, LPCWSTR param_1, LPCWSTR param_2, DWORD param_3, DWORD param_4) +BOOL WINAPI CORADV32_CryptAcquireContextW (HCRYPTPROV * param_0, LPCWSTR param_1, LPCWSTR param_2, DWORD param_3, DWORD param_4) { Trace(TRACE_UNIMPLEMENTED, "CryptAcquireContextW"); // TODO: Stub diff --git a/wrappers/comdlg32.c b/wrappers/comdlg32.c index f466caf..b154e77 100644 --- a/wrappers/comdlg32.c +++ b/wrappers/comdlg32.c @@ -3,7 +3,7 @@ #include "debug.h" -BOOL WINAPI CORKEL32_GetOpenFileNameA(LPOPENFILENAMEA lpOpenFileName) +BOOL WINAPI CORDLG32_GetOpenFileNameA(LPOPENFILENAMEA lpOpenFileName) { Trace(TRACE_PASSTHROUGH, "GetOpenFileNameA"); @@ -13,7 +13,7 @@ BOOL WINAPI CORKEL32_GetOpenFileNameA(LPOPENFILENAMEA lpOpenFileName) return GetOpenFileNameA(lpOpenFileName); } -BOOL WINAPI CORKEL32_GetOpenFileNameW(LPOPENFILENAMEW lpOpenFileName) +BOOL WINAPI CORDLG32_GetOpenFileNameW(LPOPENFILENAMEW lpOpenFileName) { Trace(TRACE_PASSTHROUGH, "GetOpenFileNameW"); diff --git a/wrappers/corkel32.def b/wrappers/corkel32.def index d1e21ce..a5c4458 100644 --- a/wrappers/corkel32.def +++ b/wrappers/corkel32.def @@ -1,381 +1,389 @@ LIBRARY EXPORTS - CloseHandle=CORKEL32_CloseHandle - InterlockedCompareExchange=CORKEL32_InterlockedCompareExchange - UnmapViewOfFile=CORKEL32_UnmapViewOfFile - FreeLibrary=CORKEL32_FreeLibrary - SetLastError=CORKEL32_SetLastError GetLastError=CORKEL32_GetLastError - GetFileSize=CORKEL32_GetFileSize - InterlockedExchange=CORKEL32_InterlockedExchange GetProcAddress=CORKEL32_GetProcAddress - VirtualQuery=CORKEL32_VirtualQuery - VirtualAlloc=CORKEL32_VirtualAlloc - GlobalMemoryStatus=CORKEL32_GlobalMemoryStatus - ReleaseMutex=CORKEL32_ReleaseMutex - WaitForSingleObject=CORKEL32_WaitForSingleObject - GetSystemInfo=CORKEL32_GetSystemInfo - SetErrorMode=CORKEL32_SetErrorMode - MapViewOfFile=CORKEL32_MapViewOfFile - InterlockedIncrement=CORKEL32_InterlockedIncrement - ExitProcess=CORKEL32_ExitProcess - DisableThreadLibraryCalls=CORKEL32_DisableThreadLibraryCalls - VirtualProtect=CORKEL32_VirtualProtect - WriteFile=CORKEL32_WriteFile - GetLocalTime=CORKEL32_GetLocalTime - ReadProcessMemory=CORKEL32_ReadProcessMemory - CreateToolhelp32Snapshot=CORKEL32_CreateToolhelp32Snapshot - InterlockedDecrement=CORKEL32_InterlockedDecrement - ReadFile=CORKEL32_ReadFile - FindClose=CORKEL32_FindClose - InitializeCriticalSection=CORKEL32_InitializeCriticalSection - DeleteCriticalSection=CORKEL32_DeleteCriticalSection - EnterCriticalSection=CORKEL32_EnterCriticalSection - LeaveCriticalSection=CORKEL32_LeaveCriticalSection - HeapCreate=CORKEL32_HeapCreate - HeapDestroy=CORKEL32_HeapDestroy - GetStringTypeW=CORKEL32_GetStringTypeW MultiByteToWideChar=CORKEL32_MultiByteToWideChar - IsDBCSLeadByteEx=CORKEL32_IsDBCSLeadByteEx - TlsGetValue=CORKEL32_TlsGetValue - GetModuleHandleA@4=CORKEL32_GetModuleHandleA - LocalFree=CORKEL32_LocalFree - IsDBCSLeadByte=CORKEL32_IsDBCSLeadByte - GetCPInfo=CORKEL32_GetCPInfo - GetACP=CORKEL32_GetACP - GetCurrentThreadId=CORKEL32_GetCurrentThreadId - QueryPerformanceCounter=CORKEL32_QueryPerformanceCounter - GetSystemTimeAsFileTime=CORKEL32_GetSystemTimeAsFileTime - lstrlenW=CORKEL32_lstrlenW - GetSystemDefaultLangID=CORKEL32_GetSystemDefaultLangID - GetVersionExA=CORKEL32_GetVersionExA - GetWindowsDirectoryA=CORKEL32_GetWindowsDirectoryA - GetWindowsDirectoryW=CORKEL32_GetWindowsDirectoryW - GetModuleHandleW=CORKEL32_GetModuleHandleW - FreeEnvironmentStringsA=CORKEL32_FreeEnvironmentStringsA - GetEnvironmentStrings=CORKEL32_GetEnvironmentStrings - GetEnvironmentStringsW=CORKEL32_GetEnvironmentStringsW - FreeEnvironmentStringsW=CORKEL32_FreeEnvironmentStringsW WideCharToMultiByte=CORKEL32_WideCharToMultiByte - TerminateProcess=CORKEL32_TerminateProcess - GetCurrentProcess=CORKEL32_GetCurrentProcess LoadLibraryExA=CORKEL32_LoadLibraryExA LoadLibraryExW=CORKEL32_LoadLibraryExW - GetFullPathNameA=CORKEL32_GetFullPathNameA - GetFullPathNameW=CORKEL32_GetFullPathNameW - GetModuleFileNameA=CORKEL32_GetModuleFileNameA - GetModuleFileNameW=CORKEL32_GetModuleFileNameW - RaiseException=CORKEL32_RaiseException CreateFileA=CORKEL32_CreateFileA - CreateFileW=CORKEL32_CreateFileW - CreateSemaphoreA=CORKEL32_CreateSemaphoreA - CreateSemaphoreW=CORKEL32_CreateSemaphoreW - GetDateFormatA=CORKEL32_GetDateFormatA - GetDateFormatW=CORKEL32_GetDateFormatW - GetTimeFormatA=CORKEL32_GetTimeFormatA - GetTimeFormatW=CORKEL32_GetTimeFormatW - LCMapStringA=CORKEL32_LCMapStringA - LCMapStringW=CORKEL32_LCMapStringW - FindFirstFileA=CORKEL32_FindFirstFileA - FindFirstFileW=CORKEL32_FindFirstFileW - GetVersionExW=CORKEL32_GetVersionExW - OutputDebugStringA=CORKEL32_OutputDebugStringA - OutputDebugStringW=CORKEL32_OutputDebugStringW - CreateMutexA=CORKEL32_CreateMutexA - CreateMutexW=CORKEL32_CreateMutexW - CreateEventA=CORKEL32_CreateEventA - CreateEventW=CORKEL32_CreateEventW - GetFileAttributesA=CORKEL32_GetFileAttributesA - GetFileAttributesW=CORKEL32_GetFileAttributesW - GetFileAttributesExA=CORKEL32_GetFileAttributesExA - GetFileAttributesExW=CORKEL32_GetFileAttributesExW GetEnvironmentVariableA=CORKEL32_GetEnvironmentVariableA - GetEnvironmentVariableW=CORKEL32_GetEnvironmentVariableW - CreateFileMappingA=CORKEL32_CreateFileMappingA - CreateFileMappingW=CORKEL32_CreateFileMappingW - GetCurrentProcessId=CORKEL32_GetCurrentProcessId - LocalAlloc=CORKEL32_LocalAlloc - FormatMessageA=CORKEL32_FormatMessageA - FormatMessageW=CORKEL32_FormatMessageW - SetEvent=CORKEL32_SetEvent - ResetEvent=CORKEL32_ResetEvent - ReleaseSemaphore=CORKEL32_ReleaseSemaphore - TlsSetValue=CORKEL32_TlsSetValue - TlsAlloc=CORKEL32_TlsAlloc - TlsFree=CORKEL32_TlsFree - HeapAlloc=CORKEL32_HeapAlloc - GetProcessHeap=CORKEL32_GetProcessHeap - HeapFree=CORKEL32_HeapFree - WaitForSingleObjectEx=CORKEL32_WaitForSingleObjectEx - SleepEx=CORKEL32_SleepEx - VirtualFree=CORKEL32_VirtualFree - HeapValidate=CORKEL32_HeapValidate - CreateThread=CORKEL32_CreateThread - GetStdHandle=CORKEL32_GetStdHandle LoadLibraryA=CORKEL32_LoadLibraryA - GetCommandLineA=CORKEL32_GetCommandLineA - RtlUnwind=CORKEL32_RtlUnwind - Sleep=CORKEL32_Sleep - SetHandleCount=CORKEL32_SetHandleCount - GetFileType=CORKEL32_GetFileType - GetStartupInfoA=CORKEL32_GetStartupInfoA - UnhandledExceptionFilter=CORKEL32_UnhandledExceptionFilter - GetTickCount=CORKEL32_GetTickCount - SetUnhandledExceptionFilter=CORKEL32_SetUnhandledExceptionFilter + LoadLibraryW=CORKEL32_LoadLibraryW + DeviceIoControl=CORKEL32_DeviceIoControl + InterlockedCompareExchange=CORKEL32_InterlockedCompareExchange + CreateToolhelp32Snapshot=CORKEL32_CreateToolhelp32Snapshot IsDebuggerPresent=CORKEL32_IsDebuggerPresent - GetOEMCP=CORKEL32_GetOEMCP - HeapSize=CORKEL32_HeapSize - HeapReAlloc=CORKEL32_HeapReAlloc - GetStringTypeA=CORKEL32_GetStringTypeA - GetLocaleInfoA=CORKEL32_GetLocaleInfoA - SetFilePointer=CORKEL32_SetFilePointer - GetConsoleCP=CORKEL32_GetConsoleCP - GetConsoleMode=CORKEL32_GetConsoleMode - SetStdHandle=CORKEL32_SetStdHandle - WriteConsoleA=CORKEL32_WriteConsoleA - GetConsoleOutputCP=CORKEL32_GetConsoleOutputCP - WriteConsoleW=CORKEL32_WriteConsoleW - FlushFileBuffers=CORKEL32_FlushFileBuffers - GetSystemDirectoryW=CORKEL32_GetSystemDirectoryW + GetFileAttributesExA=CORKEL32_GetFileAttributesExA + GetFileAttributesExW=CORKEL32_GetFileAttributesExW + GetLongPathNameA=CORKEL32_GetLongPathNameA GetLongPathNameW=CORKEL32_GetLongPathNameW - DebugBreak=CORKEL32_DebugBreak - ExitThread=CORKEL32_ExitThread - ResumeThread=CORKEL32_ResumeThread - GetCurrentThread=CORKEL32_GetCurrentThread - FindNextFileA=CORKEL32_FindNextFileA - FindNextFileW=CORKEL32_FindNextFileW - FileTimeToSystemTime=CORKEL32_FileTimeToSystemTime - FileTimeToLocalFileTime=CORKEL32_FileTimeToLocalFileTime - IsValidCodePage=CORKEL32_IsValidCodePage - SetConsoleCtrlHandler=CORKEL32_SetConsoleCtrlHandler - GetEnvironmentStrings=CORKEL32_GetEnvironmentStrings - GetCommandLineW=CORKEL32_GetCommandLineW - SetLocalTime=CORKEL32_SetLocalTime - LoadLibraryW=CORKEL32_LoadLibraryW - GetLocaleInfoW=CORKEL32_GetLocaleInfoW - SetEnvironmentVariableA=CORKEL32_SetEnvironmentVariableA - SetEnvironmentVariableW=CORKEL32_SetEnvironmentVariableW - GetUserDefaultLCID=CORKEL32_GetUserDefaultLCID - EnumSystemLocalesA=CORKEL32_EnumSystemLocalesA - IsValidLocale=CORKEL32_IsValidLocale - GetTimeZoneInformation=CORKEL32_GetTimeZoneInformation - CompareStringA=CORKEL32_CompareStringA - CompareStringW=CORKEL32_CompareStringW - Beep=CORKEL32_Beep - GetDiskFreeSpaceA=CORKEL32_GetDiskFreeSpaceA - GetLogicalDrives=CORKEL32_GetLogicalDrives - GetCurrentDirectoryA=CORKEL32_GetCurrentDirectoryA - SetCurrentDirectoryA=CORKEL32_SetCurrentDirectoryA - SetFileAttributesA=CORKEL32_SetFileAttributesA - GetDriveTypeA=CORKEL32_GetDriveTypeA - CreateDirectoryA=CORKEL32_CreateDirectoryA - RemoveDirectoryA=CORKEL32_RemoveDirectoryA - DeleteFileA=CORKEL32_DeleteFileA - GetCurrentDirectoryW=CORKEL32_GetCurrentDirectoryW - SetCurrentDirectoryW=CORKEL32_SetCurrentDirectoryW - SetFileAttributesW=CORKEL32_SetFileAttributesW - CreateDirectoryW=CORKEL32_CreateDirectoryW - DeleteFileW=CORKEL32_DeleteFileW - MoveFileW=CORKEL32_MoveFileW - RemoveDirectoryW=CORKEL32_RemoveDirectoryW - GetDriveTypeW=CORKEL32_GetDriveTypeW - MoveFileA=CORKEL32_MoveFileA - GetExitCodeProcess=CORKEL32_GetExitCodeProcess - CreateProcessA=CORKEL32_CreateProcessA - CreateProcessW=CORKEL32_CreateProcessW - HeapCompact=CORKEL32_HeapCompact - HeapWalk=CORKEL32_HeapWalk - ReadConsoleA=CORKEL32_ReadConsoleA - ReadConsoleW=CORKEL32_ReadConsoleW - SetConsoleMode=CORKEL32_SetConsoleMode - SetEndOfFile=CORKEL32_SetEndOfFile - DuplicateHandle=CORKEL32_DuplicateHandle - GetFileInformationByHandle=CORKEL32_GetFileInformationByHandle - PeekNamedPipe=CORKEL32_PeekNamedPipe - ReadConsoleInputA=CORKEL32_ReadConsoleInputA - PeekConsoleInputA=CORKEL32_PeekConsoleInputA - GetNumberOfConsoleInputEvents=CORKEL32_GetNumberOfConsoleInputEvents - ReadConsoleInputW=CORKEL32_ReadConsoleInputW - LockFile=CORKEL32_LockFile - UnlockFile=CORKEL32_UnlockFile - CreatePipe=CORKEL32_CreatePipe - SetFileTime=CORKEL32_SetFileTime - LocalFileTimeToFileTime=CORKEL32_LocalFileTimeToFileTime - SystemTimeToFileTime=CORKEL32_SystemTimeToFileTime - GetKernelObjectSecurity=CORKEL32_GetKernelObjectSecurity - GetSecurityDescriptorOwner=CORKEL32_GetSecurityDescriptorOwner - CryptEncrypt=CORKEL32_CryptEncrypt - CryptDecrypt=CORKEL32_CryptDecrypt - CryptDeriveKey=CORKEL32_CryptDeriveKey - CryptSetProvParam=CORKEL32_CryptSetProvParam - CryptSetKeyParam=CORKEL32_CryptSetKeyParam - CryptGenKey=CORKEL32_CryptGenKey - SetSecurityDescriptorDacl=CORKEL32_SetSecurityDescriptorDacl - InitializeSecurityDescriptor=CORKEL32_InitializeSecurityDescriptor - SetEntriesInAclW=CORKEL32_SetEntriesInAclW - AllocateAndInitializeSid=CORKEL32_AllocateAndInitializeSid - AddAccessAllowedAce=CORKEL32_AddAccessAllowedAce - DeleteAce=CORKEL32_DeleteAce - CryptVerifySignatureA=CORKEL32_CryptVerifySignatureA - CryptSetHashParam=CORKEL32_CryptSetHashParam - CryptSignHashA=CORKEL32_CryptSignHashA - GetLengthSid=CORKEL32_GetLengthSid - CopySid=CORKEL32_CopySid - IsValidSid=CORKEL32_IsValidSid - GetSidIdentifierAuthority=CORKEL32_GetSidIdentifierAuthority - GetSidSubAuthorityCount=CORKEL32_GetSidSubAuthorityCount - GetSidSubAuthority=CORKEL32_GetSidSubAuthority - CryptGetKeyParam=CORKEL32_CryptGetKeyParam - CryptImportKey=CORKEL32_CryptImportKey - CryptGetProvParam=CORKEL32_CryptGetProvParam - CryptEnumProvidersA=CORKEL32_CryptEnumProvidersA - CryptGetUserKey=CORKEL32_CryptGetUserKey - CryptDestroyKey=CORKEL32_CryptDestroyKey - CryptExportKey=CORKEL32_CryptExportKey - CryptGenRandom=CORKEL32_CryptGenRandom - RegisterEventSourceW=CORKEL32_RegisterEventSourceW - ReportEventW=CORKEL32_ReportEventW - DeregisterEventSource=CORKEL32_DeregisterEventSource - CryptAcquireContextW=CORKEL32_CryptAcquireContextW - LookupAccountSidW=CORKEL32_LookupAccountSidW - LookupAccountSidA=CORKEL32_LookupAccountSidA - RegQueryValueExW=CORKEL32_RegQueryValueExW - RegEnumValueW=CORKEL32_RegEnumValueW - RegEnumValueA=CORKEL32_RegEnumValueA - RegDeleteValueW=CORKEL32_RegDeleteValueW - RegDeleteValueA=CORKEL32_RegDeleteValueA - RegQueryValueW=CORKEL32_RegQueryValueW - RegQueryValueA=CORKEL32_RegQueryValueA - RegCreateKeyExW=CORKEL32_RegCreateKeyExW - RegCreateKeyExA=CORKEL32_RegCreateKeyExA - RegSetValueExW=CORKEL32_RegSetValueExW - RegSetValueExA=CORKEL32_RegSetValueExA - RegDeleteKeyW=CORKEL32_RegDeleteKeyW - RegDeleteKeyA=CORKEL32_RegDeleteKeyA - DuplicateToken=CORKEL32_DuplicateToken - GetUserNameW=CORKEL32_GetUserNameW - GetUserNameA=CORKEL32_GetUserNameA - RegQueryInfoKeyW=CORKEL32_RegQueryInfoKeyW - RegQueryInfoKeyA=CORKEL32_RegQueryInfoKeyA - RegEnumKeyExW=CORKEL32_RegEnumKeyExW - RegEnumKeyExA=CORKEL32_RegEnumKeyExA - RegOpenKeyExW=CORKEL32_RegOpenKeyExW - GetSecurityInfo=CORKEL32_GetSecurityInfo - EqualSid=CORKEL32_EqualSid - RegOpenKeyExA=CORKEL32_RegOpenKeyExA - RegQueryValueExA=CORKEL32_RegQueryValueExA - CryptAcquireContextA=CORKEL32_CryptAcquireContextA - CryptCreateHash=CORKEL32_CryptCreateHash - CryptHashData=CORKEL32_CryptHashData - CryptGetHashParam=CORKEL32_CryptGetHashParam - CryptDestroyHash=CORKEL32_CryptDestroyHash - CryptReleaseContext=CORKEL32_CryptReleaseContext - GetSecurityDescriptorDacl=CORKEL32_GetSecurityDescriptorDacl - SetKernelObjectSecurity=CORKEL32_SetKernelObjectSecurity - InitializeAcl=CORKEL32_InitializeAcl - GetAce=CORKEL32_GetAce - OpenThreadToken=CORKEL32_OpenThreadToken - SetThreadToken=CORKEL32_SetThreadToken - ImpersonateLoggedOnUser=CORKEL32_ImpersonateLoggedOnUser - RevertToSelf=CORKEL32_RevertToSelf - RegCloseKey=CORKEL32_RegCloseKey - OpenProcessToken=CORKEL32_OpenProcessToken - GetTokenInformation=CORKEL32_GetTokenInformation - FreeSid=CORKEL32_FreeSid - AllocConsole=CORKEL32_AllocConsole - SetConsoleTitleW=CORKEL32_SetConsoleTitleW - FreeConsole=CORKEL32_FreeConsole - EnumSystemLocalesW=CORKEL32_EnumSystemLocalesW - EnumTimeFormatsW=CORKEL32_EnumTimeFormatsW EnumDateFormatsExW=CORKEL32_EnumDateFormatsExW - EnumCalendarInfoW=CORKEL32_EnumCalendarInfoW - WaitForMultipleObjects=CORKEL32_WaitForMultipleObjects - GetUserDefaultLangID=CORKEL32_GetUserDefaultLangID - FlushInstructionCache=CORKEL32_FlushInstructionCache - OpenProcess=CORKEL32_OpenProcess - GetSystemDefaultLCID=CORKEL32_GetSystemDefaultLCID - GetStringTypeExW=CORKEL32_GetStringTypeExW - GetStringTypeExA=CORKEL32_GetStringTypeExA - IsBadReadPtr=CORKEL32_IsBadReadPtr - IsBadStringPtrA=CORKEL32_IsBadStringPtrA - GetThreadLocale=CORKEL32_GetThreadLocale - QueryPerformanceFrequency=CORKEL32_QueryPerformanceFrequency - SetThreadPriority=CORKEL32_SetThreadPriority - GetProcessAffinityMask=CORKEL32_GetProcessAffinityMask SetThreadIdealProcessor=CORKEL32_SetThreadIdealProcessor - SetThreadAffinityMask=CORKEL32_SetThreadAffinityMask - SetProcessAffinityMask=CORKEL32_SetProcessAffinityMask - SetThreadLocale=CORKEL32_SetThreadLocale - MapViewOfFileEx=CORKEL32_MapViewOfFileEx - FreeLibraryAndExitThread=CORKEL32_FreeLibraryAndExitThread - DeviceIoControl=CORKEL32_DeviceIoControl - GetThreadContext=CORKEL32_GetThreadContext - SetThreadContext=CORKEL32_SetThreadContext - SuspendThread=CORKEL32_SuspendThread - GetThreadPriority=CORKEL32_GetThreadPriority - QueueUserAPC=CORKEL32_QueueUserAPC - WaitForMultipleObjectsEx=CORKEL32_WaitForMultipleObjectsEx - SignalObjectAndWait=CORKEL32_SignalObjectAndWait - FlushViewOfFile=CORKEL32_FlushViewOfFile - GetQueuedCompletionStatus=CORKEL32_GetQueuedCompletionStatus - CompareFileTime=CORKEL32_CompareFileTime - GetFileTime=CORKEL32_GetFileTime - GetVersion=CORKEL32_GetVersion - GetSystemDirectoryA=CORKEL32_GetSystemDirectoryA - FindResourceA=CORKEL32_FindResourceA - FindResourceW=CORKEL32_FindResourceW - GetShortPathNameA=CORKEL32_GetShortPathNameA - GetShortPathNameW=CORKEL32_GetShortPathNameW - GetLongPathNameA=CORKEL32_GetLongPathNameA - SearchPathA=CORKEL32_SearchPathA - SearchPathW=CORKEL32_SearchPathW - GetPrivateProfileIntA=CORKEL32_GetPrivateProfileIntA - GetPrivateProfileIntW=CORKEL32_GetPrivateProfileIntW - WritePrivateProfileStringA=CORKEL32_WritePrivateProfileStringA - WritePrivateProfileStringW=CORKEL32_WritePrivateProfileStringW - CopyFileA=CORKEL32_CopyFileA - CopyFileW=CORKEL32_CopyFileW - MoveFileExW=CORKEL32_MoveFileExW - GetVolumeInformationA=CORKEL32_GetVolumeInformationA - GetVolumeInformationW=CORKEL32_GetVolumeInformationW GetCalendarInfoA=CORKEL32_GetCalendarInfoA GetCalendarInfoW=CORKEL32_GetCalendarInfoW - OpenEventA=CORKEL32_OpenEventA - OpenEventW=CORKEL32_OpenEventW - OpenMutexA=CORKEL32_OpenMutexA - OpenMutexW=CORKEL32_OpenMutexW - GetTempPathA=CORKEL32_GetTempPathA - GetTempPathW=CORKEL32_GetTempPathW - GetTempFileNameA=CORKEL32_GetTempFileNameA - GetTempFileNameW=CORKEL32_GetTempFileNameW - OpenFileMappingA=CORKEL32_OpenFileMappingA - OpenFileMappingW=CORKEL32_OpenFileMappingW + SetProcessAffinityMask=CORKEL32_SetProcessAffinityMask + SignalObjectAndWait=CORKEL32_SignalObjectAndWait SwitchToThread=CORKEL32_SwitchToThread - SizeofResource=CORKEL32_SizeofResource - LockResource=CORKEL32_LockResource - LoadResource=CORKEL32_LoadResource - VirtualQueryEx=CORKEL32_VirtualQueryEx - FreeResource=CORKEL32_FreeResource - DosDateTimeToFileTime=CORKEL32_DosDateTimeToFileTime - lstrlenA=CORKEL32_lstrlenA - AreFileApisANSI=CORKEL32_AreFileApisANSI - GetProcessTimes=CORKEL32_GetProcessTimes - SetPriorityClass=CORKEL32_SetPriorityClass - MulDiv=CORKEL32_MulDiv - GlobalHandle=CORKEL32_GlobalHandle - TerminateThread=CORKEL32_TerminateThread IsProcessorFeaturePresent=CORKEL32_IsProcessorFeaturePresent - GlobalAlloc=CORKEL32_GlobalAlloc - GlobalUnlock=CORKEL32_GlobalUnlock - GlobalLock=CORKEL32_GlobalLock - GlobalFree=CORKEL32_GlobalFree - GlobalReAlloc=CORKEL32_GlobalReAlloc - GetSystemWindowsDirectoryW=CORKEL32_GetSystemWindowsDirectoryW - RegisterEventSourceA=CORKEL32_RegisterEventSourceA InitializeCriticalSectionAndSpinCount=CORKEL32_InitializeCriticalSectionAndSpinCount - ExpandEnvironmentStringsA=CORKEL32_ExpandEnvironmentStringsA - ExpandEnvironmentStringsW=CORKEL32_ExpandEnvironmentStringsW - lstrcmpiA=CORKEL32_lstrcmpiA - GetConsoleScreenBufferInfo=CORKEL32_GetConsoleScreenBufferInfo - GetOpenFileNameA=CORKEL32_GetOpenFileNameA - GetOpenFileNameW=CORKEL32_GetOpenFileNameW + GetSystemWindowsDirectoryW=CORKEL32_GetSystemWindowsDirectoryW + + CryptEnumProvidersA=CORADV32_CryptEnumProvidersA + SetEntriesInAclW=CORADV32_SetEntriesInAclW + GetSecurityInfo=CORADV32_GetSecurityInfo + CryptAcquireContextW=CORADV32_CryptAcquireContextW + + GetOpenFileNameA=CORDLG32_GetOpenFileNameA + GetOpenFileNameW=CORDLG32_GetOpenFileNameW + + CloseHandle=KERNEL32.CloseHandle + UnmapViewOfFile=KERNEL32.UnmapViewOfFile + FreeLibrary=KERNEL32.FreeLibrary + SetLastError=KERNEL32.SetLastError + GetFileSize=KERNEL32.GetFileSize + InterlockedExchange=KERNEL32.InterlockedExchange + VirtualQuery=KERNEL32.VirtualQuery + VirtualAlloc=KERNEL32.VirtualAlloc + GlobalMemoryStatus=KERNEL32.GlobalMemoryStatus + ReleaseMutex=KERNEL32.ReleaseMutex + WaitForSingleObject=KERNEL32.WaitForSingleObject + GetSystemInfo=KERNEL32.GetSystemInfo + SetErrorMode=KERNEL32.SetErrorMode + MapViewOfFile=KERNEL32.MapViewOfFile + InterlockedIncrement=KERNEL32.InterlockedIncrement + ExitProcess=KERNEL32.ExitProcess + DisableThreadLibraryCalls=KERNEL32.DisableThreadLibraryCalls + VirtualProtect=KERNEL32.VirtualProtect + WriteFile=KERNEL32.WriteFile + GetLocalTime=KERNEL32.GetLocalTime + ReadProcessMemory=KERNEL32.ReadProcessMemory + InterlockedDecrement=KERNEL32.InterlockedDecrement + ReadFile=KERNEL32.ReadFile + FindClose=KERNEL32.FindClose + InitializeCriticalSection=KERNEL32.InitializeCriticalSection + DeleteCriticalSection=KERNEL32.DeleteCriticalSection + EnterCriticalSection=KERNEL32.EnterCriticalSection + LeaveCriticalSection=KERNEL32.LeaveCriticalSection + HeapCreate=KERNEL32.HeapCreate + HeapDestroy=KERNEL32.HeapDestroy + GetStringTypeW=KERNEL32.GetStringTypeW + IsDBCSLeadByteEx=KERNEL32.IsDBCSLeadByteEx + TlsGetValue=KERNEL32.TlsGetValue + GetModuleHandleA@4=KERNEL32.GetModuleHandleA + LocalFree=KERNEL32.LocalFree + IsDBCSLeadByte=KERNEL32.IsDBCSLeadByte + GetCPInfo=KERNEL32.GetCPInfo + GetACP=KERNEL32.GetACP + GetCurrentThreadId=KERNEL32.GetCurrentThreadId + QueryPerformanceCounter=KERNEL32.QueryPerformanceCounter + GetSystemTimeAsFileTime=KERNEL32.GetSystemTimeAsFileTime + lstrlenW=KERNEL32.lstrlenW + GetSystemDefaultLangID=KERNEL32.GetSystemDefaultLangID + GetVersionExA=KERNEL32.GetVersionExA + GetWindowsDirectoryA=KERNEL32.GetWindowsDirectoryA + GetWindowsDirectoryW=KERNEL32.GetWindowsDirectoryW + GetModuleHandleW=KERNEL32.GetModuleHandleW + FreeEnvironmentStringsA=KERNEL32.FreeEnvironmentStringsA + GetEnvironmentStrings=KERNEL32.GetEnvironmentStrings + GetEnvironmentStringsW=KERNEL32.GetEnvironmentStringsW + FreeEnvironmentStringsW=KERNEL32.FreeEnvironmentStringsW + TerminateProcess=KERNEL32.TerminateProcess + GetCurrentProcess=KERNEL32.GetCurrentProcess + GetFullPathNameA=KERNEL32.GetFullPathNameA + GetFullPathNameW=KERNEL32.GetFullPathNameW + GetModuleFileNameA=KERNEL32.GetModuleFileNameA + GetModuleFileNameW=KERNEL32.GetModuleFileNameW + RaiseException=KERNEL32.RaiseException + CreateFileW=KERNEL32.CreateFileW + CreateSemaphoreA=KERNEL32.CreateSemaphoreA + CreateSemaphoreW=KERNEL32.CreateSemaphoreW + GetDateFormatA=KERNEL32.GetDateFormatA + GetDateFormatW=KERNEL32.GetDateFormatW + GetTimeFormatA=KERNEL32.GetTimeFormatA + GetTimeFormatW=KERNEL32.GetTimeFormatW + LCMapStringA=KERNEL32.LCMapStringA + LCMapStringW=KERNEL32.LCMapStringW + FindFirstFileA=KERNEL32.FindFirstFileA + FindFirstFileW=KERNEL32.FindFirstFileW + GetVersionExW=KERNEL32.GetVersionExW + OutputDebugStringA=KERNEL32.OutputDebugStringA + OutputDebugStringW=KERNEL32.OutputDebugStringW + CreateMutexA=KERNEL32.CreateMutexA + CreateMutexW=KERNEL32.CreateMutexW + CreateEventA=KERNEL32.CreateEventA + CreateEventW=KERNEL32.CreateEventW + GetFileAttributesA=KERNEL32.GetFileAttributesA + GetFileAttributesW=KERNEL32.GetFileAttributesW + GetEnvironmentVariableW=KERNEL32.GetEnvironmentVariableW + CreateFileMappingA=KERNEL32.CreateFileMappingA + CreateFileMappingW=KERNEL32.CreateFileMappingW + GetCurrentProcessId=KERNEL32.GetCurrentProcessId + LocalAlloc=KERNEL32.LocalAlloc + FormatMessageA=KERNEL32.FormatMessageA + FormatMessageW=KERNEL32.FormatMessageW + SetEvent=KERNEL32.SetEvent + ResetEvent=KERNEL32.ResetEvent + ReleaseSemaphore=KERNEL32.ReleaseSemaphore + TlsSetValue=KERNEL32.TlsSetValue + TlsAlloc=KERNEL32.TlsAlloc + TlsFree=KERNEL32.TlsFree + HeapAlloc=KERNEL32.HeapAlloc + GetProcessHeap=KERNEL32.GetProcessHeap + HeapFree=KERNEL32.HeapFree + WaitForSingleObjectEx=KERNEL32.WaitForSingleObjectEx + SleepEx=KERNEL32.SleepEx + VirtualFree=KERNEL32.VirtualFree + HeapValidate=KERNEL32.HeapValidate + CreateThread=KERNEL32.CreateThread + GetStdHandle=KERNEL32.GetStdHandle + GetCommandLineA=KERNEL32.GetCommandLineA + RtlUnwind=KERNEL32.RtlUnwind + Sleep=KERNEL32.Sleep + SetHandleCount=KERNEL32.SetHandleCount + GetFileType=KERNEL32.GetFileType + GetStartupInfoA=KERNEL32.GetStartupInfoA + UnhandledExceptionFilter=KERNEL32.UnhandledExceptionFilter + GetTickCount=KERNEL32.GetTickCount + SetUnhandledExceptionFilter=KERNEL32.SetUnhandledExceptionFilter + GetOEMCP=KERNEL32.GetOEMCP + HeapSize=KERNEL32.HeapSize + HeapReAlloc=KERNEL32.HeapReAlloc + GetStringTypeA=KERNEL32.GetStringTypeA + GetLocaleInfoA=KERNEL32.GetLocaleInfoA + SetFilePointer=KERNEL32.SetFilePointer + GetConsoleCP=KERNEL32.GetConsoleCP + GetConsoleMode=KERNEL32.GetConsoleMode + SetStdHandle=KERNEL32.SetStdHandle + WriteConsoleA=KERNEL32.WriteConsoleA + GetConsoleOutputCP=KERNEL32.GetConsoleOutputCP + WriteConsoleW=KERNEL32.WriteConsoleW + FlushFileBuffers=KERNEL32.FlushFileBuffers + GetSystemDirectoryW=KERNEL32.GetSystemDirectoryW + DebugBreak=KERNEL32.DebugBreak + ExitThread=KERNEL32.ExitThread + ResumeThread=KERNEL32.ResumeThread + GetCurrentThread=KERNEL32.GetCurrentThread + FindNextFileA=KERNEL32.FindNextFileA + FindNextFileW=KERNEL32.FindNextFileW + FileTimeToSystemTime=KERNEL32.FileTimeToSystemTime + FileTimeToLocalFileTime=KERNEL32.FileTimeToLocalFileTime + IsValidCodePage=KERNEL32.IsValidCodePage + SetConsoleCtrlHandler=KERNEL32.SetConsoleCtrlHandler + GetEnvironmentStrings=KERNEL32.GetEnvironmentStrings + GetCommandLineW=KERNEL32.GetCommandLineW + SetLocalTime=KERNEL32.SetLocalTime + GetLocaleInfoW=KERNEL32.GetLocaleInfoW + SetEnvironmentVariableA=KERNEL32.SetEnvironmentVariableA + SetEnvironmentVariableW=KERNEL32.SetEnvironmentVariableW + GetUserDefaultLCID=KERNEL32.GetUserDefaultLCID + EnumSystemLocalesA=KERNEL32.EnumSystemLocalesA + IsValidLocale=KERNEL32.IsValidLocale + GetTimeZoneInformation=KERNEL32.GetTimeZoneInformation + CompareStringA=KERNEL32.CompareStringA + CompareStringW=KERNEL32.CompareStringW + Beep=KERNEL32.Beep + GetDiskFreeSpaceA=KERNEL32.GetDiskFreeSpaceA + GetLogicalDrives=KERNEL32.GetLogicalDrives + GetCurrentDirectoryA=KERNEL32.GetCurrentDirectoryA + SetCurrentDirectoryA=KERNEL32.SetCurrentDirectoryA + SetFileAttributesA=KERNEL32.SetFileAttributesA + GetDriveTypeA=KERNEL32.GetDriveTypeA + CreateDirectoryA=KERNEL32.CreateDirectoryA + RemoveDirectoryA=KERNEL32.RemoveDirectoryA + DeleteFileA=KERNEL32.DeleteFileA + GetCurrentDirectoryW=KERNEL32.GetCurrentDirectoryW + SetCurrentDirectoryW=KERNEL32.SetCurrentDirectoryW + SetFileAttributesW=KERNEL32.SetFileAttributesW + CreateDirectoryW=KERNEL32.CreateDirectoryW + DeleteFileW=KERNEL32.DeleteFileW + MoveFileW=KERNEL32.MoveFileW + RemoveDirectoryW=KERNEL32.RemoveDirectoryW + GetDriveTypeW=KERNEL32.GetDriveTypeW + MoveFileA=KERNEL32.MoveFileA + GetExitCodeProcess=KERNEL32.GetExitCodeProcess + CreateProcessA=KERNEL32.CreateProcessA + CreateProcessW=KERNEL32.CreateProcessW + HeapCompact=KERNEL32.HeapCompact + HeapWalk=KERNEL32.HeapWalk + ReadConsoleA=KERNEL32.ReadConsoleA + ReadConsoleW=KERNEL32.ReadConsoleW + SetConsoleMode=KERNEL32.SetConsoleMode + SetEndOfFile=KERNEL32.SetEndOfFile + DuplicateHandle=KERNEL32.DuplicateHandle + GetFileInformationByHandle=KERNEL32.GetFileInformationByHandle + PeekNamedPipe=KERNEL32.PeekNamedPipe + ReadConsoleInputA=KERNEL32.ReadConsoleInputA + PeekConsoleInputA=KERNEL32.PeekConsoleInputA + GetNumberOfConsoleInputEvents=KERNEL32.GetNumberOfConsoleInputEvents + ReadConsoleInputW=KERNEL32.ReadConsoleInputW + LockFile=KERNEL32.LockFile + UnlockFile=KERNEL32.UnlockFile + CreatePipe=KERNEL32.CreatePipe + SetFileTime=KERNEL32.SetFileTime + LocalFileTimeToFileTime=KERNEL32.LocalFileTimeToFileTime + SystemTimeToFileTime=KERNEL32.SystemTimeToFileTime + + GetKernelObjectSecurity=ADVAPI32.GetKernelObjectSecurity + GetSecurityDescriptorOwner=ADVAPI32.GetSecurityDescriptorOwner + CryptEncrypt=ADVAPI32.CryptEncrypt + CryptDecrypt=ADVAPI32.CryptDecrypt + CryptDeriveKey=ADVAPI32.CryptDeriveKey + CryptSetProvParam=ADVAPI32.CryptSetProvParam + CryptSetKeyParam=ADVAPI32.CryptSetKeyParam + CryptGenKey=ADVAPI32.CryptGenKey + SetSecurityDescriptorDacl=ADVAPI32.SetSecurityDescriptorDacl + InitializeSecurityDescriptor=ADVAPI32.InitializeSecurityDescriptor + AllocateAndInitializeSid=ADVAPI32.AllocateAndInitializeSid + AddAccessAllowedAce=ADVAPI32.AddAccessAllowedAce + DeleteAce=ADVAPI32.DeleteAce + CryptVerifySignatureA=ADVAPI32.CryptVerifySignatureA + CryptSetHashParam=ADVAPI32.CryptSetHashParam + CryptSignHashA=ADVAPI32.CryptSignHashA + GetLengthSid=ADVAPI32.GetLengthSid + CopySid=ADVAPI32.CopySid + IsValidSid=ADVAPI32.IsValidSid + GetSidIdentifierAuthority=ADVAPI32.GetSidIdentifierAuthority + GetSidSubAuthorityCount=ADVAPI32.GetSidSubAuthorityCount + GetSidSubAuthority=ADVAPI32.GetSidSubAuthority + CryptGetKeyParam=ADVAPI32.CryptGetKeyParam + CryptImportKey=ADVAPI32.CryptImportKey + CryptGetProvParam=ADVAPI32.CryptGetProvParam + CryptGetUserKey=ADVAPI32.CryptGetUserKey + CryptDestroyKey=ADVAPI32.CryptDestroyKey + CryptExportKey=ADVAPI32.CryptExportKey + CryptGenRandom=ADVAPI32.CryptGenRandom + RegisterEventSourceW=ADVAPI32.RegisterEventSourceW + ReportEventW=ADVAPI32.ReportEventW + DeregisterEventSource=ADVAPI32.DeregisterEventSource + LookupAccountSidW=ADVAPI32.LookupAccountSidW + LookupAccountSidA=ADVAPI32.LookupAccountSidA + RegQueryValueExW=ADVAPI32.RegQueryValueExW + RegEnumValueW=ADVAPI32.RegEnumValueW + RegEnumValueA=ADVAPI32.RegEnumValueA + RegDeleteValueW=ADVAPI32.RegDeleteValueW + RegDeleteValueA=ADVAPI32.RegDeleteValueA + RegQueryValueW=ADVAPI32.RegQueryValueW + RegQueryValueA=ADVAPI32.RegQueryValueA + RegCreateKeyExW=ADVAPI32.RegCreateKeyExW + RegCreateKeyExA=ADVAPI32.RegCreateKeyExA + RegSetValueExW=ADVAPI32.RegSetValueExW + RegSetValueExA=ADVAPI32.RegSetValueExA + RegDeleteKeyW=ADVAPI32.RegDeleteKeyW + RegDeleteKeyA=ADVAPI32.RegDeleteKeyA + DuplicateToken=ADVAPI32.DuplicateToken + GetUserNameW=ADVAPI32.GetUserNameW + GetUserNameA=ADVAPI32.GetUserNameA + RegQueryInfoKeyW=ADVAPI32.RegQueryInfoKeyW + RegQueryInfoKeyA=ADVAPI32.RegQueryInfoKeyA + RegEnumKeyExW=ADVAPI32.RegEnumKeyExW + RegEnumKeyExA=ADVAPI32.RegEnumKeyExA + RegOpenKeyExW=ADVAPI32.RegOpenKeyExW + EqualSid=ADVAPI32.EqualSid + RegOpenKeyExA=ADVAPI32.RegOpenKeyExA + RegQueryValueExA=ADVAPI32.RegQueryValueExA + CryptAcquireContextA=ADVAPI32.CryptAcquireContextA + CryptCreateHash=ADVAPI32.CryptCreateHash + CryptHashData=ADVAPI32.CryptHashData + CryptGetHashParam=ADVAPI32.CryptGetHashParam + CryptDestroyHash=ADVAPI32.CryptDestroyHash + CryptReleaseContext=ADVAPI32.CryptReleaseContext + GetSecurityDescriptorDacl=ADVAPI32.GetSecurityDescriptorDacl + SetKernelObjectSecurity=ADVAPI32.SetKernelObjectSecurity + InitializeAcl=ADVAPI32.InitializeAcl + GetAce=ADVAPI32.GetAce + OpenThreadToken=ADVAPI32.OpenThreadToken + SetThreadToken=ADVAPI32.SetThreadToken + ImpersonateLoggedOnUser=ADVAPI32.ImpersonateLoggedOnUser + RevertToSelf=ADVAPI32.RevertToSelf + RegCloseKey=ADVAPI32.RegCloseKey + OpenProcessToken=ADVAPI32.OpenProcessToken + GetTokenInformation=ADVAPI32.GetTokenInformation + FreeSid=ADVAPI32.FreeSid + + + AllocConsole=KERNEL32.AllocConsole + SetConsoleTitleW=KERNEL32.SetConsoleTitleW + FreeConsole=KERNEL32.FreeConsole + EnumSystemLocalesW=KERNEL32.EnumSystemLocalesW + EnumTimeFormatsW=KERNEL32.EnumTimeFormatsW + EnumCalendarInfoW=KERNEL32.EnumCalendarInfoW + WaitForMultipleObjects=KERNEL32.WaitForMultipleObjects + GetUserDefaultLangID=KERNEL32.GetUserDefaultLangID + FlushInstructionCache=KERNEL32.FlushInstructionCache + OpenProcess=KERNEL32.OpenProcess + GetSystemDefaultLCID=KERNEL32.GetSystemDefaultLCID + GetStringTypeExW=KERNEL32.GetStringTypeExW + GetStringTypeExA=KERNEL32.GetStringTypeExA + IsBadReadPtr=KERNEL32.IsBadReadPtr + IsBadStringPtrA=KERNEL32.IsBadStringPtrA + GetThreadLocale=KERNEL32.GetThreadLocale + QueryPerformanceFrequency=KERNEL32.QueryPerformanceFrequency + SetThreadPriority=KERNEL32.SetThreadPriority + GetProcessAffinityMask=KERNEL32.GetProcessAffinityMask + SetThreadAffinityMask=KERNEL32.SetThreadAffinityMask + SetThreadLocale=KERNEL32.SetThreadLocale + MapViewOfFileEx=KERNEL32.MapViewOfFileEx + FreeLibraryAndExitThread=KERNEL32.FreeLibraryAndExitThread + GetThreadContext=KERNEL32.GetThreadContext + SetThreadContext=KERNEL32.SetThreadContext + SuspendThread=KERNEL32.SuspendThread + GetThreadPriority=KERNEL32.GetThreadPriority + QueueUserAPC=KERNEL32.QueueUserAPC + WaitForMultipleObjectsEx=KERNEL32.WaitForMultipleObjectsEx + FlushViewOfFile=KERNEL32.FlushViewOfFile + GetQueuedCompletionStatus=KERNEL32.GetQueuedCompletionStatus + CompareFileTime=KERNEL32.CompareFileTime + GetFileTime=KERNEL32.GetFileTime + GetVersion=KERNEL32.GetVersion + GetSystemDirectoryA=KERNEL32.GetSystemDirectoryA + FindResourceA=KERNEL32.FindResourceA + FindResourceW=KERNEL32.FindResourceW + GetShortPathNameA=KERNEL32.GetShortPathNameA + GetShortPathNameW=KERNEL32.GetShortPathNameW + SearchPathA=KERNEL32.SearchPathA + SearchPathW=KERNEL32.SearchPathW + GetPrivateProfileIntA=KERNEL32.GetPrivateProfileIntA + GetPrivateProfileIntW=KERNEL32.GetPrivateProfileIntW + WritePrivateProfileStringA=KERNEL32.WritePrivateProfileStringA + WritePrivateProfileStringW=KERNEL32.WritePrivateProfileStringW + CopyFileA=KERNEL32.CopyFileA + CopyFileW=KERNEL32.CopyFileW + MoveFileExW=KERNEL32.MoveFileExW + GetVolumeInformationA=KERNEL32.GetVolumeInformationA + GetVolumeInformationW=KERNEL32.GetVolumeInformationW + OpenEventA=KERNEL32.OpenEventA + OpenEventW=KERNEL32.OpenEventW + OpenMutexA=KERNEL32.OpenMutexA + OpenMutexW=KERNEL32.OpenMutexW + GetTempPathA=KERNEL32.GetTempPathA + GetTempPathW=KERNEL32.GetTempPathW + GetTempFileNameA=KERNEL32.GetTempFileNameA + GetTempFileNameW=KERNEL32.GetTempFileNameW + OpenFileMappingA=KERNEL32.OpenFileMappingA + OpenFileMappingW=KERNEL32.OpenFileMappingW + SizeofResource=KERNEL32.SizeofResource + LockResource=KERNEL32.LockResource + LoadResource=KERNEL32.LoadResource + VirtualQueryEx=KERNEL32.VirtualQueryEx + FreeResource=KERNEL32.FreeResource + DosDateTimeToFileTime=KERNEL32.DosDateTimeToFileTime + lstrlenA=KERNEL32.lstrlenA + AreFileApisANSI=KERNEL32.AreFileApisANSI + GetProcessTimes=KERNEL32.GetProcessTimes + SetPriorityClass=KERNEL32.SetPriorityClass + MulDiv=KERNEL32.MulDiv + GlobalHandle=KERNEL32.GlobalHandle + TerminateThread=KERNEL32.TerminateThread + GlobalAlloc=KERNEL32.GlobalAlloc + GlobalUnlock=KERNEL32.GlobalUnlock + GlobalLock=KERNEL32.GlobalLock + GlobalFree=KERNEL32.GlobalFree + GlobalReAlloc=KERNEL32.GlobalReAlloc + RegisterEventSourceA=KERNEL32.RegisterEventSourceA + ExpandEnvironmentStringsA=KERNEL32.ExpandEnvironmentStringsA + ExpandEnvironmentStringsW=KERNEL32.ExpandEnvironmentStringsW + lstrcmpiA=KERNEL32.lstrcmpiA + GetConsoleScreenBufferInfo=KERNEL32.GetConsoleScreenBufferInfo + + \ No newline at end of file diff --git a/wrappers/corusr.def b/wrappers/corusr.def index fcf3317..d811794 100644 --- a/wrappers/corusr.def +++ b/wrappers/corusr.def @@ -1,24 +1,25 @@ LIBRARY EXPORTS - GetUserObjectInformationW=CORUSR_GetUserObjectInformationW - PostMessageW=CORUSR_PostMessageW - PostMessageA=CORUSR_PostMessageA - DispatchMessageW=CORUSR_DispatchMessageW - MessageBoxA=CORUSR_MessageBoxA - MessageBoxW=CORUSR_MessageBoxW - GetClassNameA=CORUSR_GetClassNameA - GetClassNameW=CORUSR_GetClassNameW - LoadStringA=CORUSR_LoadStringA - LoadStringW=CORUSR_LoadStringW - GetDesktopWindow=CORUSR_GetDesktopWindow - wsprintfW=CORUSR_wsprintfW - GetProcessWindowStation=CORUSR_GetProcessWindowStation - DispatchMessageA=CORUSR_DispatchMessageA - PeekMessageW=CORUSR_PeekMessageW - PeekMessageA=CORUSR_PeekMessageA - EnumThreadWindows=CORUSR_EnumThreadWindows MsgWaitForMultipleObjects=CORUSR_MsgWaitForMultipleObjects MsgWaitForMultipleObjectsEx=CORUSR_MsgWaitForMultipleObjectsEx - TranslateMessage=CORUSR_TranslateMessage - CharNextExA=CORUSR_CharNextExA - InSendMessage=CORUSR_InSendMessage + wsprintfW=CORUSR_wsprintfW + + GetUserObjectInformationW=USER32.GetUserObjectInformationW + PostMessageW=USER32.PostMessageW + PostMessageA=USER32.PostMessageA + DispatchMessageW=USER32.DispatchMessageW + MessageBoxA=USER32.MessageBoxA + MessageBoxW=USER32.MessageBoxW + GetClassNameA=USER32.GetClassNameA + GetClassNameW=USER32.GetClassNameW + LoadStringA=USER32.LoadStringA + LoadStringW=USER32.LoadStringW + GetDesktopWindow=USER32.GetDesktopWindow + GetProcessWindowStation=USER32.GetProcessWindowStation + DispatchMessageA=USER32.DispatchMessageA + PeekMessageW=USER32.PeekMessageW + PeekMessageA=USER32.PeekMessageA + EnumThreadWindows=USER32.EnumThreadWindows + TranslateMessage=USER32.TranslateMessage + CharNextExA=USER32.CharNextExA + InSendMessage=USER32.InSendMessage diff --git a/wrappers/kernel32.c b/wrappers/kernel32.c index aa5d734..7e06ebf 100644 --- a/wrappers/kernel32.c +++ b/wrappers/kernel32.c @@ -5,41 +5,6 @@ #include "debug.h" -typedef struct _FILE_NETWORK_OPEN_INFORMATION { - LARGE_INTEGER CreationTime; - LARGE_INTEGER LastAccessTime; - LARGE_INTEGER LastWriteTime; - LARGE_INTEGER ChangeTime; - LARGE_INTEGER AllocationSize; - LARGE_INTEGER EndOfFile; - ULONG FileAttributes; -} FILE_NETWORK_OPEN_INFORMATION, *PFILE_NETWORK_OPEN_INFORMATION; - -// Passthroughs -BOOL WINAPI CORKEL32_CloseHandle(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "CloseHandle"); - return CloseHandle(param_0); -} - -BOOL WINAPI CORKEL32_UnmapViewOfFile(LPCVOID param_0) -{ - Trace(TRACE_PASSTHROUGH, "UnmapViewOfFile"); - return UnmapViewOfFile(param_0); -} - -BOOL WINAPI CORKEL32_FreeLibrary(HMODULE param_0) -{ - Trace(TRACE_PASSTHROUGH, "FreeLibrary"); - return FreeLibrary(param_0); -} - -VOID WINAPI CORKEL32_SetLastError(DWORD err) -{ - Trace(TRACE_PASSTHROUGH, "SetLastError"); - SetLastError(err); -} - DWORD WINAPI CORKEL32_GetLastError() { DWORD e = GetLastError(); @@ -47,18 +12,6 @@ DWORD WINAPI CORKEL32_GetLastError() return e; } -DWORD WINAPI CORKEL32_GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh) -{ - Trace(TRACE_PASSTHROUGH, "GetFileSize"); - return GetFileSize(hFile, lpFileSizeHigh); -} - -LONG WINAPI CORKEL32_InterlockedExchange(LPLONG Target, LONG Value) -{ - Trace(TRACE_PASSTHROUGH, "InterlockedExchange"); - return InterlockedExchange(Target, Value); -} - FARPROC WINAPI CORKEL32_GetProcAddress(HMODULE hModule, LPCSTR lpProcName) { FARPROC f = GetProcAddress(hModule, lpProcName); @@ -68,156 +21,6 @@ FARPROC WINAPI CORKEL32_GetProcAddress(HMODULE hModule, LPCSTR lpProcName) return f; } -DWORD WINAPI CORKEL32_VirtualQuery(LPCVOID param_0, PMEMORY_BASIC_INFORMATION param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "VirtualQuery"); - return VirtualQuery(param_0, param_1, param_2); -} - -LPVOID WINAPI CORKEL32_VirtualAlloc(LPVOID param_0, DWORD param_1, DWORD param_2, DWORD param_3) -{ - Trace(TRACE_PASSTHROUGH, "VirtualAlloc"); - return VirtualAlloc(param_0, param_1, param_2, param_3); -} - -VOID WINAPI CORKEL32_GlobalMemoryStatus(LPMEMORYSTATUS param_0) -{ - Trace(TRACE_PASSTHROUGH, "GlobalMemoryStatus"); - GlobalMemoryStatus(param_0); -} - -BOOL WINAPI CORKEL32_ReleaseMutex(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "ReleaseMutex"); - return ReleaseMutex(param_0); -} - -DWORD WINAPI CORKEL32_WaitForSingleObject(HANDLE param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "WaitForSingleObject"); - return WaitForSingleObject(param_0, param_1); -} - -VOID WINAPI CORKEL32_GetSystemInfo(LPSYSTEM_INFO param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetSystemInfo"); - GetSystemInfo(param_0); -} - -UINT WINAPI CORKEL32_SetErrorMode(UINT param_0) -{ - Trace(TRACE_PASSTHROUGH, "SetErrorMode"); - return SetErrorMode(param_0); -} - -LPVOID WINAPI CORKEL32_MapViewOfFile(HANDLE param_0, DWORD param_1, DWORD param_2, DWORD param_3, DWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "MapViewOfFile"); - return MapViewOfFile(param_0, param_1, param_2, param_3, param_4); -} - -LONG WINAPI CORKEL32_InterlockedIncrement(LONG *dest) -{ - Trace(TRACE_PASSTHROUGH, "InterlockedIncrement"); - return InterlockedIncrement(dest); -} - -VOID WINAPI CORKEL32_ExitProcess(DWORD param_0) -{ - Trace(TRACE_PASSTHROUGH, "ExitProcess"); - ExitProcess(param_0); -} - -BOOL WINAPI CORKEL32_DisableThreadLibraryCalls(HMODULE param_0) -{ - Trace(TRACE_PASSTHROUGH, "DisableThreadLibraryCalls"); - return DisableThreadLibraryCalls(param_0); -} - -BOOL WINAPI CORKEL32_VirtualProtect(LPVOID param_0, DWORD param_1, DWORD param_2, LPDWORD param_3) -{ - Trace(TRACE_PASSTHROUGH, "VirtualProtect"); - return VirtualProtect(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_WriteFile(HANDLE param_0, LPCVOID param_1, DWORD param_2, LPDWORD param_3, LPOVERLAPPED param_4) -{ - Trace(TRACE_PASSTHROUGH, "WriteFile"); - return WriteFile(param_0, param_1, param_2, param_3, param_4); -} - -VOID WINAPI CORKEL32_GetLocalTime(LPSYSTEMTIME param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetLocalTime"); - GetLocalTime(param_0); -} - -BOOL WINAPI CORKEL32_ReadProcessMemory(HANDLE param_0, LPCVOID param_1, LPVOID param_2, DWORD param_3, LPDWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "ReadProcessMemory"); - return ReadProcessMemory(param_0, param_1, param_2, param_3, param_4); -} - -LONG WINAPI CORKEL32_InterlockedDecrement(LONG *dest) -{ - Trace(TRACE_PASSTHROUGH, "InterlockedDecrement"); - return InterlockedDecrement(dest); -} - -BOOL WINAPI CORKEL32_ReadFile(HANDLE param_0, LPVOID param_1, DWORD param_2, LPDWORD param_3, LPOVERLAPPED param_4) -{ - Trace(TRACE_PASSTHROUGH, "ReadFile"); - return ReadFile(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_FindClose(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "FindClose"); - return FindClose(param_0); -} - -void WINAPI CORKEL32_InitializeCriticalSection(CRITICAL_SECTION *lpCrit) -{ - Trace(TRACE_PASSTHROUGH, "InitializeCriticalSection"); - InitializeCriticalSection(lpCrit); -} - -void WINAPI CORKEL32_DeleteCriticalSection(CRITICAL_SECTION *lpCrit) -{ - Trace(TRACE_PASSTHROUGH, "DeleteCriticalSection"); - DeleteCriticalSection(lpCrit); -} - -void WINAPI CORKEL32_EnterCriticalSection(CRITICAL_SECTION *lpCrit) -{ - Trace(TRACE_PASSTHROUGH, "EnterCriticalSection"); - EnterCriticalSection(lpCrit); -} - -void WINAPI CORKEL32_LeaveCriticalSection(CRITICAL_SECTION *lpCrit) -{ - Trace(TRACE_PASSTHROUGH, "LeaveCriticalSection"); - LeaveCriticalSection(lpCrit); -} - -HANDLE WINAPI CORKEL32_HeapCreate(DWORD param_0, DWORD param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "HeapCreate"); - return HeapCreate(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_HeapDestroy(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "HeapDestroy"); - return HeapDestroy(param_0); -} - -BOOL WINAPI CORKEL32_GetStringTypeW(DWORD param_0, LPCWSTR param_1, INT param_2, LPWORD param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetStringTypeW"); - return GetStringTypeW(param_0, param_1, param_2, param_3); -} - INT WINAPI CORKEL32_MultiByteToWideChar(UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr, INT cbMultiByte, LPWSTR lpWideCharStr, INT cchWideChar) { INT r; @@ -228,126 +31,6 @@ INT WINAPI CORKEL32_MultiByteToWideChar(UINT CodePage, DWORD dwFlags, LPCSTR lpM return r; } -BOOL WINAPI CORKEL32_IsDBCSLeadByteEx(UINT param_0, BYTE param_1) -{ - Trace(TRACE_PASSTHROUGH, "IsDBCSLeadByteEx"); - return IsDBCSLeadByteEx(param_0, param_1); -} - -LPVOID WINAPI CORKEL32_TlsGetValue(DWORD param_0) -{ - Trace(TRACE_PASSTHROUGH, "TlsGetValue"); - return TlsGetValue(param_0); -} - -HMODULE WINAPI CORKEL32_GetModuleHandleA(LPCSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetModuleHandleA: %s", param_0); - return GetModuleHandleA(param_0); -} - -HLOCAL WINAPI CORKEL32_LocalFree(HLOCAL param_0) -{ - Trace(TRACE_PASSTHROUGH, "LocalFree"); - return LocalFree(param_0); -} - -BOOL WINAPI CORKEL32_IsDBCSLeadByte(BYTE param_0) -{ - Trace(TRACE_PASSTHROUGH, "IsDBCSLeadByte"); - return IsDBCSLeadByte(param_0); -} - -BOOL WINAPI CORKEL32_GetCPInfo(UINT param_0, LPCPINFO param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetCPInfo"); - return GetCPInfo(param_0, param_1); -} - -UINT WINAPI CORKEL32_GetACP() -{ - Trace(TRACE_PASSTHROUGH, "GetACP"); - return GetACP(); -} - -DWORD WINAPI CORKEL32_GetCurrentThreadId() -{ - Trace(TRACE_PASSTHROUGH, "GetCurrentThreadId"); - return GetCurrentThreadId(); -} - -BOOL WINAPI CORKEL32_QueryPerformanceCounter(LARGE_INTEGER* param_0) -{ - Trace(TRACE_PASSTHROUGH, "QueryPerformanceCounter"); - return QueryPerformanceCounter(param_0); -} - -VOID WINAPI CORKEL32_GetSystemTimeAsFileTime(LPFILETIME param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetSystemTimeAsFileTime"); - GetSystemTimeAsFileTime(param_0); -} - -INT WINAPI CORKEL32_lstrlenW(LPCWSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "lstrlenW"); - return lstrlenW(param_0); -} - -LANGID WINAPI CORKEL32_GetSystemDefaultLangID() -{ - Trace(TRACE_PASSTHROUGH, "GetSystemDefaultLangID"); - return GetSystemDefaultLangID(); -} - -BOOL WINAPI CORKEL32_GetVersionExA(OSVERSIONINFOA* param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetVersionExA"); - return GetVersionExA(param_0); -} - -UINT WINAPI CORKEL32_GetWindowsDirectoryA(LPSTR param_0, UINT param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetWindowsDirectoryA"); - return GetWindowsDirectoryA(param_0, param_1); -} - -UINT WINAPI CORKEL32_GetWindowsDirectoryW(LPWSTR param_0, UINT param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetWindowsDirectoryW"); - return GetWindowsDirectoryW(param_0, param_1); -} - -HMODULE WINAPI CORKEL32_GetModuleHandleW(LPCWSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetModuleHandleW"); - return GetModuleHandleW(param_0); -} - -BOOL WINAPI CORKEL32_FreeEnvironmentStringsA(LPSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "FreeEnvironmentStringsA"); - return FreeEnvironmentStringsA(param_0); -} - -LPSTR WINAPI CORKEL32_GetEnvironmentStrings() -{ - Trace(TRACE_PASSTHROUGH, "GetEnvironmentStrings"); - return GetEnvironmentStrings(); -} - -LPWSTR WINAPI CORKEL32_GetEnvironmentStringsW() -{ - Trace(TRACE_PASSTHROUGH, "GetEnvironmentStringsW"); - return GetEnvironmentStringsW(); -} - -BOOL WINAPI CORKEL32_FreeEnvironmentStringsW(LPWSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "FreeEnvironmentStringsW"); - return FreeEnvironmentStringsW(param_0); -} - INT WINAPI CORKEL32_WideCharToMultiByte(UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr, INT cchWideChar, LPSTR lpMultiByteStr, INT cbMultiByte, LPCSTR lpDefaultChar, LPBOOL lpUsedDefaultChar) { INT r; @@ -368,18 +51,6 @@ INT WINAPI CORKEL32_WideCharToMultiByte(UINT CodePage, DWORD dwFlags, LPCWSTR lp return r; } -BOOL WINAPI CORKEL32_TerminateProcess(HANDLE param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "TerminateProcess"); - return TerminateProcess(param_0, param_1); -} - -HANDLE WINAPI CORKEL32_GetCurrentProcess() -{ - Trace(TRACE_PASSTHROUGH, "GetCurrentProcess"); - return GetCurrentProcess(); -} - HMODULE WINAPI CORKEL32_LoadLibraryExA(LPCSTR lpLibFileName, HANDLE hFile, DWORD dwFlags) { HMODULE h = LoadLibraryExA(lpLibFileName, hFile, dwFlags); @@ -394,36 +65,6 @@ HMODULE WINAPI CORKEL32_LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWOR return h; } -DWORD WINAPI CORKEL32_GetFullPathNameA(LPCSTR param_0, DWORD param_1, LPSTR param_2, LPSTR* param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetFullPathNameA"); - return GetFullPathNameA(param_0, param_1, param_2, param_3); -} - -DWORD WINAPI CORKEL32_GetFullPathNameW(LPCWSTR param_0, DWORD param_1, LPWSTR param_2, LPWSTR* param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetFullPathNameW"); - return GetFullPathNameW(param_0, param_1, param_2, param_3); -} - -DWORD WINAPI CORKEL32_GetModuleFileNameA(HMODULE param_0, LPSTR param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "GetModuleFileNameA"); - return GetModuleFileNameA(param_0, param_1, param_2); -} - -DWORD WINAPI CORKEL32_GetModuleFileNameW(HMODULE param_0, LPWSTR param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "GetModuleFileNameW"); - return GetModuleFileNameW(param_0, param_1, param_2); -} - -void WINAPI CORKEL32_RaiseException(DWORD param_0, DWORD param_1, DWORD param_2, CONST DWORD * param_3) -{ - Trace(TRACE_PASSTHROUGH, "RaiseException"); - RaiseException(param_0, param_1, param_2, param_3); -} - HANDLE WINAPI CORKEL32_CreateFileA(LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile) { /*LONG fnLen; @@ -456,1324 +97,62 @@ HANDLE WINAPI CORKEL32_CreateFileA(LPCSTR lpFileName, DWORD dwDesiredAccess, DWO return CreateFileA(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile); } -HANDLE WINAPI CORKEL32_CreateFileW(LPCWSTR param_0, DWORD param_1, DWORD param_2, LPSECURITY_ATTRIBUTES param_3, DWORD param_4, DWORD param_5, HANDLE param_6) -{ - Trace(TRACE_PASSTHROUGH, "CreateFileW"); - return CreateFileW(param_0, param_1, param_2, param_3, param_4, param_5, param_6); -} - -HANDLE WINAPI CORKEL32_CreateSemaphoreA(LPSECURITY_ATTRIBUTES param_0, LONG param_1, LONG param_2, LPCSTR param_3) -{ - Trace(TRACE_PASSTHROUGH, "CreateSemaphoreA"); - return CreateSemaphoreA(param_0, param_1, param_2, param_3); -} - -HANDLE WINAPI CORKEL32_CreateSemaphoreW(LPSECURITY_ATTRIBUTES param_0, LONG param_1, LONG param_2, LPCWSTR param_3) -{ - Trace(TRACE_PASSTHROUGH, "CreateSemaphoreW"); - return CreateSemaphoreW(param_0, param_1, param_2, param_3); -} - -INT WINAPI CORKEL32_GetDateFormatA(LCID param_0, DWORD param_1, const SYSTEMTIME* param_2, LPCSTR param_3, LPSTR param_4, INT param_5) -{ - Trace(TRACE_PASSTHROUGH, "GetDateFormatA"); - return GetDateFormatA(param_0, param_1, param_2, param_3, param_4, param_5); -} - -INT WINAPI CORKEL32_GetDateFormatW(LCID param_0, DWORD param_1, const SYSTEMTIME* param_2, LPCWSTR param_3, LPWSTR param_4, INT param_5) -{ - Trace(TRACE_PASSTHROUGH, "GetDateFormatW"); - return GetDateFormatW(param_0, param_1, param_2, param_3, param_4, param_5); -} - -INT WINAPI CORKEL32_GetTimeFormatA(LCID param_0, DWORD param_1, const SYSTEMTIME* param_2, LPCSTR param_3, LPSTR param_4, INT param_5) -{ - Trace(TRACE_PASSTHROUGH, "GetTimeFormatA"); - return GetTimeFormatA(param_0, param_1, param_2, param_3, param_4, param_5); -} - -INT WINAPI CORKEL32_GetTimeFormatW(LCID param_0, DWORD param_1, const SYSTEMTIME* param_2, LPCWSTR param_3, LPWSTR param_4, INT param_5) -{ - Trace(TRACE_PASSTHROUGH, "GetTimeFormatW"); - return GetTimeFormatW(param_0, param_1, param_2, param_3, param_4, param_5); -} - -INT WINAPI CORKEL32_LCMapStringA(LCID param_0, DWORD param_1, LPCSTR param_2, INT param_3, LPSTR param_4, INT param_5) -{ - Trace(TRACE_PASSTHROUGH, "LCMapStringA"); - return LCMapStringA(param_0, param_1, param_2, param_3, param_4, param_5); -} - -INT WINAPI CORKEL32_LCMapStringW(LCID param_0, DWORD param_1, LPCWSTR param_2, INT param_3, LPWSTR param_4, INT param_5) -{ - Trace(TRACE_PASSTHROUGH, "LCMapStringW"); - return LCMapStringW(param_0, param_1, param_2, param_3, param_4, param_5); -} - -HANDLE WINAPI CORKEL32_FindFirstFileA(LPCSTR param_0, LPWIN32_FIND_DATAA param_1) +DWORD WINAPI CORKEL32_GetEnvironmentVariableA(LPCSTR lpName, LPSTR lpBuffer, DWORD nSize) { - Trace(TRACE_PASSTHROUGH, "FindFirstFileA"); - return FindFirstFileA(param_0, param_1); + DWORD r = GetEnvironmentVariableA(lpName, lpBuffer, nSize); + Trace(TRACE_PASSTHROUGH, "GetEnvironmentVariableA - r = %u - %s = %s", r, lpName, lpBuffer); + return r; } -HANDLE WINAPI CORKEL32_FindFirstFileW(LPCWSTR param_0, LPWIN32_FIND_DATAW param_1) +HMODULE WINAPI CORKEL32_LoadLibraryA(LPCSTR lpLibFileName) { - Trace(TRACE_PASSTHROUGH, "FindFirstFileW"); - return FindFirstFileW(param_0, param_1); + HMODULE h = LoadLibraryA(lpLibFileName); + Trace((h != NULL) ? TRACE_PASSTHROUGH : TRACE_POTENTIAL_ERROR, "LoadLibraryA: %s - result: %p", lpLibFileName, h); + return h; } -BOOL WINAPI CORKEL32_GetVersionExW(OSVERSIONINFOW* param_0) +HMODULE WINAPI CORKEL32_LoadLibraryW(LPCWSTR lpLibFileName) { - Trace(TRACE_PASSTHROUGH, "GetVersionExW"); - return GetVersionExW(param_0); + HMODULE h = LoadLibraryW(lpLibFileName); + Trace((h != NULL) ? TRACE_PASSTHROUGH : TRACE_POTENTIAL_ERROR, "LoadLibraryW: %ls - result: %p", lpLibFileName, h); + return h; } -VOID WINAPI CORKEL32_OutputDebugStringA(LPCSTR param_0) +BOOL WINAPI CORKEL32_DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped) { - Trace(TRACE_PASSTHROUGH, "OutputDebugStringA"); - OutputDebugStringA(param_0); -} + BOOL e; -VOID WINAPI CORKEL32_OutputDebugStringW(LPCWSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "OutputDebugStringW"); - OutputDebugStringW(param_0); -} + /*char buf[512]; + sprintf(buf, "hDevice: 0x%p, dwIoControlCode: 0x%X, lpInBuffer: %p, nInBufferSize: 0x%X, lpOutBuffer: %p, nOutBufferSize: 0x%X, lpBytesReturned: %p, lpOverlapped: %p", hDevice, dwIoControlCode, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesReturned, lpOverlapped); + MessageBoxA(0, buf, 0, 0);*/ -HANDLE WINAPI CORKEL32_CreateMutexA(LPSECURITY_ATTRIBUTES param_0, BOOL param_1, LPCSTR param_2) -{ - Trace(TRACE_PASSTHROUGH, "CreateMutexA"); - return CreateMutexA(param_0, param_1, param_2); -} + if (hDevice == (HANDLE) 0xCAFEBABE) { + if (dwIoControlCode == 0x86427531) { + *(DWORD*)lpOutBuffer = 0x40; + } else { + char buf[100]; + sprintf(buf, "Hijack 2: 0x%X", dwIoControlCode); + MessageBoxA(0,buf,0,0); + } -HANDLE WINAPI CORKEL32_CreateMutexW(LPSECURITY_ATTRIBUTES param_0, BOOL param_1, LPCWSTR param_2) -{ - Trace(TRACE_PASSTHROUGH, "CreateMutexW"); - return CreateMutexW(param_0, param_1, param_2); -} + return TRUE; + } -HANDLE WINAPI CORKEL32_CreateEventA(LPSECURITY_ATTRIBUTES param_0, BOOL param_1, BOOL param_2, LPCSTR param_3) -{ - Trace(TRACE_PASSTHROUGH, "CreateEventA"); - return CreateEventA(param_0, param_1, param_2, param_3); -} + e = DeviceIoControl(hDevice, dwIoControlCode, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesReturned, lpOverlapped); + Trace(TRACE_PASSTHROUGH, "DeviceIoControl"); -HANDLE WINAPI CORKEL32_CreateEventW(LPSECURITY_ATTRIBUTES param_0, BOOL param_1, BOOL param_2, LPCWSTR param_3) -{ - Trace(TRACE_PASSTHROUGH, "CreateEventW"); - return CreateEventW(param_0, param_1, param_2, param_3); -} + /*if (!e) { + DWORD le = GetLastError(); -DWORD WINAPI CORKEL32_GetFileAttributesA(LPCSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetFileAttributesA - %s", param_0); - return GetFileAttributesA(param_0); -} + sprintf(buf, "DeviceIoControl Failed: 0x%X", le); + MessageBoxA(0, buf, 0, 0); -DWORD WINAPI CORKEL32_GetFileAttributesW(LPCWSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetFileAttributesW - %ls", param_0); - return GetFileAttributesW(param_0); -} - -DWORD WINAPI CORKEL32_GetEnvironmentVariableA(LPCSTR lpName, LPSTR lpBuffer, DWORD nSize) -{ - DWORD r = GetEnvironmentVariableA(lpName, lpBuffer, nSize); - Trace(TRACE_PASSTHROUGH, "GetEnvironmentVariableA - r = %u - %s = %s", r, lpName, lpBuffer); - return r; -} - -DWORD WINAPI CORKEL32_GetEnvironmentVariableW(LPCWSTR lpName, LPWSTR lpBuffer, DWORD nSize) -{ - Trace(TRACE_PASSTHROUGH, "GetEnvironmentVariableW"); - return GetEnvironmentVariableW(lpName, lpBuffer, nSize); -} - -HANDLE WINAPI CORKEL32_CreateFileMappingA(HANDLE param_0, LPSECURITY_ATTRIBUTES param_1, DWORD param_2, DWORD param_3, DWORD param_4, LPCSTR param_5) -{ - Trace(TRACE_PASSTHROUGH, "CreateFileMappingA"); - return CreateFileMappingA(param_0, param_1, param_2, param_3, param_4, param_5); -} - -HANDLE WINAPI CORKEL32_CreateFileMappingW(HANDLE param_0, LPSECURITY_ATTRIBUTES param_1, DWORD param_2, DWORD param_3, DWORD param_4, LPCWSTR param_5) -{ - Trace(TRACE_PASSTHROUGH, "CreateFileMappingW"); - return CreateFileMappingW(param_0, param_1, param_2, param_3, param_4, param_5); -} - -DWORD WINAPI CORKEL32_GetCurrentProcessId() -{ - Trace(TRACE_PASSTHROUGH, "GetCurrentProcessId"); - return GetCurrentProcessId(); -} - -HLOCAL WINAPI CORKEL32_LocalAlloc(UINT param_0, UINT param_1) -{ - Trace(TRACE_PASSTHROUGH, "LocalAlloc"); - return LocalAlloc(param_0, param_1); -} - -DWORD WINAPI CORKEL32_FormatMessageA(DWORD param_0, LPCVOID param_1, DWORD param_2, DWORD param_3, LPSTR param_4, DWORD param_5, va_list* param_6) -{ - Trace(TRACE_PASSTHROUGH, "FormatMessageA"); - return FormatMessageA(param_0, param_1, param_2, param_3, param_4, param_5, param_6); -} - -DWORD WINAPI CORKEL32_FormatMessageW(DWORD param_0, LPCVOID param_1, DWORD param_2, DWORD param_3, LPWSTR param_4, DWORD param_5, va_list* param_6) -{ - Trace(TRACE_PASSTHROUGH, "FormatMessageW"); - return FormatMessageW(param_0, param_1, param_2, param_3, param_4, param_5, param_6); -} - -BOOL WINAPI CORKEL32_SetEvent(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "SetEvent"); - return SetEvent(param_0); -} - -BOOL WINAPI CORKEL32_ResetEvent(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "ResetEvent"); - return ResetEvent(param_0); -} - -BOOL WINAPI CORKEL32_ReleaseSemaphore(HANDLE param_0, LONG param_1, LPLONG param_2) -{ - Trace(TRACE_PASSTHROUGH, "ReleaseSemaphore"); - return ReleaseSemaphore(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_TlsSetValue(DWORD param_0, LPVOID param_1) -{ - Trace(TRACE_PASSTHROUGH, "TlsSetValue"); - return TlsSetValue(param_0, param_1); -} - -DWORD WINAPI CORKEL32_TlsAlloc() -{ - Trace(TRACE_PASSTHROUGH, "TlsAlloc"); - return TlsAlloc(); -} - -BOOL WINAPI CORKEL32_TlsFree(DWORD param_0) -{ - Trace(TRACE_PASSTHROUGH, "TlsFree"); - return TlsFree(param_0); -} - -LPVOID WINAPI CORKEL32_HeapAlloc(HANDLE param_0, DWORD param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "HeapAlloc"); - return HeapAlloc(param_0, param_1, param_2);; -} - -HANDLE WINAPI CORKEL32_GetProcessHeap() -{ - Trace(TRACE_PASSTHROUGH, "GetProcessHeap"); - return GetProcessHeap(); -} - -BOOL WINAPI CORKEL32_HeapFree(HANDLE param_0, DWORD param_1, LPVOID param_2) -{ - Trace(TRACE_PASSTHROUGH, "HeapFree"); - return HeapFree(param_0, param_1, param_2); -} - -DWORD WINAPI CORKEL32_WaitForSingleObjectEx(HANDLE param_0, DWORD param_1, BOOL param_2) -{ - Trace(TRACE_PASSTHROUGH, "WaitForSingleObjectEx"); - return WaitForSingleObjectEx(param_0, param_1, param_2); -} - -DWORD WINAPI CORKEL32_SleepEx(DWORD param_0, BOOL param_1) -{ - Trace(TRACE_PASSTHROUGH, "SleepEx"); - return SleepEx(param_0, param_1); -} - -BOOL WINAPI CORKEL32_VirtualFree(LPVOID param_0, DWORD param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "VirtualFree"); - return VirtualFree(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_HeapValidate(HANDLE param_0, DWORD param_1, LPCVOID param_2) -{ - Trace(TRACE_PASSTHROUGH, "HeapValidate"); - return HeapValidate(param_0, param_1, param_2); -} - -HANDLE WINAPI CORKEL32_CreateThread(LPSECURITY_ATTRIBUTES param_0, DWORD param_1, LPTHREAD_START_ROUTINE param_2, LPVOID param_3, DWORD param_4, LPDWORD param_5) -{ - Trace(TRACE_PASSTHROUGH, "CreateThread"); - return CreateThread(param_0, param_1, param_2, param_3, param_4, param_5); -} - -HANDLE WINAPI CORKEL32_GetStdHandle(DWORD param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetStdHandle"); - return GetStdHandle(param_0); -} - -HMODULE WINAPI CORKEL32_LoadLibraryA(LPCSTR lpLibFileName) -{ - HMODULE h = LoadLibraryA(lpLibFileName); - Trace((h != NULL) ? TRACE_PASSTHROUGH : TRACE_POTENTIAL_ERROR, "LoadLibraryA: %s - result: %p", lpLibFileName, h); - return h; -} - -LPSTR WINAPI CORKEL32_GetCommandLineA() -{ - Trace(TRACE_PASSTHROUGH, "GetCommandLineA"); - return GetCommandLineA(); -} - -VOID WINAPI CORKEL32_Sleep(DWORD param_0) -{ - Trace(TRACE_PASSTHROUGH, "Sleep"); - Sleep(param_0); -} - -UINT WINAPI CORKEL32_SetHandleCount(UINT param_0) -{ - Trace(TRACE_PASSTHROUGH, "SetHandleCount"); - return SetHandleCount(param_0); -} - -DWORD WINAPI CORKEL32_GetFileType(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetFileType"); - return GetFileType(param_0); -} - -VOID WINAPI CORKEL32_GetStartupInfoA(LPSTARTUPINFOA param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetStartupInfoA"); - GetStartupInfoA(param_0); -} - -LONG WINAPI CORKEL32_UnhandledExceptionFilter(PEXCEPTION_POINTERS param_0) -{ - Trace(TRACE_PASSTHROUGH, "UnhandledExceptionFilter"); - return UnhandledExceptionFilter(param_0); -} - -DWORD WINAPI CORKEL32_GetTickCount() -{ - Trace(TRACE_PASSTHROUGH, "GetTickCount"); - return GetTickCount(); -} - -LPTOP_LEVEL_EXCEPTION_FILTER WINAPI CORKEL32_SetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER param_0) -{ - Trace(TRACE_PASSTHROUGH, "SetUnhandledExceptionFilter"); - return SetUnhandledExceptionFilter(param_0); -} - -UINT WINAPI CORKEL32_GetOEMCP() -{ - Trace(TRACE_PASSTHROUGH, "GetOEMCP"); - return GetOEMCP(); -} - -DWORD WINAPI CORKEL32_HeapSize(HANDLE param_0, DWORD param_1, LPCVOID param_2) -{ - Trace(TRACE_PASSTHROUGH, "HeapSize"); - return HeapSize(param_0, param_1, param_2); -} - -LPVOID WINAPI CORKEL32_HeapReAlloc(HANDLE param_0, DWORD param_1, LPVOID param_2, DWORD param_3) -{ - Trace(TRACE_PASSTHROUGH, "HeapReAlloc"); - return HeapReAlloc(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_GetStringTypeA(LCID param_0, DWORD param_1, LPCSTR param_2, INT param_3, LPWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "GetStringTypeA"); - return GetStringTypeA(param_0, param_1, param_2, param_3, param_4); -} - -INT WINAPI CORKEL32_GetLocaleInfoA(LCID param_0, LCTYPE param_1, LPSTR param_2, INT param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetLocaleInfoA"); - return GetLocaleInfoA(param_0, param_1, param_2, param_3); -} - -DWORD WINAPI CORKEL32_SetFilePointer(HANDLE param_0, LONG param_1, LPLONG param_2, DWORD param_3) -{ - Trace(TRACE_PASSTHROUGH, "SetFilePointer"); - return SetFilePointer(param_0, param_1, param_2, param_3); -} - -UINT WINAPI CORKEL32_GetConsoleCP() -{ - Trace(TRACE_PASSTHROUGH, "GetConsoleCP"); - return GetConsoleCP(); -} - -BOOL WINAPI CORKEL32_GetConsoleMode( HANDLE param_0, DWORD * param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetConsoleMode"); - return GetConsoleMode(param_0, param_1); -} - -BOOL WINAPI CORKEL32_SetStdHandle(DWORD param_0, HANDLE param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetStdHandle"); - return SetStdHandle(param_0, param_1); -} - -BOOL WINAPI CORKEL32_WriteConsoleA(HANDLE param_0, const void * param_1, DWORD param_2, DWORD * param_3, void * param_4) -{ - Trace(TRACE_PASSTHROUGH, "WriteConsoleA"); - return WriteConsoleA(param_0, param_1, param_2, param_3, param_4); -} - -UINT WINAPI CORKEL32_GetConsoleOutputCP() -{ - Trace(TRACE_PASSTHROUGH, "GetConsoleOutputCP"); - return GetConsoleOutputCP(); -} - -BOOL WINAPI CORKEL32_WriteConsoleW(HANDLE param_0, const void * param_1, DWORD param_2, DWORD * param_3, void * param_4) -{ - Trace(TRACE_PASSTHROUGH, "WriteConsoleW"); - return WriteConsoleW(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_FlushFileBuffers(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "FlushFileBuffers"); - return FlushFileBuffers(param_0); -} - -// RtlUnwind is in KERNEL32 but has no header, so we must define it here -extern NTAPI RtlUnwind(void* param_0, void* param_1, struct _EXCEPTION_RECORD* param_2, void* param_3); -void NTAPI CORKEL32_RtlUnwind(void* param_0, void* param_1, struct _EXCEPTION_RECORD* param_2, void* param_3) -{ - Trace(TRACE_PASSTHROUGH, "RtlUnwind"); - RtlUnwind(param_0, param_1, param_2, param_3); -} - -UINT WINAPI CORKEL32_GetSystemDirectoryW(LPWSTR param_0, UINT param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetSystemDirectoryW"); - return GetSystemDirectoryW(param_0, param_1); -} - -void WINAPI CORKEL32_DebugBreak() -{ - Trace(TRACE_PASSTHROUGH, "DebugBreak"); - DebugBreak(); -} - -VOID WINAPI CORKEL32_ExitThread(DWORD param_0) -{ - Trace(TRACE_PASSTHROUGH, "ExitThread"); - ExitThread(param_0); -} - -DWORD WINAPI CORKEL32_ResumeThread(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "ResumeThread"); - return ResumeThread(param_0); -} - -HANDLE WINAPI CORKEL32_GetCurrentThread() -{ - Trace(TRACE_PASSTHROUGH, "GetCurrentThread"); - return GetCurrentThread(); -} - -BOOL WINAPI CORKEL32_FindNextFileA(HANDLE param_0, LPWIN32_FIND_DATAA param_1) -{ - Trace(TRACE_PASSTHROUGH, "FindNextFileA"); - return FindNextFileA(param_0, param_1); -} - -BOOL WINAPI CORKEL32_FindNextFileW(HANDLE param_0, LPWIN32_FIND_DATAW param_1) -{ - Trace(TRACE_PASSTHROUGH, "FindNextFileW"); - return FindNextFileW(param_0, param_1); -} - -BOOL WINAPI CORKEL32_FileTimeToSystemTime(const FILETIME* param_0, LPSYSTEMTIME param_1) -{ - Trace(TRACE_PASSTHROUGH, "FileTimeToSystemTime"); - return FileTimeToSystemTime(param_0, param_1); -} - -BOOL WINAPI CORKEL32_FileTimeToLocalFileTime(const FILETIME* param_0, LPFILETIME param_1) -{ - Trace(TRACE_PASSTHROUGH, "FileTimeToLocalFileTime"); - return FileTimeToLocalFileTime(param_0, param_1); -} - -BOOL WINAPI CORKEL32_IsValidCodePage(UINT param_0) -{ - Trace(TRACE_PASSTHROUGH, "IsValidCodePage"); - return IsValidCodePage(param_0); -} - -BOOL WINAPI CORKEL32_SetConsoleCtrlHandler( PHANDLER_ROUTINE param_0, BOOL param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetConsoleCtrlHandler"); - return SetConsoleCtrlHandler(param_0, param_1); -} - -LPWSTR WINAPI CORKEL32_GetCommandLineW() -{ - Trace(TRACE_PASSTHROUGH, "GetCommandLineW"); - return GetCommandLineW(); -} - -BOOL WINAPI CORKEL32_SetLocalTime(const SYSTEMTIME* param_0) -{ - Trace(TRACE_PASSTHROUGH, "SetLocalTime"); - return SetLocalTime(param_0); -} - -HMODULE WINAPI CORKEL32_LoadLibraryW(LPCWSTR lpLibFileName) -{ - HMODULE h = LoadLibraryW(lpLibFileName); - Trace((h != NULL) ? TRACE_PASSTHROUGH : TRACE_POTENTIAL_ERROR, "LoadLibraryW: %ls - result: %p", lpLibFileName, h); - return h; -} - -INT WINAPI CORKEL32_GetLocaleInfoW(LCID param_0, LCTYPE param_1, LPWSTR param_2, INT param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetLocaleInfoW"); - return GetLocaleInfoW(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_SetEnvironmentVariableA(LPCSTR param_0, LPCSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetEnvironmentVariableA"); - return SetEnvironmentVariableA(param_0, param_1); -} - -BOOL WINAPI CORKEL32_SetEnvironmentVariableW(LPCWSTR param_0, LPCWSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetEnvironmentVariableW"); - return SetEnvironmentVariableW(param_0, param_1); -} - -LCID WINAPI CORKEL32_GetUserDefaultLCID() -{ - Trace(TRACE_PASSTHROUGH, "GetUserDefaultLCID"); - return GetUserDefaultLCID(); -} - -BOOL WINAPI CORKEL32_EnumSystemLocalesA(LOCALE_ENUMPROCA param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "EnumSystemLocalesA"); - return EnumSystemLocalesA(param_0, param_1); -} - -BOOL WINAPI CORKEL32_IsValidLocale(LCID param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "IsValidLocale"); - return IsValidLocale(param_0, param_1); -} - -DWORD WINAPI CORKEL32_GetTimeZoneInformation(LPTIME_ZONE_INFORMATION param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetTimeZoneInformation"); - return GetTimeZoneInformation(param_0); -} - -INT WINAPI CORKEL32_CompareStringA(LCID param_0, DWORD param_1, LPCSTR param_2, INT param_3, LPCSTR param_4, INT param_5) -{ - Trace(TRACE_PASSTHROUGH, "CompareStringA"); - return CompareStringA(param_0, param_1, param_2, param_3, param_4, param_5); -} - -INT WINAPI CORKEL32_CompareStringW(LCID param_0, DWORD param_1, LPCWSTR param_2, INT param_3, LPCWSTR param_4, INT param_5) -{ - Trace(TRACE_PASSTHROUGH, "CompareStringW"); - return CompareStringW(param_0, param_1, param_2, param_3, param_4, param_5); -} - -BOOL WINAPI CORKEL32_Beep(DWORD param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "Beep"); - return Beep(param_0, param_1); -} - -BOOL WINAPI CORKEL32_GetDiskFreeSpaceA(LPCSTR param_0, LPDWORD param_1, LPDWORD param_2, LPDWORD param_3, LPDWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "GetDiskFreeSpaceA"); - return GetDiskFreeSpaceA(param_0, param_1, param_2, param_3, param_4); -} - -DWORD WINAPI CORKEL32_GetLogicalDrives() -{ - Trace(TRACE_PASSTHROUGH, "GetLogicalDrives"); - return GetLogicalDrives(); -} - -UINT WINAPI CORKEL32_GetCurrentDirectoryA(UINT param_0, LPSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetCurrentDirectoryA"); - return GetCurrentDirectoryA(param_0, param_1); -} - -BOOL WINAPI CORKEL32_SetCurrentDirectoryA(LPCSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "SetCurrentDirectoryA"); - return SetCurrentDirectoryA(param_0); -} - -BOOL WINAPI CORKEL32_SetFileAttributesA(LPCSTR param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetFileAttributesA"); - return SetFileAttributesA(param_0, param_1); -} - -UINT WINAPI CORKEL32_GetDriveTypeA(LPCSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetDriveTypeA"); - return GetDriveTypeA(param_0); -} - -BOOL WINAPI CORKEL32_CreateDirectoryA(LPCSTR param_0, LPSECURITY_ATTRIBUTES param_1) -{ - Trace(TRACE_PASSTHROUGH, "CreateDirectoryA"); - return CreateDirectoryA(param_0, param_1); -} - -BOOL WINAPI CORKEL32_RemoveDirectoryA(LPCSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "RemoveDirectoryA"); - return RemoveDirectoryA(param_0); -} - -BOOL WINAPI CORKEL32_DeleteFileA(LPCSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "DeleteFileA"); - return DeleteFileA(param_0); -} - -UINT WINAPI CORKEL32_GetCurrentDirectoryW(UINT param_0, LPWSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetCurrentDirectoryW"); - return GetCurrentDirectoryW(param_0, param_1); -} - -BOOL WINAPI CORKEL32_SetCurrentDirectoryW(LPCWSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "SetCurrentDirectoryW"); - return SetCurrentDirectoryW(param_0); -} - -BOOL WINAPI CORKEL32_SetFileAttributesW(LPCWSTR param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetFileAttributesW"); - return SetFileAttributesW(param_0, param_1); -} - -BOOL WINAPI CORKEL32_CreateDirectoryW(LPCWSTR param_0, LPSECURITY_ATTRIBUTES param_1) -{ - Trace(TRACE_PASSTHROUGH, "CreateDirectoryW"); - return CreateDirectoryW(param_0, param_1); -} - -BOOL WINAPI CORKEL32_DeleteFileW(LPCWSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "DeleteFileW"); - return DeleteFileW(param_0); -} - -BOOL WINAPI CORKEL32_MoveFileW(LPCWSTR param_0, LPCWSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "MoveFileW"); - return MoveFileW(param_0, param_1); -} - -BOOL WINAPI CORKEL32_RemoveDirectoryW(LPCWSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "RemoveDirectoryW"); - return RemoveDirectoryW(param_0); -} - -UINT WINAPI CORKEL32_GetDriveTypeW(LPCWSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetDriveTypeW"); - return GetDriveTypeW(param_0); -} - -BOOL WINAPI CORKEL32_MoveFileA(LPCSTR param_0, LPCSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "MoveFileA"); - return MoveFileA(param_0, param_1); -} - -BOOL WINAPI CORKEL32_GetExitCodeProcess(HANDLE param_0, LPDWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetExitCodeProcess"); - return GetExitCodeProcess(param_0, param_1); -} - -BOOL WINAPI CORKEL32_CreateProcessA(LPCSTR param_0, LPSTR param_1, LPSECURITY_ATTRIBUTES param_2, LPSECURITY_ATTRIBUTES param_3, BOOL param_4, DWORD param_5, LPVOID param_6, LPCSTR param_7, LPSTARTUPINFOA param_8, LPPROCESS_INFORMATION param_9) -{ - Trace(TRACE_PASSTHROUGH, "CreateProcessA"); - return CreateProcessA(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8, param_9); -} - -BOOL WINAPI CORKEL32_CreateProcessW(LPCWSTR param_0, LPWSTR param_1, LPSECURITY_ATTRIBUTES param_2, LPSECURITY_ATTRIBUTES param_3, BOOL param_4, DWORD param_5, LPVOID param_6, LPCWSTR param_7, LPSTARTUPINFOW param_8, LPPROCESS_INFORMATION param_9) -{ - Trace(TRACE_PASSTHROUGH, "CreateProcessW"); - return CreateProcessW(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8, param_9); -} - -UINT WINAPI CORKEL32_HeapCompact(HANDLE param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "HeapCompact"); - return HeapCompact(param_0, param_1); -} - -BOOL WINAPI CORKEL32_HeapWalk(HANDLE param_0, LPPROCESS_HEAP_ENTRY param_1) -{ - Trace(TRACE_PASSTHROUGH, "HeapWalk"); - return HeapWalk(param_0, param_1); -} - -BOOL WINAPI CORKEL32_ReadConsoleA(HANDLE param_0, void * param_1, DWORD param_2, DWORD * param_3, void * param_4) -{ - Trace(TRACE_PASSTHROUGH, "ReadConsoleA"); - return ReadConsoleA(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_ReadConsoleW(HANDLE param_0, void * param_1, DWORD param_2, DWORD * param_3, void * param_4) -{ - Trace(TRACE_PASSTHROUGH, "ReadConsoleW"); - return ReadConsoleW(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_SetConsoleMode( HANDLE param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetConsoleMode"); - return SetConsoleMode(param_0, param_1); -} - -BOOL WINAPI CORKEL32_SetEndOfFile(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "SetEndOfFile"); - return SetEndOfFile(param_0); -} - -BOOL WINAPI CORKEL32_DuplicateHandle(HANDLE param_0, HANDLE param_1, HANDLE param_2, HANDLE* param_3, DWORD param_4, BOOL param_5, DWORD param_6) -{ - Trace(TRACE_PASSTHROUGH, "DuplicateHandle"); - return DuplicateHandle(param_0, param_1, param_2, param_3, param_4, param_5, param_6); -} - -BOOL WINAPI CORKEL32_GetFileInformationByHandle(HANDLE param_0, BY_HANDLE_FILE_INFORMATION* param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetFileInformationByHandle"); - return GetFileInformationByHandle(param_0, param_1); -} - -BOOL WINAPI CORKEL32_PeekNamedPipe(HANDLE param_0, PVOID param_1, DWORD param_2, PDWORD param_3, PDWORD param_4, PDWORD param_5) -{ - Trace(TRACE_PASSTHROUGH, "PeekNamedPipe"); - return PeekNamedPipe(param_0, param_1, param_2, param_3, param_4, param_5); -} - -BOOL WINAPI CORKEL32_ReadConsoleInputA(HANDLE param_0, PINPUT_RECORD param_1, DWORD param_2, DWORD * param_3) -{ - Trace(TRACE_PASSTHROUGH, "ReadConsoleInputA"); - return ReadConsoleInputA(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_PeekConsoleInputA(HANDLE param_0, PINPUT_RECORD param_1, DWORD param_2, DWORD * param_3) -{ - Trace(TRACE_PASSTHROUGH, "PeekConsoleInputA"); - return PeekConsoleInputA(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_GetNumberOfConsoleInputEvents( HANDLE param_0, DWORD * param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetNumberOfConsoleInputEvents"); - return GetNumberOfConsoleInputEvents(param_0, param_1); -} - -BOOL WINAPI CORKEL32_ReadConsoleInputW(HANDLE param_0, PINPUT_RECORD param_1, DWORD param_2, DWORD * param_3) -{ - Trace(TRACE_PASSTHROUGH, "ReadConsoleInputW"); - return ReadConsoleInputW(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_LockFile(HANDLE param_0, DWORD param_1, DWORD param_2, DWORD param_3, DWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "LockFile"); - return LockFile(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_UnlockFile(HANDLE param_0, DWORD param_1, DWORD param_2, DWORD param_3, DWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "UnlockFile"); - return UnlockFile(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_CreatePipe(PHANDLE param_0, PHANDLE param_1, LPSECURITY_ATTRIBUTES param_2, DWORD param_3) -{ - Trace(TRACE_PASSTHROUGH, "CreatePipe"); - return CreatePipe(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_SetFileTime(HANDLE param_0, const FILETIME* param_1, const FILETIME* param_2, const FILETIME* param_3) -{ - Trace(TRACE_PASSTHROUGH, "SetFileTime"); - return SetFileTime(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_LocalFileTimeToFileTime(const FILETIME* param_0, LPFILETIME param_1) -{ - Trace(TRACE_PASSTHROUGH, "LocalFileTimeToFileTime"); - return LocalFileTimeToFileTime(param_0, param_1); -} - -BOOL WINAPI CORKEL32_SystemTimeToFileTime(const SYSTEMTIME* param_0, LPFILETIME param_1) -{ - Trace(TRACE_PASSTHROUGH, "SystemTimeToFileTime"); - return SystemTimeToFileTime(param_0, param_1); -} - -BOOL WINAPI CORKEL32_AllocConsole() -{ - Trace(TRACE_PASSTHROUGH, "AllocConsole"); - return AllocConsole(); -} - -BOOL WINAPI CORKEL32_SetConsoleTitleW(LPCWSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "SetConsoleTitleW"); - return SetConsoleTitleW(param_0); -} - -BOOL WINAPI CORKEL32_FreeConsole() -{ - Trace(TRACE_PASSTHROUGH, "FreeConsole"); - return FreeConsole(); -} - -BOOL WINAPI CORKEL32_EnumSystemLocalesW(LOCALE_ENUMPROCW param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "EnumSystemLocalesW"); - return EnumSystemLocalesW(param_0, param_1); -} - -BOOL WINAPI CORKEL32_EnumTimeFormatsW(TIMEFMT_ENUMPROCW param_0, LCID param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "EnumTimeFormatsW"); - return EnumTimeFormatsW(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_EnumCalendarInfoW(CALINFO_ENUMPROCW param_0, LCID param_1, CALID param_2, CALTYPE param_3) -{ - Trace(TRACE_PASSTHROUGH, "EnumCalendarInfoW"); - return EnumCalendarInfoW(param_0, param_1, param_2, param_3); -} - -DWORD WINAPI CORKEL32_WaitForMultipleObjects(DWORD param_0, const HANDLE* param_1, BOOL param_2, DWORD param_3) -{ - Trace(TRACE_PASSTHROUGH, "WaitForMultipleObjects"); - return WaitForMultipleObjects(param_0, param_1, param_2, param_3); -} - -LANGID WINAPI CORKEL32_GetUserDefaultLangID() -{ - Trace(TRACE_PASSTHROUGH, "GetUserDefaultLangID"); - return GetUserDefaultLangID(); -} - -BOOL WINAPI CORKEL32_FlushInstructionCache(HANDLE param_0, LPCVOID param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "FlushInstructionCache"); - return FlushInstructionCache(param_0, param_1, param_2); -} - -HANDLE WINAPI CORKEL32_OpenProcess(DWORD param_0, BOOL param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "OpenProcess"); - return OpenProcess(param_0, param_1, param_2); -} - -LCID WINAPI CORKEL32_GetSystemDefaultLCID() -{ - Trace(TRACE_PASSTHROUGH, "GetSystemDefaultLCID"); - return GetSystemDefaultLCID(); -} - -BOOL WINAPI CORKEL32_GetStringTypeExW(LCID param_0, DWORD param_1, LPCWSTR param_2, INT param_3, LPWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "GetStringTypeExW"); - return GetStringTypeExW(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_GetStringTypeExA(LCID param_0, DWORD param_1, LPCSTR param_2, INT param_3, LPWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "GetStringTypeExA"); - return GetStringTypeExA(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_IsBadReadPtr(LPCVOID param_0, UINT param_1) -{ - Trace(TRACE_PASSTHROUGH, "IsBadReadPtr"); - return IsBadReadPtr(param_0, param_1); -} - -BOOL WINAPI CORKEL32_IsBadStringPtrA(LPCSTR param_0, UINT param_1) -{ - Trace(TRACE_PASSTHROUGH, "IsBadStringPtrA"); - return IsBadStringPtrA(param_0, param_1); -} - -LCID WINAPI CORKEL32_GetThreadLocale() -{ - Trace(TRACE_PASSTHROUGH, "GetThreadLocale"); - return GetThreadLocale(); -} - -BOOL WINAPI CORKEL32_QueryPerformanceFrequency(LARGE_INTEGER* param_0) -{ - Trace(TRACE_PASSTHROUGH, "QueryPerformanceFrequency"); - return QueryPerformanceFrequency(param_0); -} - -BOOL WINAPI CORKEL32_SetThreadPriority(HANDLE param_0, INT param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetThreadPriority"); - return SetThreadPriority(param_0, param_1); -} - -BOOL WINAPI CORKEL32_GetProcessAffinityMask(HANDLE param_0, LPDWORD param_1, LPDWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "GetProcessAffinityMask"); - return GetProcessAffinityMask(param_0, param_1, param_2); -} - -DWORD WINAPI CORKEL32_SetThreadAffinityMask(HANDLE param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetThreadAffinityMask"); - return SetThreadAffinityMask(param_0, param_1); -} - -BOOL WINAPI CORKEL32_SetThreadLocale(LCID param_0) -{ - Trace(TRACE_PASSTHROUGH, "SetThreadLocale"); - return SetThreadLocale(param_0); -} - -LPVOID WINAPI CORKEL32_MapViewOfFileEx(HANDLE param_0, DWORD param_1, DWORD param_2, DWORD param_3, DWORD param_4, LPVOID param_5) -{ - Trace(TRACE_PASSTHROUGH, "MapViewOfFileEx"); - return MapViewOfFileEx(param_0, param_1, param_2, param_3, param_4, param_5); -} - -VOID WINAPI CORKEL32_FreeLibraryAndExitThread(HINSTANCE param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "FreeLibraryAndExitThread"); - FreeLibraryAndExitThread(param_0, param_1); -} - -BOOL WINAPI CORKEL32_DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped) -{ - BOOL e; - - /*char buf[512]; - sprintf(buf, "hDevice: 0x%p, dwIoControlCode: 0x%X, lpInBuffer: %p, nInBufferSize: 0x%X, lpOutBuffer: %p, nOutBufferSize: 0x%X, lpBytesReturned: %p, lpOverlapped: %p", hDevice, dwIoControlCode, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesReturned, lpOverlapped); - MessageBoxA(0, buf, 0, 0);*/ - - if (hDevice == (HANDLE) 0xCAFEBABE) { - if (dwIoControlCode == 0x86427531) { - *(DWORD*)lpOutBuffer = 0x40; - } else { - char buf[100]; - sprintf(buf, "Hijack 2: 0x%X", dwIoControlCode); - MessageBoxA(0,buf,0,0); - } - - return TRUE; - } - - e = DeviceIoControl(hDevice, dwIoControlCode, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesReturned, lpOverlapped); - Trace(TRACE_PASSTHROUGH, "DeviceIoControl"); - - /*if (!e) { - DWORD le = GetLastError(); - - sprintf(buf, "DeviceIoControl Failed: 0x%X", le); - MessageBoxA(0, buf, 0, 0); - - SetLastError(le); - }*/ + SetLastError(le); + }*/ return e; } -BOOL WINAPI CORKEL32_GetThreadContext(HANDLE param_0, CONTEXT * param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetThreadContext"); - return GetThreadContext(param_0, param_1); -} - -BOOL WINAPI CORKEL32_SetThreadContext(HANDLE param_0, const CONTEXT * param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetThreadContext"); - return SetThreadContext(param_0, param_1); -} - -DWORD WINAPI CORKEL32_SuspendThread(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "SuspendThread"); - return SuspendThread(param_0); -} - -INT WINAPI CORKEL32_GetThreadPriority(HANDLE param_0) -{ - Trace(TRACE_PASSTHROUGH, "GetThreadPriority"); - return GetThreadPriority(param_0); -} - -DWORD WINAPI CORKEL32_QueueUserAPC(PAPCFUNC param_0, HANDLE param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "QueueUserAPC"); - return QueueUserAPC(param_0, param_1, param_2); -} - -DWORD WINAPI CORKEL32_WaitForMultipleObjectsEx(DWORD param_0, const HANDLE* param_1, BOOL param_2, DWORD param_3, BOOL param_4) -{ - Trace(TRACE_PASSTHROUGH, "WaitForMultipleObjectsEx"); - return WaitForMultipleObjectsEx(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_FlushViewOfFile(LPCVOID param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "FlushViewOfFile"); - return FlushViewOfFile(param_0, param_1); -} - -BOOL WINAPI CORKEL32_GetQueuedCompletionStatus(HANDLE param_0, LPDWORD param_1, LPDWORD param_2, LPOVERLAPPED* param_3, DWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "GetQueuedCompletionStatus"); - return GetQueuedCompletionStatus(param_0, param_1, param_2, param_3, param_4); -} - -INT WINAPI CORKEL32_CompareFileTime(const FILETIME* param_0, const FILETIME* param_1) -{ - Trace(TRACE_PASSTHROUGH, "CompareFileTime"); - return CompareFileTime(param_0, param_1); -} - -BOOL WINAPI CORKEL32_GetFileTime(HANDLE param_0, LPFILETIME param_1, LPFILETIME param_2, LPFILETIME param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetFileTime"); - return GetFileTime(param_0, param_1, param_2, param_3); -} - -DWORD WINAPI CORKEL32_GetVersion() -{ - Trace(TRACE_PASSTHROUGH, "GetVersion"); - return GetVersion(); -} - -UINT WINAPI CORKEL32_GetSystemDirectoryA(LPSTR param_0, UINT param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetSystemDirectoryA"); - return GetSystemDirectoryA(param_0, param_1); -} - -HRSRC WINAPI CORKEL32_FindResourceA(HMODULE param_0, LPCSTR param_1, LPCSTR param_2) -{ - Trace(TRACE_PASSTHROUGH, "FindResourceA"); - return FindResourceA(param_0, param_1, param_2); -} - -HRSRC WINAPI CORKEL32_FindResourceW(HMODULE param_0, LPCWSTR param_1, LPCWSTR param_2) -{ - Trace(TRACE_PASSTHROUGH, "FindResourceW"); - return FindResourceW(param_0, param_1, param_2); -} - -DWORD WINAPI CORKEL32_GetShortPathNameA(LPCSTR param_0, LPSTR param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "GetShortPathNameA"); - return GetShortPathNameA(param_0, param_1, param_2); -} - -DWORD WINAPI CORKEL32_GetShortPathNameW(LPCWSTR param_0, LPWSTR param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "GetShortPathNameW"); - return GetShortPathNameW(param_0, param_1, param_2); -} - -DWORD WINAPI CORKEL32_SearchPathA(LPCSTR param_0, LPCSTR param_1, LPCSTR param_2, DWORD param_3, LPSTR param_4, LPSTR* param_5) -{ - Trace(TRACE_PASSTHROUGH, "SearchPathA"); - return SearchPathA(param_0, param_1, param_2, param_3, param_4, param_5); -} - -DWORD WINAPI CORKEL32_SearchPathW(LPCWSTR param_0, LPCWSTR param_1, LPCWSTR param_2, DWORD param_3, LPWSTR param_4, LPWSTR* param_5) -{ - Trace(TRACE_PASSTHROUGH, "SearchPathW"); - return SearchPathW(param_0, param_1, param_2, param_3, param_4, param_5); -} - -UINT WINAPI CORKEL32_GetPrivateProfileIntA(LPCSTR param_0, LPCSTR param_1, INT param_2, LPCSTR param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetPrivateProfileIntA"); - return GetPrivateProfileIntA(param_0, param_1, param_2, param_3); -} - -UINT WINAPI CORKEL32_GetPrivateProfileIntW(LPCWSTR param_0, LPCWSTR param_1, INT param_2, LPCWSTR param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetPrivateProfileIntW"); - return GetPrivateProfileIntW(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_WritePrivateProfileStringA(LPCSTR param_0, LPCSTR param_1, LPCSTR param_2, LPCSTR param_3) -{ - Trace(TRACE_PASSTHROUGH, "WritePrivateProfileStringA"); - return WritePrivateProfileStringA(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_WritePrivateProfileStringW(LPCWSTR param_0, LPCWSTR param_1, LPCWSTR param_2, LPCWSTR param_3) -{ - Trace(TRACE_PASSTHROUGH, "WritePrivateProfileStringW"); - return WritePrivateProfileStringW(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_CopyFileA(LPCSTR param_0, LPCSTR param_1, BOOL param_2) -{ - Trace(TRACE_PASSTHROUGH, "CopyFileA"); - return CopyFileA(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_CopyFileW(LPCWSTR param_0, LPCWSTR param_1, BOOL param_2) -{ - Trace(TRACE_PASSTHROUGH, "CopyFileW"); - return CopyFileW(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_MoveFileExW(LPCWSTR param_0, LPCWSTR param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "MoveFileExW"); - return MoveFileExW(param_0, param_1, param_2); -} - -BOOL WINAPI CORKEL32_GetVolumeInformationA(LPCSTR param_0, LPSTR param_1, DWORD param_2, LPDWORD param_3, LPDWORD param_4, LPDWORD param_5, LPSTR param_6, DWORD param_7) -{ - Trace(TRACE_PASSTHROUGH, "GetVolumeInformationA"); - return GetVolumeInformationA(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7); -} - -BOOL WINAPI CORKEL32_GetVolumeInformationW(LPCWSTR param_0, LPWSTR param_1, DWORD param_2, LPDWORD param_3, LPDWORD param_4, LPDWORD param_5, LPWSTR param_6, DWORD param_7) -{ - Trace(TRACE_PASSTHROUGH, "GetVolumeInformationW"); - return GetVolumeInformationW(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7); -} - -HANDLE WINAPI CORKEL32_OpenEventA(DWORD param_0, BOOL param_1, LPCSTR param_2) -{ - Trace(TRACE_PASSTHROUGH, "OpenEventA"); - return OpenEventA(param_0, param_1, param_2); -} - -HANDLE WINAPI CORKEL32_OpenEventW(DWORD param_0, BOOL param_1, LPCWSTR param_2) -{ - Trace(TRACE_PASSTHROUGH, "OpenEventW"); - return OpenEventW(param_0, param_1, param_2); -} - -HANDLE WINAPI CORKEL32_OpenMutexA(DWORD param_0, BOOL param_1, LPCSTR param_2) -{ - Trace(TRACE_PASSTHROUGH, "OpenMutexA"); - return OpenMutexA(param_0, param_1, param_2); -} - -HANDLE WINAPI CORKEL32_OpenMutexW(DWORD param_0, BOOL param_1, LPCWSTR param_2) -{ - Trace(TRACE_PASSTHROUGH, "OpenMutexW"); - return OpenMutexW(param_0, param_1, param_2); -} - -DWORD WINAPI CORKEL32_GetTempPathA(DWORD param_0, LPSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetTempPathA"); - return GetTempPathA(param_0, param_1); -} - -DWORD WINAPI CORKEL32_GetTempPathW(DWORD param_0, LPWSTR param_1) -{ - Trace(TRACE_PASSTHROUGH, "GetTempPathW"); - return GetTempPathW(param_0, param_1); -} - -UINT WINAPI CORKEL32_GetTempFileNameA(LPCSTR param_0, LPCSTR param_1, UINT param_2, LPSTR param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetTempFileNameA"); - return GetTempFileNameA(param_0, param_1, param_2, param_3); -} - -UINT WINAPI CORKEL32_GetTempFileNameW(LPCWSTR param_0, LPCWSTR param_1, UINT param_2, LPWSTR param_3) -{ - Trace(TRACE_PASSTHROUGH, "GetTempFileNameW"); - return GetTempFileNameW(param_0, param_1, param_2, param_3); -} - -HANDLE WINAPI CORKEL32_OpenFileMappingA(DWORD param_0, BOOL param_1, LPCSTR param_2) -{ - Trace(TRACE_PASSTHROUGH, "OpenFileMappingA"); - return OpenFileMappingA(param_0, param_1, param_2); -} - -HANDLE WINAPI CORKEL32_OpenFileMappingW(DWORD param_0, BOOL param_1, LPCWSTR param_2) -{ - Trace(TRACE_PASSTHROUGH, "OpenFileMappingW"); - return OpenFileMappingW(param_0, param_1, param_2); -} - -DWORD WINAPI CORKEL32_SizeofResource(HMODULE param_0, HRSRC param_1) -{ - Trace(TRACE_PASSTHROUGH, "SizeofResource"); - return SizeofResource(param_0, param_1); -} - -LPVOID WINAPI CORKEL32_LockResource(HGLOBAL param_0) -{ - Trace(TRACE_PASSTHROUGH, "LockResource"); - return LockResource(param_0); -} - -HGLOBAL WINAPI CORKEL32_LoadResource(HMODULE param_0, HRSRC param_1) -{ - Trace(TRACE_PASSTHROUGH, "LoadResource"); - return LoadResource(param_0, param_1); -} - -DWORD WINAPI CORKEL32_VirtualQueryEx(HANDLE param_0, LPCVOID param_1, PMEMORY_BASIC_INFORMATION param_2, DWORD param_3) -{ - Trace(TRACE_PASSTHROUGH, "VirtualQueryEx"); - return VirtualQueryEx(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORKEL32_FreeResource(HGLOBAL param_0) -{ - Trace(TRACE_PASSTHROUGH, "FreeResource"); - return FreeResource(param_0); -} - -BOOL WINAPI CORKEL32_DosDateTimeToFileTime(WORD param_0, WORD param_1, LPFILETIME param_2) -{ - Trace(TRACE_PASSTHROUGH, "DosDateTimeToFileTime"); - return DosDateTimeToFileTime(param_0, param_1, param_2); -} - -INT WINAPI CORKEL32_lstrlenA(LPCSTR param_0) -{ - Trace(TRACE_PASSTHROUGH, "lstrlenA"); - return lstrlenA(param_0); -} - -BOOL WINAPI CORKEL32_AreFileApisANSI() -{ - Trace(TRACE_PASSTHROUGH, "AreFileApisANSI"); - return AreFileApisANSI(); -} - -BOOL WINAPI CORKEL32_GetProcessTimes(HANDLE param_0, LPFILETIME param_1, LPFILETIME param_2, LPFILETIME param_3, LPFILETIME param_4) -{ - Trace(TRACE_PASSTHROUGH, "GetProcessTimes"); - return GetProcessTimes(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORKEL32_SetPriorityClass(HANDLE param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "SetPriorityClass"); - return SetPriorityClass(param_0, param_1); -} - -int WINAPI CORKEL32_MulDiv(int nNumber, int nNumerator, int nDenominator) -{ - Trace(TRACE_PASSTHROUGH, "MulDiv"); - return MulDiv(nNumber, nNumerator, nDenominator); -} - -HGLOBAL WINAPI CORKEL32_GlobalHandle(LPCVOID pMem) -{ - Trace(TRACE_PASSTHROUGH, "GlobalHandle"); - return GlobalHandle(pMem); -} - -BOOL WINAPI CORKEL32_TerminateThread(HANDLE hThread, DWORD dwExitCode) -{ - Trace(TRACE_PASSTHROUGH, "TerminateThread"); - return TerminateThread(hThread, dwExitCode); -} - -HGLOBAL WINAPI CORKEL32_GlobalAlloc(UINT param_0, DWORD param_1) -{ - Trace(TRACE_PASSTHROUGH, "GlobalAlloc"); - return GlobalAlloc(param_0, param_1); -} - -BOOL WINAPI CORKEL32_GlobalUnlock(HGLOBAL param_0) -{ - Trace(TRACE_PASSTHROUGH, "GlobalUnlock"); - return GlobalUnlock(param_0); -} - -LPVOID WINAPI CORKEL32_GlobalLock(HGLOBAL param_0) -{ - Trace(TRACE_PASSTHROUGH, "GlobalLock"); - return GlobalLock(param_0); -} - -HGLOBAL WINAPI CORKEL32_GlobalFree(HGLOBAL param_0) -{ - Trace(TRACE_PASSTHROUGH, "GlobalFree"); - return GlobalFree(param_0); -} - -HGLOBAL WINAPI CORKEL32_GlobalReAlloc(HGLOBAL param_0, DWORD param_1, UINT param_2) -{ - Trace(TRACE_PASSTHROUGH, "GlobalReAlloc"); - return GlobalReAlloc(param_0, param_1, param_2); -} - -HANDLE WINAPI CORKEL32_RegisterEventSourceA(LPCSTR lpUNCServerName, LPCSTR lpSourceName) -{ - Trace(TRACE_PASSTHROUGH, "RegisterEventSourceA"); - return RegisterEventSourceA(lpUNCServerName, lpSourceName); -} - -DWORD WINAPI CORKEL32_ExpandEnvironmentStringsA(LPCSTR src, LPSTR dst, DWORD count) -{ - Trace(TRACE_PASSTHROUGH, "ExpandEnvironmentStringsA"); - return ExpandEnvironmentStringsA(src, dst, count); -} - -DWORD WINAPI CORKEL32_ExpandEnvironmentStringsW(LPCWSTR src, LPWSTR dst, DWORD len) -{ - Trace(TRACE_PASSTHROUGH, "ExpandEnvironmentStringsW"); - return ExpandEnvironmentStringsW(src, dst, len); -} - -INT WINAPI CORKEL32_lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2) -{ - Trace(TRACE_PASSTHROUGH, "lstrcmpiA"); - return lstrcmpiA(lpString1, lpString2); -} - -BOOL WINAPI CORKEL32_GetConsoleScreenBufferInfo(HANDLE hConsoleOutput, PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo) -{ - Trace(TRACE_PASSTHROUGH, "GetConsoleScreenBufferInfo"); - return GetConsoleScreenBufferInfo(hConsoleOutput, lpConsoleScreenBufferInfo); -} - // Reimplemented LONG WINAPI CORKEL32_InterlockedCompareExchange(LONG *dest, LONG xchg, LONG compare) { diff --git a/wrappers/user32.c b/wrappers/user32.c index 9dda09d..4cdc081 100644 --- a/wrappers/user32.c +++ b/wrappers/user32.c @@ -3,120 +3,6 @@ #include "debug.h" -BOOL WINAPI CORUSR_GetUserObjectInformationW(HANDLE param_0, INT param_1, LPVOID param_2, DWORD param_3, LPDWORD param_4) -{ - Trace(TRACE_PASSTHROUGH, "GetUserObjectInformationW"); - return GetUserObjectInformationW(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORUSR_PostMessageW(HWND param_0, UINT param_1, WPARAM param_2, LPARAM param_3) -{ - Trace(TRACE_PASSTHROUGH, "PostMessageW"); - return PostMessageW(param_0, param_1, param_2, param_3); -} - -BOOL WINAPI CORUSR_PostMessageA(HWND param_0, UINT param_1, WPARAM param_2, LPARAM param_3) -{ - Trace(TRACE_PASSTHROUGH, "PostMessageA"); - return PostMessageA(param_0, param_1, param_2, param_3); -} - -LRESULT WINAPI CORUSR_DispatchMessageW(const MSG* param_0) -{ - Trace(TRACE_PASSTHROUGH, "DispatchMessageW"); - return DispatchMessageW(param_0); -} - -INT WINAPI CORUSR_MessageBoxA(HWND param_0, LPCSTR param_1, LPCSTR param_2, UINT param_3) -{ - Trace(TRACE_PASSTHROUGH, "MessageBoxA"); - return MessageBoxA(param_0, param_1, param_2, param_3); -} - -INT WINAPI CORUSR_MessageBoxW(HWND param_0, LPCWSTR param_1, LPCWSTR param_2, UINT param_3) -{ - Trace(TRACE_PASSTHROUGH, "MessageBoxW"); - return MessageBoxW(param_0, param_1, param_2, param_3); -} - -INT WINAPI CORUSR_GetClassNameA(HWND param_0, LPSTR param_1, INT param_2) -{ - Trace(TRACE_PASSTHROUGH, "GetClassNameA"); - return GetClassNameA(param_0, param_1, param_2); -} - -INT WINAPI CORUSR_GetClassNameW(HWND param_0, LPWSTR param_1, INT param_2) -{ - Trace(TRACE_PASSTHROUGH, "GetClassNameW"); - return GetClassNameW(param_0, param_1, param_2); -} - -INT WINAPI CORUSR_LoadStringA(HINSTANCE param_0, UINT param_1, LPSTR param_2, INT param_3) -{ - Trace(TRACE_PASSTHROUGH, "LoadStringA"); - return LoadStringA(param_0, param_1, param_2, param_3); -} - -INT WINAPI CORUSR_LoadStringW(HINSTANCE param_0, UINT param_1, LPWSTR param_2, INT param_3) -{ - Trace(TRACE_PASSTHROUGH, "LoadStringW"); - return LoadStringW(param_0, param_1, param_2, param_3); -} - -HWND WINAPI CORUSR_GetDesktopWindow() -{ - Trace(TRACE_PASSTHROUGH, "GetDesktopWindow"); - return GetDesktopWindow(); -} - -HWINSTA WINAPI CORUSR_GetProcessWindowStation() -{ - Trace(TRACE_PASSTHROUGH, "GetProcessWindowStation"); - return GetProcessWindowStation(); -} - -LRESULT WINAPI CORUSR_DispatchMessageA(const MSG* param_0) -{ - Trace(TRACE_PASSTHROUGH, "DispatchMessageA"); - return DispatchMessageA(param_0); -} - -BOOL WINAPI CORUSR_PeekMessageW(LPMSG param_0, HWND param_1, UINT param_2, UINT param_3, UINT param_4) -{ - Trace(TRACE_PASSTHROUGH, "PeekMessageW"); - return PeekMessageW(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORUSR_PeekMessageA(LPMSG param_0, HWND param_1, UINT param_2, UINT param_3, UINT param_4) -{ - Trace(TRACE_PASSTHROUGH, "PeekMessageA"); - return PeekMessageA(param_0, param_1, param_2, param_3, param_4); -} - -BOOL WINAPI CORUSR_EnumThreadWindows(DWORD param_0, WNDENUMPROC param_1,LPARAM param_2) -{ - Trace(TRACE_PASSTHROUGH, "EnumThreadWindows"); - return EnumThreadWindows(param_0, param_1, param_2); -} - -BOOL WINAPI CORUSR_TranslateMessage(const MSG* param_0) -{ - Trace(TRACE_PASSTHROUGH, "TranslateMessage"); - return TranslateMessage(param_0); -} - -LPSTR WINAPI CORUSR_CharNextExA(WORD param_0, LPCSTR param_1, DWORD param_2) -{ - Trace(TRACE_PASSTHROUGH, "CharNextExA"); - return CharNextExA(param_0, param_1, param_2); -} - -BOOL WINAPI CORUSR_InSendMessage() -{ - Trace(TRACE_PASSTHROUGH, "InSendMessage"); - return InSendMessage(); -} - // // Reimplementations //