Changeset 13 for trunk/kProfiler2/kPrf2WinApiWrapperHlp.c
- Timestamp:
- Apr 20, 2008, 12:13:43 PM (17 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/kProfiler2/kPrf2WinApiWrapperHlp.c
r12 r13 1 1 /* $Id$ */ 2 2 /** @file 3 * Wrappers for a number of common Windows APIs.3 * Helpers for the Windows API wrapper DLL. 4 4 */ 5 5 … … 26 26 * Header Files * 27 27 *******************************************************************************/ 28 #define _ADVAPI32_29 #define _KERNEL32_30 #define _WIN32_WINNT 0x060031 #define UNICODE32 28 #include <Windows.h> 33 #include <TLHelp32.h> 34 #include <k/kDefs.h> 35 36 #if K_ARCH == K_ARCH_X86_32 37 typedef PVOID PRUNTIME_FUNCTION; 38 typedef FARPROC PGET_RUNTIME_FUNCTION_CALLBACK; 39 #endif 40 41 /******************************************************************************* 42 * Structures and Typedefs * 43 *******************************************************************************/ 44 typedef struct KPRF2WRAPDLL 45 { 46 HMODULE hmod; 47 char szName[32]; 48 } KPRF2WRAPDLL; 49 typedef KPRF2WRAPDLL *PKPRF2WRAPDLL; 50 typedef KPRF2WRAPDLL const *PCKPRF2WRAPDLL; 51 52 53 /* TODO (amd64): 54 55 AddLocalAlternateComputerNameA 56 AddLocalAlternateComputerNameW 57 EnumerateLocalComputerNamesA 58 EnumerateLocalComputerNamesW 59 RemoveLocalAlternateComputerNameA 60 RemoveLocalAlternateComputerNameW 61 62 RtlLookupFunctionEntry 63 RtlPcToFileHeader 64 RtlRaiseException 65 RtlVirtualUnwind 66 67 SetConsoleCursor 68 SetLocalPrimaryComputerNameA 69 SetLocalPrimaryComputerNameW 70 __C_specific_handler 71 __misaligned_access 72 _local_unwind 73 */ 74 75 /******************************************************************************* 76 * Global Variables * 77 *******************************************************************************/ 78 KPRF2WRAPDLL g_Kernel32 = 79 { 80 INVALID_HANDLE_VALUE, "KERNEL32" 81 }; 82 83 84 /******************************************************************************* 85 * Internal Functions * 86 *******************************************************************************/ 87 FARPROC kPrf2WrapResolve(void **ppfn, const char *pszName, PKPRF2WRAPDLL pDll); 29 #include "kPRf2WinApiWRapperHlp.h" 88 30 89 31 … … 104 46 105 47 106 #include "kPrf2WinApiWrappers-kernel32.h"
Note:
See TracChangeset
for help on using the changeset viewer.