Changeset 141 for Include/api_psapi.sbp
- Timestamp:
- Mar 8, 2007, 10:42:50 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_psapi.sbp
r96 r141 1 ' api_psapi.sbp 2 1 3 #ifndef _INC_PSAPI_ 2 4 #define _INC_PSAPI_ 3 5 6 #ifdef UNICODE 7 Const _FuncName_GetModuleBaseName = "GetModuleBaseNameW" 8 Const _FuncName_GetModuleFileNameEx = "GetModuleFileNameExW" 9 Const _FuncName_GetMappedFileName = "GetMappedFileNameW" 10 Const _FuncName_GetDeviceDriverBaseName = "GetDeviceDriverBaseNameW" 11 Const _FuncName_GetDeviceDriverFileName = "GetDeviceDriverFileNameW" 12 Const _FuncName_GetProcessImageFileName = "GetProcessImageFileNameW" 13 Const _FuncName_EnumPageFiles = "EnumPageFilesW" 14 #else 15 Const _FuncName_GetModuleBaseName = "GetModuleBaseNameA" 16 Const _FuncName_GetModuleFileNameEx = "GetModuleFileNameExA" 17 Const _FuncName_GetMappedFileName = "GetMappedFileNameA" 18 Const _FuncName_GetDeviceDriverBaseName = "GetDeviceDriverBaseNameA" 19 Const _FuncName_GetDeviceDriverFileName = "GetDeviceDriverFileNameA" 20 Const _FuncName_GetProcessImageFileName = "GetProcessImageFileNameA" 21 Const _FuncName_EnumPageFiles = "EnumPageFilesA" 22 #endif 23 4 24 Declare Function EnumProcesses Lib "psapi" (lpidProcess As *DWord, cb As DWord, ByRef cbNeeded As DWord) As BOOL 5 25 Declare Function EnumProcessModules Lib "psapi" (hProcess As HANDLE, lphModule As *HANDLE, cb As DWord, ByRef lpcbNeeded As DWord) As BOOL 6 Declare Function GetModuleBaseName Lib "psapi" Alias "GetModuleBaseNameA" (hProcess As HANDLE, hModule As HANDLE, lpBaseName As LPSTR, nSize As DWord) As DWORD7 Declare Function GetModuleFileNameEx Lib "psapi" Alias "GetModuleFileNameExA" (hProcess As HANDLE, hModule As HANDLE, lpFilename As LPSTR, nSize As DWord) As DWORD26 Declare Function GetModuleBaseName Lib "psapi" Alias _FuncName_GetModuleBaseName (hProcess As HANDLE, hModule As HANDLE, lpBaseName As LPTSTR, nSize As DWord) As DWORD 27 Declare Function GetModuleFileNameEx Lib "psapi" Alias _FuncName_GetModuleFileNameEx (hProcess As HANDLE, hModule As HANDLE, lpFilename As LPTSTR, nSize As DWord) As DWORD 8 28 9 29 Type MODULEINFO … … 27 47 28 48 Declare Function GetWsChanges Lib "psapi" (hProcess As HANDLE, lpWatchInfo As PPSAPI_WS_WATCH_INFORMATION, cb As DWord) As BOOL 29 Declare Function GetMappedFileName Lib "psapi" Alias "GetMappedFileNameA" (hProcess As HANDLE, lpv As VoidPtr, lpFilename As LPSTR, nSize As DWord) As DWORD49 Declare Function GetMappedFileName Lib "psapi" Alias _FuncName_GetMappedFileName (hProcess As HANDLE, lpv As VoidPtr, lpFilename As LPTSTR, nSize As DWord) As DWORD 30 50 Declare Function EnumDeviceDrivers Lib "psapi" (ByRef lpImageBase As VoidPtr, cb As DWord, ByRef lpcbNeeded As DWord) As BOOL 31 Declare Function GetDeviceDriverBaseName Lib "psapi" Alias "GetDeviceDriverBaseNameA" (ImageBase As VoidPtr, lpBaseName As LPSTR, nSize As DWord) As DWORD32 Declare Function GetDeviceDriverFileName Lib "psapi" Alias "GetDeviceDriverFileNamA" (ImageBase As VoidPtr, lpFilename As LPSTR, nSize As DWord) As DWORD51 Declare Function GetDeviceDriverBaseName Lib "psapi" Alias _FuncName_GetDeviceDriverBaseName (ImageBase As VoidPtr, lpBaseName As LPTSTR, nSize As DWord) As DWORD 52 Declare Function GetDeviceDriverFileName Lib "psapi" Alias _FuncName_GetDeviceDriverFileName (ImageBase As VoidPtr, lpFilename As LPTSTR, nSize As DWord) As DWORD 33 53 34 54 ' Structure for GetProcessMemoryInfo() … … 100 120 TypeDef PENUM_PAGE_FILE_CALLBACKW = *Function(pContext As VoidPtr, pPageFileInfo As PENUM_PAGE_FILE_INFORMATION, lpFilename As LPCWSTR) As BOOL 101 121 TypeDef PENUM_PAGE_FILE_CALLBACKA = *Function(pContext As VoidPtr, pPageFileInfo As PENUM_PAGE_FILE_INFORMATION, lpFilename As LPCSTR) As BOOL 122 #ifdef UNICODE 123 TypeDef PENUM_PAGE_FILE_CALLBACK = PENUM_PAGE_FILE_CALLBACKW 124 #else 125 TypeDef PENUM_PAGE_FILE_CALLBACK = PENUM_PAGE_FILE_CALLBACKA 126 #endif 102 127 103 Declare Function EnumPageFiles Lib "psapi" Alias "EnumPageFilesA" (pCallBackRoutine As PENUM_PAGE_FILE_CALLBACKA, pContext As VoidPtr) As BOOL104 Declare Function GetProcessImageFileName Lib "psapi" Alias "GetProcessImageFileNameA" (hProcess As HANDLE, lpImageFileName As LPSTR, nSize As DWord) As DWORD128 Declare Function EnumPageFiles Lib "psapi" Alias _FuncName_EnumPageFiles (pCallBackRoutine As PENUM_PAGE_FILE_CALLBACK, pContext As VoidPtr) As BOOL 129 Declare Function GetProcessImageFileName Lib "psapi" Alias _FuncName_GetProcessImageFileName (hProcess As HANDLE, lpImageFileName As LPTSTR, nSize As DWord) As DWORD 105 130 106 131 #endif '_INC_PSAPI
Note:
See TracChangeset
for help on using the changeset viewer.