WinBase.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:203k
- typedef ENUMRESTYPEPROCW ENUMRESTYPEPROC;
- #else
- typedef ENUMRESTYPEPROCA ENUMRESTYPEPROC;
- #endif // UNICODE
- typedef FARPROC ENUMRESNAMEPROCA;
- typedef FARPROC ENUMRESNAMEPROCW;
- #ifdef UNICODE
- typedef ENUMRESNAMEPROCW ENUMRESNAMEPROC;
- #else
- typedef ENUMRESNAMEPROCA ENUMRESNAMEPROC;
- #endif // UNICODE
- typedef FARPROC ENUMRESLANGPROCA;
- typedef FARPROC ENUMRESLANGPROCW;
- #ifdef UNICODE
- typedef ENUMRESLANGPROCW ENUMRESLANGPROC;
- #else
- typedef ENUMRESLANGPROCA ENUMRESLANGPROC;
- #endif // UNICODE
- #endif
- WINBASEAPI
- BOOL
- WINAPI
- EnumResourceTypesA(
- IN HMODULE hModule,
- IN ENUMRESTYPEPROCA lpEnumFunc,
- IN LONG_PTR lParam
- );
- WINBASEAPI
- BOOL
- WINAPI
- EnumResourceTypesW(
- IN HMODULE hModule,
- IN ENUMRESTYPEPROCW lpEnumFunc,
- IN LONG_PTR lParam
- );
- #ifdef UNICODE
- #define EnumResourceTypes EnumResourceTypesW
- #else
- #define EnumResourceTypes EnumResourceTypesA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- EnumResourceNamesA(
- IN HMODULE hModule,
- IN LPCSTR lpType,
- IN ENUMRESNAMEPROCA lpEnumFunc,
- IN LONG_PTR lParam
- );
- WINBASEAPI
- BOOL
- WINAPI
- EnumResourceNamesW(
- IN HMODULE hModule,
- IN LPCWSTR lpType,
- IN ENUMRESNAMEPROCW lpEnumFunc,
- IN LONG_PTR lParam
- );
- #ifdef UNICODE
- #define EnumResourceNames EnumResourceNamesW
- #else
- #define EnumResourceNames EnumResourceNamesA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- EnumResourceLanguagesA(
- IN HMODULE hModule,
- IN LPCSTR lpType,
- IN LPCSTR lpName,
- IN ENUMRESLANGPROCA lpEnumFunc,
- IN LONG_PTR lParam
- );
- WINBASEAPI
- BOOL
- WINAPI
- EnumResourceLanguagesW(
- IN HMODULE hModule,
- IN LPCWSTR lpType,
- IN LPCWSTR lpName,
- IN ENUMRESLANGPROCW lpEnumFunc,
- IN LONG_PTR lParam
- );
- #ifdef UNICODE
- #define EnumResourceLanguages EnumResourceLanguagesW
- #else
- #define EnumResourceLanguages EnumResourceLanguagesA
- #endif // !UNICODE
- WINBASEAPI
- HANDLE
- WINAPI
- BeginUpdateResourceA(
- IN LPCSTR pFileName,
- IN BOOL bDeleteExistingResources
- );
- WINBASEAPI
- HANDLE
- WINAPI
- BeginUpdateResourceW(
- IN LPCWSTR pFileName,
- IN BOOL bDeleteExistingResources
- );
- #ifdef UNICODE
- #define BeginUpdateResource BeginUpdateResourceW
- #else
- #define BeginUpdateResource BeginUpdateResourceA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- UpdateResourceA(
- IN HANDLE hUpdate,
- IN LPCSTR lpType,
- IN LPCSTR lpName,
- IN WORD wLanguage,
- IN LPVOID lpData,
- IN DWORD cbData
- );
- WINBASEAPI
- BOOL
- WINAPI
- UpdateResourceW(
- IN HANDLE hUpdate,
- IN LPCWSTR lpType,
- IN LPCWSTR lpName,
- IN WORD wLanguage,
- IN LPVOID lpData,
- IN DWORD cbData
- );
- #ifdef UNICODE
- #define UpdateResource UpdateResourceW
- #else
- #define UpdateResource UpdateResourceA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- EndUpdateResourceA(
- IN HANDLE hUpdate,
- IN BOOL fDiscard
- );
- WINBASEAPI
- BOOL
- WINAPI
- EndUpdateResourceW(
- IN HANDLE hUpdate,
- IN BOOL fDiscard
- );
- #ifdef UNICODE
- #define EndUpdateResource EndUpdateResourceW
- #else
- #define EndUpdateResource EndUpdateResourceA
- #endif // !UNICODE
- WINBASEAPI
- ATOM
- WINAPI
- GlobalAddAtomA(
- IN LPCSTR lpString
- );
- WINBASEAPI
- ATOM
- WINAPI
- GlobalAddAtomW(
- IN LPCWSTR lpString
- );
- #ifdef UNICODE
- #define GlobalAddAtom GlobalAddAtomW
- #else
- #define GlobalAddAtom GlobalAddAtomA
- #endif // !UNICODE
- WINBASEAPI
- ATOM
- WINAPI
- GlobalFindAtomA(
- IN LPCSTR lpString
- );
- WINBASEAPI
- ATOM
- WINAPI
- GlobalFindAtomW(
- IN LPCWSTR lpString
- );
- #ifdef UNICODE
- #define GlobalFindAtom GlobalFindAtomW
- #else
- #define GlobalFindAtom GlobalFindAtomA
- #endif // !UNICODE
- WINBASEAPI
- UINT
- WINAPI
- GlobalGetAtomNameA(
- IN ATOM nAtom,
- OUT LPSTR lpBuffer,
- IN int nSize
- );
- WINBASEAPI
- UINT
- WINAPI
- GlobalGetAtomNameW(
- IN ATOM nAtom,
- OUT LPWSTR lpBuffer,
- IN int nSize
- );
- #ifdef UNICODE
- #define GlobalGetAtomName GlobalGetAtomNameW
- #else
- #define GlobalGetAtomName GlobalGetAtomNameA
- #endif // !UNICODE
- WINBASEAPI
- ATOM
- WINAPI
- AddAtomA(
- IN LPCSTR lpString
- );
- WINBASEAPI
- ATOM
- WINAPI
- AddAtomW(
- IN LPCWSTR lpString
- );
- #ifdef UNICODE
- #define AddAtom AddAtomW
- #else
- #define AddAtom AddAtomA
- #endif // !UNICODE
- WINBASEAPI
- ATOM
- WINAPI
- FindAtomA(
- IN LPCSTR lpString
- );
- WINBASEAPI
- ATOM
- WINAPI
- FindAtomW(
- IN LPCWSTR lpString
- );
- #ifdef UNICODE
- #define FindAtom FindAtomW
- #else
- #define FindAtom FindAtomA
- #endif // !UNICODE
- WINBASEAPI
- UINT
- WINAPI
- GetAtomNameA(
- IN ATOM nAtom,
- OUT LPSTR lpBuffer,
- IN int nSize
- );
- WINBASEAPI
- UINT
- WINAPI
- GetAtomNameW(
- IN ATOM nAtom,
- OUT LPWSTR lpBuffer,
- IN int nSize
- );
- #ifdef UNICODE
- #define GetAtomName GetAtomNameW
- #else
- #define GetAtomName GetAtomNameA
- #endif // !UNICODE
- WINBASEAPI
- UINT
- WINAPI
- GetProfileIntA(
- IN LPCSTR lpAppName,
- IN LPCSTR lpKeyName,
- IN INT nDefault
- );
- WINBASEAPI
- UINT
- WINAPI
- GetProfileIntW(
- IN LPCWSTR lpAppName,
- IN LPCWSTR lpKeyName,
- IN INT nDefault
- );
- #ifdef UNICODE
- #define GetProfileInt GetProfileIntW
- #else
- #define GetProfileInt GetProfileIntA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- GetProfileStringA(
- IN LPCSTR lpAppName,
- IN LPCSTR lpKeyName,
- IN LPCSTR lpDefault,
- OUT LPSTR lpReturnedString,
- IN DWORD nSize
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetProfileStringW(
- IN LPCWSTR lpAppName,
- IN LPCWSTR lpKeyName,
- IN LPCWSTR lpDefault,
- OUT LPWSTR lpReturnedString,
- IN DWORD nSize
- );
- #ifdef UNICODE
- #define GetProfileString GetProfileStringW
- #else
- #define GetProfileString GetProfileStringA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- WriteProfileStringA(
- IN LPCSTR lpAppName,
- IN LPCSTR lpKeyName,
- IN LPCSTR lpString
- );
- WINBASEAPI
- BOOL
- WINAPI
- WriteProfileStringW(
- IN LPCWSTR lpAppName,
- IN LPCWSTR lpKeyName,
- IN LPCWSTR lpString
- );
- #ifdef UNICODE
- #define WriteProfileString WriteProfileStringW
- #else
- #define WriteProfileString WriteProfileStringA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- GetProfileSectionA(
- IN LPCSTR lpAppName,
- OUT LPSTR lpReturnedString,
- IN DWORD nSize
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetProfileSectionW(
- IN LPCWSTR lpAppName,
- OUT LPWSTR lpReturnedString,
- IN DWORD nSize
- );
- #ifdef UNICODE
- #define GetProfileSection GetProfileSectionW
- #else
- #define GetProfileSection GetProfileSectionA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- WriteProfileSectionA(
- IN LPCSTR lpAppName,
- IN LPCSTR lpString
- );
- WINBASEAPI
- BOOL
- WINAPI
- WriteProfileSectionW(
- IN LPCWSTR lpAppName,
- IN LPCWSTR lpString
- );
- #ifdef UNICODE
- #define WriteProfileSection WriteProfileSectionW
- #else
- #define WriteProfileSection WriteProfileSectionA
- #endif // !UNICODE
- WINBASEAPI
- UINT
- WINAPI
- GetPrivateProfileIntA(
- IN LPCSTR lpAppName,
- IN LPCSTR lpKeyName,
- IN INT nDefault,
- IN LPCSTR lpFileName
- );
- WINBASEAPI
- UINT
- WINAPI
- GetPrivateProfileIntW(
- IN LPCWSTR lpAppName,
- IN LPCWSTR lpKeyName,
- IN INT nDefault,
- IN LPCWSTR lpFileName
- );
- #ifdef UNICODE
- #define GetPrivateProfileInt GetPrivateProfileIntW
- #else
- #define GetPrivateProfileInt GetPrivateProfileIntA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- GetPrivateProfileStringA(
- IN LPCSTR lpAppName,
- IN LPCSTR lpKeyName,
- IN LPCSTR lpDefault,
- OUT LPSTR lpReturnedString,
- IN DWORD nSize,
- IN LPCSTR lpFileName
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetPrivateProfileStringW(
- IN LPCWSTR lpAppName,
- IN LPCWSTR lpKeyName,
- IN LPCWSTR lpDefault,
- OUT LPWSTR lpReturnedString,
- IN DWORD nSize,
- IN LPCWSTR lpFileName
- );
- #ifdef UNICODE
- #define GetPrivateProfileString GetPrivateProfileStringW
- #else
- #define GetPrivateProfileString GetPrivateProfileStringA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- WritePrivateProfileStringA(
- IN LPCSTR lpAppName,
- IN LPCSTR lpKeyName,
- IN LPCSTR lpString,
- IN LPCSTR lpFileName
- );
- WINBASEAPI
- BOOL
- WINAPI
- WritePrivateProfileStringW(
- IN LPCWSTR lpAppName,
- IN LPCWSTR lpKeyName,
- IN LPCWSTR lpString,
- IN LPCWSTR lpFileName
- );
- #ifdef UNICODE
- #define WritePrivateProfileString WritePrivateProfileStringW
- #else
- #define WritePrivateProfileString WritePrivateProfileStringA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- GetPrivateProfileSectionA(
- IN LPCSTR lpAppName,
- OUT LPSTR lpReturnedString,
- IN DWORD nSize,
- IN LPCSTR lpFileName
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetPrivateProfileSectionW(
- IN LPCWSTR lpAppName,
- OUT LPWSTR lpReturnedString,
- IN DWORD nSize,
- IN LPCWSTR lpFileName
- );
- #ifdef UNICODE
- #define GetPrivateProfileSection GetPrivateProfileSectionW
- #else
- #define GetPrivateProfileSection GetPrivateProfileSectionA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- WritePrivateProfileSectionA(
- IN LPCSTR lpAppName,
- IN LPCSTR lpString,
- IN LPCSTR lpFileName
- );
- WINBASEAPI
- BOOL
- WINAPI
- WritePrivateProfileSectionW(
- IN LPCWSTR lpAppName,
- IN LPCWSTR lpString,
- IN LPCWSTR lpFileName
- );
- #ifdef UNICODE
- #define WritePrivateProfileSection WritePrivateProfileSectionW
- #else
- #define WritePrivateProfileSection WritePrivateProfileSectionA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- GetPrivateProfileSectionNamesA(
- OUT LPSTR lpszReturnBuffer,
- IN DWORD nSize,
- IN LPCSTR lpFileName
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetPrivateProfileSectionNamesW(
- OUT LPWSTR lpszReturnBuffer,
- IN DWORD nSize,
- IN LPCWSTR lpFileName
- );
- #ifdef UNICODE
- #define GetPrivateProfileSectionNames GetPrivateProfileSectionNamesW
- #else
- #define GetPrivateProfileSectionNames GetPrivateProfileSectionNamesA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- GetPrivateProfileStructA(
- IN LPCSTR lpszSection,
- IN LPCSTR lpszKey,
- OUT LPVOID lpStruct,
- IN UINT uSizeStruct,
- IN LPCSTR szFile
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetPrivateProfileStructW(
- IN LPCWSTR lpszSection,
- IN LPCWSTR lpszKey,
- OUT LPVOID lpStruct,
- IN UINT uSizeStruct,
- IN LPCWSTR szFile
- );
- #ifdef UNICODE
- #define GetPrivateProfileStruct GetPrivateProfileStructW
- #else
- #define GetPrivateProfileStruct GetPrivateProfileStructA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- WritePrivateProfileStructA(
- IN LPCSTR lpszSection,
- IN LPCSTR lpszKey,
- IN LPVOID lpStruct,
- IN UINT uSizeStruct,
- IN LPCSTR szFile
- );
- WINBASEAPI
- BOOL
- WINAPI
- WritePrivateProfileStructW(
- IN LPCWSTR lpszSection,
- IN LPCWSTR lpszKey,
- IN LPVOID lpStruct,
- IN UINT uSizeStruct,
- IN LPCWSTR szFile
- );
- #ifdef UNICODE
- #define WritePrivateProfileStruct WritePrivateProfileStructW
- #else
- #define WritePrivateProfileStruct WritePrivateProfileStructA
- #endif // !UNICODE
- WINBASEAPI
- UINT
- WINAPI
- GetDriveTypeA(
- IN LPCSTR lpRootPathName
- );
- WINBASEAPI
- UINT
- WINAPI
- GetDriveTypeW(
- IN LPCWSTR lpRootPathName
- );
- #ifdef UNICODE
- #define GetDriveType GetDriveTypeW
- #else
- #define GetDriveType GetDriveTypeA
- #endif // !UNICODE
- WINBASEAPI
- UINT
- WINAPI
- GetSystemDirectoryA(
- OUT LPSTR lpBuffer,
- IN UINT uSize
- );
- WINBASEAPI
- UINT
- WINAPI
- GetSystemDirectoryW(
- OUT LPWSTR lpBuffer,
- IN UINT uSize
- );
- #ifdef UNICODE
- #define GetSystemDirectory GetSystemDirectoryW
- #else
- #define GetSystemDirectory GetSystemDirectoryA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- GetTempPathA(
- IN DWORD nBufferLength,
- OUT LPSTR lpBuffer
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetTempPathW(
- IN DWORD nBufferLength,
- OUT LPWSTR lpBuffer
- );
- #ifdef UNICODE
- #define GetTempPath GetTempPathW
- #else
- #define GetTempPath GetTempPathA
- #endif // !UNICODE
- WINBASEAPI
- UINT
- WINAPI
- GetTempFileNameA(
- IN LPCSTR lpPathName,
- IN LPCSTR lpPrefixString,
- IN UINT uUnique,
- OUT LPSTR lpTempFileName
- );
- WINBASEAPI
- UINT
- WINAPI
- GetTempFileNameW(
- IN LPCWSTR lpPathName,
- IN LPCWSTR lpPrefixString,
- IN UINT uUnique,
- OUT LPWSTR lpTempFileName
- );
- #ifdef UNICODE
- #define GetTempFileName GetTempFileNameW
- #else
- #define GetTempFileName GetTempFileNameA
- #endif // !UNICODE
- WINBASEAPI
- UINT
- WINAPI
- GetWindowsDirectoryA(
- OUT LPSTR lpBuffer,
- IN UINT uSize
- );
- WINBASEAPI
- UINT
- WINAPI
- GetWindowsDirectoryW(
- OUT LPWSTR lpBuffer,
- IN UINT uSize
- );
- #ifdef UNICODE
- #define GetWindowsDirectory GetWindowsDirectoryW
- #else
- #define GetWindowsDirectory GetWindowsDirectoryA
- #endif // !UNICODE
- WINBASEAPI
- UINT
- WINAPI
- GetSystemWindowsDirectoryA(
- OUT LPSTR lpBuffer,
- IN UINT uSize
- );
- WINBASEAPI
- UINT
- WINAPI
- GetSystemWindowsDirectoryW(
- OUT LPWSTR lpBuffer,
- IN UINT uSize
- );
- #ifdef UNICODE
- #define GetSystemWindowsDirectory GetSystemWindowsDirectoryW
- #else
- #define GetSystemWindowsDirectory GetSystemWindowsDirectoryA
- #endif // !UNICODE
- #if !defined(RC_INVOKED) // RC warns because "WINBASE_DECLARE_GET_SYSTEM_WOW64_DIRECTORY" is a bit long.
- #if _WIN32_WINNT >= 0x0501 || defined(WINBASE_DECLARE_GET_SYSTEM_WOW64_DIRECTORY)
- WINBASEAPI
- UINT
- WINAPI
- GetSystemWow64DirectoryA(
- OUT LPSTR lpBuffer,
- IN UINT uSize
- );
- WINBASEAPI
- UINT
- WINAPI
- GetSystemWow64DirectoryW(
- OUT LPWSTR lpBuffer,
- IN UINT uSize
- );
- #ifdef UNICODE
- #define GetSystemWow64Directory GetSystemWow64DirectoryW
- #else
- #define GetSystemWow64Directory GetSystemWow64DirectoryA
- #endif // !UNICODE
- //
- // for GetProcAddress
- //
- typedef UINT (WINAPI* PGET_SYSTEM_WOW64_DIRECTORY_A)(OUT LPSTR lpBuffer, UINT uSize);
- typedef UINT (WINAPI* PGET_SYSTEM_WOW64_DIRECTORY_W)(OUT LPWSTR lpBuffer, UINT uSize);
- //
- // GetProcAddress only accepts GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A,
- // GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A, GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A.
- // The others are if you want to use the strings in some other way.
- //
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A "GetSystemWow64DirectoryA"
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W L"GetSystemWow64DirectoryA"
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_T TEXT("GetSystemWow64DirectoryA")
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A "GetSystemWow64DirectoryW"
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W L"GetSystemWow64DirectoryW"
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_T TEXT("GetSystemWow64DirectoryW")
- #ifdef UNICODE
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_T GET_SYSTEM_WOW64_DIRECTORY_NAME_W_T
- #else
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W
- #define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_T GET_SYSTEM_WOW64_DIRECTORY_NAME_A_T
- #endif
- #endif // _WIN32_WINNT >= 0x0501
- #endif
- WINBASEAPI
- BOOL
- WINAPI
- SetCurrentDirectoryA(
- IN LPCSTR lpPathName
- );
- WINBASEAPI
- BOOL
- WINAPI
- SetCurrentDirectoryW(
- IN LPCWSTR lpPathName
- );
- #ifdef UNICODE
- #define SetCurrentDirectory SetCurrentDirectoryW
- #else
- #define SetCurrentDirectory SetCurrentDirectoryA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- GetCurrentDirectoryA(
- IN DWORD nBufferLength,
- OUT LPSTR lpBuffer
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetCurrentDirectoryW(
- IN DWORD nBufferLength,
- OUT LPWSTR lpBuffer
- );
- #ifdef UNICODE
- #define GetCurrentDirectory GetCurrentDirectoryW
- #else
- #define GetCurrentDirectory GetCurrentDirectoryA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- GetDiskFreeSpaceA(
- IN LPCSTR lpRootPathName,
- OUT LPDWORD lpSectorsPerCluster,
- OUT LPDWORD lpBytesPerSector,
- OUT LPDWORD lpNumberOfFreeClusters,
- OUT LPDWORD lpTotalNumberOfClusters
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetDiskFreeSpaceW(
- IN LPCWSTR lpRootPathName,
- OUT LPDWORD lpSectorsPerCluster,
- OUT LPDWORD lpBytesPerSector,
- OUT LPDWORD lpNumberOfFreeClusters,
- OUT LPDWORD lpTotalNumberOfClusters
- );
- #ifdef UNICODE
- #define GetDiskFreeSpace GetDiskFreeSpaceW
- #else
- #define GetDiskFreeSpace GetDiskFreeSpaceA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- GetDiskFreeSpaceExA(
- IN LPCSTR lpDirectoryName,
- OUT PULARGE_INTEGER lpFreeBytesAvailableToCaller,
- OUT PULARGE_INTEGER lpTotalNumberOfBytes,
- OUT PULARGE_INTEGER lpTotalNumberOfFreeBytes
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetDiskFreeSpaceExW(
- IN LPCWSTR lpDirectoryName,
- OUT PULARGE_INTEGER lpFreeBytesAvailableToCaller,
- OUT PULARGE_INTEGER lpTotalNumberOfBytes,
- OUT PULARGE_INTEGER lpTotalNumberOfFreeBytes
- );
- #ifdef UNICODE
- #define GetDiskFreeSpaceEx GetDiskFreeSpaceExW
- #else
- #define GetDiskFreeSpaceEx GetDiskFreeSpaceExA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- CreateDirectoryA(
- IN LPCSTR lpPathName,
- IN LPSECURITY_ATTRIBUTES lpSecurityAttributes
- );
- WINBASEAPI
- BOOL
- WINAPI
- CreateDirectoryW(
- IN LPCWSTR lpPathName,
- IN LPSECURITY_ATTRIBUTES lpSecurityAttributes
- );
- #ifdef UNICODE
- #define CreateDirectory CreateDirectoryW
- #else
- #define CreateDirectory CreateDirectoryA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- CreateDirectoryExA(
- IN LPCSTR lpTemplateDirectory,
- IN LPCSTR lpNewDirectory,
- IN LPSECURITY_ATTRIBUTES lpSecurityAttributes
- );
- WINBASEAPI
- BOOL
- WINAPI
- CreateDirectoryExW(
- IN LPCWSTR lpTemplateDirectory,
- IN LPCWSTR lpNewDirectory,
- IN LPSECURITY_ATTRIBUTES lpSecurityAttributes
- );
- #ifdef UNICODE
- #define CreateDirectoryEx CreateDirectoryExW
- #else
- #define CreateDirectoryEx CreateDirectoryExA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- RemoveDirectoryA(
- IN LPCSTR lpPathName
- );
- WINBASEAPI
- BOOL
- WINAPI
- RemoveDirectoryW(
- IN LPCWSTR lpPathName
- );
- #ifdef UNICODE
- #define RemoveDirectory RemoveDirectoryW
- #else
- #define RemoveDirectory RemoveDirectoryA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- GetFullPathNameA(
- IN LPCSTR lpFileName,
- IN DWORD nBufferLength,
- OUT LPSTR lpBuffer,
- OUT LPSTR *lpFilePart
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetFullPathNameW(
- IN LPCWSTR lpFileName,
- IN DWORD nBufferLength,
- OUT LPWSTR lpBuffer,
- OUT LPWSTR *lpFilePart
- );
- #ifdef UNICODE
- #define GetFullPathName GetFullPathNameW
- #else
- #define GetFullPathName GetFullPathNameA
- #endif // !UNICODE
- #define DDD_RAW_TARGET_PATH 0x00000001
- #define DDD_REMOVE_DEFINITION 0x00000002
- #define DDD_EXACT_MATCH_ON_REMOVE 0x00000004
- #define DDD_NO_BROADCAST_SYSTEM 0x00000008
- #define DDD_LUID_BROADCAST_DRIVE 0x00000010
- WINBASEAPI
- BOOL
- WINAPI
- DefineDosDeviceA(
- IN DWORD dwFlags,
- IN LPCSTR lpDeviceName,
- IN LPCSTR lpTargetPath
- );
- WINBASEAPI
- BOOL
- WINAPI
- DefineDosDeviceW(
- IN DWORD dwFlags,
- IN LPCWSTR lpDeviceName,
- IN LPCWSTR lpTargetPath
- );
- #ifdef UNICODE
- #define DefineDosDevice DefineDosDeviceW
- #else
- #define DefineDosDevice DefineDosDeviceA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- QueryDosDeviceA(
- IN LPCSTR lpDeviceName,
- OUT LPSTR lpTargetPath,
- IN DWORD ucchMax
- );
- WINBASEAPI
- DWORD
- WINAPI
- QueryDosDeviceW(
- IN LPCWSTR lpDeviceName,
- OUT LPWSTR lpTargetPath,
- IN DWORD ucchMax
- );
- #ifdef UNICODE
- #define QueryDosDevice QueryDosDeviceW
- #else
- #define QueryDosDevice QueryDosDeviceA
- #endif // !UNICODE
- #define EXPAND_LOCAL_DRIVES
- WINBASEAPI
- HANDLE
- WINAPI
- CreateFileA(
- IN LPCSTR lpFileName,
- IN DWORD dwDesiredAccess,
- IN DWORD dwShareMode,
- IN LPSECURITY_ATTRIBUTES lpSecurityAttributes,
- IN DWORD dwCreationDisposition,
- IN DWORD dwFlagsAndAttributes,
- IN HANDLE hTemplateFile
- );
- WINBASEAPI
- HANDLE
- WINAPI
- CreateFileW(
- IN LPCWSTR lpFileName,
- IN DWORD dwDesiredAccess,
- IN DWORD dwShareMode,
- IN LPSECURITY_ATTRIBUTES lpSecurityAttributes,
- IN DWORD dwCreationDisposition,
- IN DWORD dwFlagsAndAttributes,
- IN HANDLE hTemplateFile
- );
- #ifdef UNICODE
- #define CreateFile CreateFileW
- #else
- #define CreateFile CreateFileA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- SetFileAttributesA(
- IN LPCSTR lpFileName,
- IN DWORD dwFileAttributes
- );
- WINBASEAPI
- BOOL
- WINAPI
- SetFileAttributesW(
- IN LPCWSTR lpFileName,
- IN DWORD dwFileAttributes
- );
- #ifdef UNICODE
- #define SetFileAttributes SetFileAttributesW
- #else
- #define SetFileAttributes SetFileAttributesA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- GetFileAttributesA(
- IN LPCSTR lpFileName
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetFileAttributesW(
- IN LPCWSTR lpFileName
- );
- #ifdef UNICODE
- #define GetFileAttributes GetFileAttributesW
- #else
- #define GetFileAttributes GetFileAttributesA
- #endif // !UNICODE
- typedef enum _GET_FILEEX_INFO_LEVELS {
- GetFileExInfoStandard,
- GetFileExMaxInfoLevel
- } GET_FILEEX_INFO_LEVELS;
- WINBASEAPI
- BOOL
- WINAPI
- GetFileAttributesExA(
- IN LPCSTR lpFileName,
- IN GET_FILEEX_INFO_LEVELS fInfoLevelId,
- OUT LPVOID lpFileInformation
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetFileAttributesExW(
- IN LPCWSTR lpFileName,
- IN GET_FILEEX_INFO_LEVELS fInfoLevelId,
- OUT LPVOID lpFileInformation
- );
- #ifdef UNICODE
- #define GetFileAttributesEx GetFileAttributesExW
- #else
- #define GetFileAttributesEx GetFileAttributesExA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- GetCompressedFileSizeA(
- IN LPCSTR lpFileName,
- OUT LPDWORD lpFileSizeHigh
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetCompressedFileSizeW(
- IN LPCWSTR lpFileName,
- OUT LPDWORD lpFileSizeHigh
- );
- #ifdef UNICODE
- #define GetCompressedFileSize GetCompressedFileSizeW
- #else
- #define GetCompressedFileSize GetCompressedFileSizeA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- DeleteFileA(
- IN LPCSTR lpFileName
- );
- WINBASEAPI
- BOOL
- WINAPI
- DeleteFileW(
- IN LPCWSTR lpFileName
- );
- #ifdef UNICODE
- #define DeleteFile DeleteFileW
- #else
- #define DeleteFile DeleteFileA
- #endif // !UNICODE
- #if(_WIN32_WINNT >= 0x0400)
- typedef enum _FINDEX_INFO_LEVELS {
- FindExInfoStandard,
- FindExInfoMaxInfoLevel
- } FINDEX_INFO_LEVELS;
- typedef enum _FINDEX_SEARCH_OPS {
- FindExSearchNameMatch,
- FindExSearchLimitToDirectories,
- FindExSearchLimitToDevices,
- FindExSearchMaxSearchOp
- } FINDEX_SEARCH_OPS;
- #define FIND_FIRST_EX_CASE_SENSITIVE 0x00000001
- WINBASEAPI
- HANDLE
- WINAPI
- FindFirstFileExA(
- IN LPCSTR lpFileName,
- IN FINDEX_INFO_LEVELS fInfoLevelId,
- OUT LPVOID lpFindFileData,
- IN FINDEX_SEARCH_OPS fSearchOp,
- IN LPVOID lpSearchFilter,
- IN DWORD dwAdditionalFlags
- );
- WINBASEAPI
- HANDLE
- WINAPI
- FindFirstFileExW(
- IN LPCWSTR lpFileName,
- IN FINDEX_INFO_LEVELS fInfoLevelId,
- OUT LPVOID lpFindFileData,
- IN FINDEX_SEARCH_OPS fSearchOp,
- IN LPVOID lpSearchFilter,
- IN DWORD dwAdditionalFlags
- );
- #ifdef UNICODE
- #define FindFirstFileEx FindFirstFileExW
- #else
- #define FindFirstFileEx FindFirstFileExA
- #endif // !UNICODE
- #endif /* _WIN32_WINNT >= 0x0400 */
- WINBASEAPI
- HANDLE
- WINAPI
- FindFirstFileA(
- IN LPCSTR lpFileName,
- OUT LPWIN32_FIND_DATAA lpFindFileData
- );
- WINBASEAPI
- HANDLE
- WINAPI
- FindFirstFileW(
- IN LPCWSTR lpFileName,
- OUT LPWIN32_FIND_DATAW lpFindFileData
- );
- #ifdef UNICODE
- #define FindFirstFile FindFirstFileW
- #else
- #define FindFirstFile FindFirstFileA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- FindNextFileA(
- IN HANDLE hFindFile,
- OUT LPWIN32_FIND_DATAA lpFindFileData
- );
- WINBASEAPI
- BOOL
- WINAPI
- FindNextFileW(
- IN HANDLE hFindFile,
- OUT LPWIN32_FIND_DATAW lpFindFileData
- );
- #ifdef UNICODE
- #define FindNextFile FindNextFileW
- #else
- #define FindNextFile FindNextFileA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- SearchPathA(
- IN LPCSTR lpPath,
- IN LPCSTR lpFileName,
- IN LPCSTR lpExtension,
- IN DWORD nBufferLength,
- OUT LPSTR lpBuffer,
- OUT LPSTR *lpFilePart
- );
- WINBASEAPI
- DWORD
- WINAPI
- SearchPathW(
- IN LPCWSTR lpPath,
- IN LPCWSTR lpFileName,
- IN LPCWSTR lpExtension,
- IN DWORD nBufferLength,
- OUT LPWSTR lpBuffer,
- OUT LPWSTR *lpFilePart
- );
- #ifdef UNICODE
- #define SearchPath SearchPathW
- #else
- #define SearchPath SearchPathA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- CopyFileA(
- IN LPCSTR lpExistingFileName,
- IN LPCSTR lpNewFileName,
- IN BOOL bFailIfExists
- );
- WINBASEAPI
- BOOL
- WINAPI
- CopyFileW(
- IN LPCWSTR lpExistingFileName,
- IN LPCWSTR lpNewFileName,
- IN BOOL bFailIfExists
- );
- #ifdef UNICODE
- #define CopyFile CopyFileW
- #else
- #define CopyFile CopyFileA
- #endif // !UNICODE
- #if(_WIN32_WINNT >= 0x0400)
- typedef
- DWORD
- (WINAPI *LPPROGRESS_ROUTINE)(
- LARGE_INTEGER TotalFileSize,
- LARGE_INTEGER TotalBytesTransferred,
- LARGE_INTEGER StreamSize,
- LARGE_INTEGER StreamBytesTransferred,
- DWORD dwStreamNumber,
- DWORD dwCallbackReason,
- HANDLE hSourceFile,
- HANDLE hDestinationFile,
- LPVOID lpData OPTIONAL
- );
- WINBASEAPI
- BOOL
- WINAPI
- CopyFileExA(
- IN LPCSTR lpExistingFileName,
- IN LPCSTR lpNewFileName,
- IN LPPROGRESS_ROUTINE lpProgressRoutine OPTIONAL,
- IN LPVOID lpData OPTIONAL,
- IN LPBOOL pbCancel OPTIONAL,
- IN DWORD dwCopyFlags
- );
- WINBASEAPI
- BOOL
- WINAPI
- CopyFileExW(
- IN LPCWSTR lpExistingFileName,
- IN LPCWSTR lpNewFileName,
- IN LPPROGRESS_ROUTINE lpProgressRoutine OPTIONAL,
- IN LPVOID lpData OPTIONAL,
- IN LPBOOL pbCancel OPTIONAL,
- IN DWORD dwCopyFlags
- );
- #ifdef UNICODE
- #define CopyFileEx CopyFileExW
- #else
- #define CopyFileEx CopyFileExA
- #endif // !UNICODE
- #endif /* _WIN32_WINNT >= 0x0400 */
- WINBASEAPI
- BOOL
- WINAPI
- MoveFileA(
- IN LPCSTR lpExistingFileName,
- IN LPCSTR lpNewFileName
- );
- WINBASEAPI
- BOOL
- WINAPI
- MoveFileW(
- IN LPCWSTR lpExistingFileName,
- IN LPCWSTR lpNewFileName
- );
- #ifdef UNICODE
- #define MoveFile MoveFileW
- #else
- #define MoveFile MoveFileA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- MoveFileExA(
- IN LPCSTR lpExistingFileName,
- IN LPCSTR lpNewFileName,
- IN DWORD dwFlags
- );
- WINBASEAPI
- BOOL
- WINAPI
- MoveFileExW(
- IN LPCWSTR lpExistingFileName,
- IN LPCWSTR lpNewFileName,
- IN DWORD dwFlags
- );
- #ifdef UNICODE
- #define MoveFileEx MoveFileExW
- #else
- #define MoveFileEx MoveFileExA
- #endif // !UNICODE
- #if (_WIN32_WINNT >= 0x0500)
- WINBASEAPI
- BOOL
- WINAPI
- MoveFileWithProgressA(
- IN LPCSTR lpExistingFileName,
- IN LPCSTR lpNewFileName,
- IN LPPROGRESS_ROUTINE lpProgressRoutine OPTIONAL,
- IN LPVOID lpData OPTIONAL,
- IN DWORD dwFlags
- );
- WINBASEAPI
- BOOL
- WINAPI
- MoveFileWithProgressW(
- IN LPCWSTR lpExistingFileName,
- IN LPCWSTR lpNewFileName,
- IN LPPROGRESS_ROUTINE lpProgressRoutine OPTIONAL,
- IN LPVOID lpData OPTIONAL,
- IN DWORD dwFlags
- );
- #ifdef UNICODE
- #define MoveFileWithProgress MoveFileWithProgressW
- #else
- #define MoveFileWithProgress MoveFileWithProgressA
- #endif // !UNICODE
- #endif // (_WIN32_WINNT >= 0x0500)
- #define MOVEFILE_REPLACE_EXISTING 0x00000001
- #define MOVEFILE_COPY_ALLOWED 0x00000002
- #define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
- #define MOVEFILE_WRITE_THROUGH 0x00000008
- #if (_WIN32_WINNT >= 0x0500)
- #define MOVEFILE_CREATE_HARDLINK 0x00000010
- #define MOVEFILE_FAIL_IF_NOT_TRACKABLE 0x00000020
- #endif // (_WIN32_WINNT >= 0x0500)
- #if (_WIN32_WINNT >= 0x0500)
- WINBASEAPI
- BOOL
- WINAPI
- ReplaceFileA(
- LPCSTR lpReplacedFileName,
- LPCSTR lpReplacementFileName,
- LPCSTR lpBackupFileName,
- DWORD dwReplaceFlags,
- LPVOID lpExclude,
- LPVOID lpReserved
- );
- WINBASEAPI
- BOOL
- WINAPI
- ReplaceFileW(
- LPCWSTR lpReplacedFileName,
- LPCWSTR lpReplacementFileName,
- LPCWSTR lpBackupFileName,
- DWORD dwReplaceFlags,
- LPVOID lpExclude,
- LPVOID lpReserved
- );
- #ifdef UNICODE
- #define ReplaceFile ReplaceFileW
- #else
- #define ReplaceFile ReplaceFileA
- #endif // !UNICODE
- #endif // (_WIN32_WINNT >= 0x0500)
- #if (_WIN32_WINNT >= 0x0500)
- //
- // API call to create hard links.
- //
- WINBASEAPI
- BOOL
- WINAPI
- CreateHardLinkA(
- IN LPCSTR lpFileName,
- IN LPCSTR lpExistingFileName,
- IN LPSECURITY_ATTRIBUTES lpSecurityAttributes
- );
- WINBASEAPI
- BOOL
- WINAPI
- CreateHardLinkW(
- IN LPCWSTR lpFileName,
- IN LPCWSTR lpExistingFileName,
- IN LPSECURITY_ATTRIBUTES lpSecurityAttributes
- );
- #ifdef UNICODE
- #define CreateHardLink CreateHardLinkW
- #else
- #define CreateHardLink CreateHardLinkA
- #endif // !UNICODE
- #endif // (_WIN32_WINNT >= 0x0500)
- WINBASEAPI
- HANDLE
- WINAPI
- CreateNamedPipeA(
- IN LPCSTR lpName,
- IN DWORD dwOpenMode,
- IN DWORD dwPipeMode,
- IN DWORD nMaxInstances,
- IN DWORD nOutBufferSize,
- IN DWORD nInBufferSize,
- IN DWORD nDefaultTimeOut,
- IN LPSECURITY_ATTRIBUTES lpSecurityAttributes
- );
- WINBASEAPI
- HANDLE
- WINAPI
- CreateNamedPipeW(
- IN LPCWSTR lpName,
- IN DWORD dwOpenMode,
- IN DWORD dwPipeMode,
- IN DWORD nMaxInstances,
- IN DWORD nOutBufferSize,
- IN DWORD nInBufferSize,
- IN DWORD nDefaultTimeOut,
- IN LPSECURITY_ATTRIBUTES lpSecurityAttributes
- );
- #ifdef UNICODE
- #define CreateNamedPipe CreateNamedPipeW
- #else
- #define CreateNamedPipe CreateNamedPipeA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- GetNamedPipeHandleStateA(
- IN HANDLE hNamedPipe,
- OUT LPDWORD lpState,
- OUT LPDWORD lpCurInstances,
- OUT LPDWORD lpMaxCollectionCount,
- OUT LPDWORD lpCollectDataTimeout,
- OUT LPSTR lpUserName,
- IN DWORD nMaxUserNameSize
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetNamedPipeHandleStateW(
- IN HANDLE hNamedPipe,
- OUT LPDWORD lpState,
- OUT LPDWORD lpCurInstances,
- OUT LPDWORD lpMaxCollectionCount,
- OUT LPDWORD lpCollectDataTimeout,
- OUT LPWSTR lpUserName,
- IN DWORD nMaxUserNameSize
- );
- #ifdef UNICODE
- #define GetNamedPipeHandleState GetNamedPipeHandleStateW
- #else
- #define GetNamedPipeHandleState GetNamedPipeHandleStateA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- CallNamedPipeA(
- IN LPCSTR lpNamedPipeName,
- IN LPVOID lpInBuffer,
- IN DWORD nInBufferSize,
- OUT LPVOID lpOutBuffer,
- IN DWORD nOutBufferSize,
- OUT LPDWORD lpBytesRead,
- IN DWORD nTimeOut
- );
- WINBASEAPI
- BOOL
- WINAPI
- CallNamedPipeW(
- IN LPCWSTR lpNamedPipeName,
- IN LPVOID lpInBuffer,
- IN DWORD nInBufferSize,
- OUT LPVOID lpOutBuffer,
- IN DWORD nOutBufferSize,
- OUT LPDWORD lpBytesRead,
- IN DWORD nTimeOut
- );
- #ifdef UNICODE
- #define CallNamedPipe CallNamedPipeW
- #else
- #define CallNamedPipe CallNamedPipeA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- WaitNamedPipeA(
- IN LPCSTR lpNamedPipeName,
- IN DWORD nTimeOut
- );
- WINBASEAPI
- BOOL
- WINAPI
- WaitNamedPipeW(
- IN LPCWSTR lpNamedPipeName,
- IN DWORD nTimeOut
- );
- #ifdef UNICODE
- #define WaitNamedPipe WaitNamedPipeW
- #else
- #define WaitNamedPipe WaitNamedPipeA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- SetVolumeLabelA(
- IN LPCSTR lpRootPathName,
- IN LPCSTR lpVolumeName
- );
- WINBASEAPI
- BOOL
- WINAPI
- SetVolumeLabelW(
- IN LPCWSTR lpRootPathName,
- IN LPCWSTR lpVolumeName
- );
- #ifdef UNICODE
- #define SetVolumeLabel SetVolumeLabelW
- #else
- #define SetVolumeLabel SetVolumeLabelA
- #endif // !UNICODE
- WINBASEAPI
- VOID
- WINAPI
- SetFileApisToOEM( VOID );
- WINBASEAPI
- VOID
- WINAPI
- SetFileApisToANSI( VOID );
- WINBASEAPI
- BOOL
- WINAPI
- AreFileApisANSI( VOID );
- WINBASEAPI
- BOOL
- WINAPI
- GetVolumeInformationA(
- IN LPCSTR lpRootPathName,
- OUT LPSTR lpVolumeNameBuffer,
- IN DWORD nVolumeNameSize,
- OUT LPDWORD lpVolumeSerialNumber,
- OUT LPDWORD lpMaximumComponentLength,
- OUT LPDWORD lpFileSystemFlags,
- OUT LPSTR lpFileSystemNameBuffer,
- IN DWORD nFileSystemNameSize
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetVolumeInformationW(
- IN LPCWSTR lpRootPathName,
- OUT LPWSTR lpVolumeNameBuffer,
- IN DWORD nVolumeNameSize,
- OUT LPDWORD lpVolumeSerialNumber,
- OUT LPDWORD lpMaximumComponentLength,
- OUT LPDWORD lpFileSystemFlags,
- OUT LPWSTR lpFileSystemNameBuffer,
- IN DWORD nFileSystemNameSize
- );
- #ifdef UNICODE
- #define GetVolumeInformation GetVolumeInformationW
- #else
- #define GetVolumeInformation GetVolumeInformationA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- CancelIo(
- IN HANDLE hFile
- );
- //
- // Event logging APIs
- //
- WINADVAPI
- BOOL
- WINAPI
- ClearEventLogA (
- IN HANDLE hEventLog,
- IN LPCSTR lpBackupFileName
- );
- WINADVAPI
- BOOL
- WINAPI
- ClearEventLogW (
- IN HANDLE hEventLog,
- IN LPCWSTR lpBackupFileName
- );
- #ifdef UNICODE
- #define ClearEventLog ClearEventLogW
- #else
- #define ClearEventLog ClearEventLogA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- BackupEventLogA (
- IN HANDLE hEventLog,
- IN LPCSTR lpBackupFileName
- );
- WINADVAPI
- BOOL
- WINAPI
- BackupEventLogW (
- IN HANDLE hEventLog,
- IN LPCWSTR lpBackupFileName
- );
- #ifdef UNICODE
- #define BackupEventLog BackupEventLogW
- #else
- #define BackupEventLog BackupEventLogA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- CloseEventLog (
- IN OUT HANDLE hEventLog
- );
- WINADVAPI
- BOOL
- WINAPI
- DeregisterEventSource (
- IN OUT HANDLE hEventLog
- );
- WINADVAPI
- BOOL
- WINAPI
- NotifyChangeEventLog(
- IN HANDLE hEventLog,
- IN HANDLE hEvent
- );
- WINADVAPI
- BOOL
- WINAPI
- GetNumberOfEventLogRecords (
- IN HANDLE hEventLog,
- OUT PDWORD NumberOfRecords
- );
- WINADVAPI
- BOOL
- WINAPI
- GetOldestEventLogRecord (
- IN HANDLE hEventLog,
- OUT PDWORD OldestRecord
- );
- WINADVAPI
- HANDLE
- WINAPI
- OpenEventLogA (
- IN LPCSTR lpUNCServerName,
- IN LPCSTR lpSourceName
- );
- WINADVAPI
- HANDLE
- WINAPI
- OpenEventLogW (
- IN LPCWSTR lpUNCServerName,
- IN LPCWSTR lpSourceName
- );
- #ifdef UNICODE
- #define OpenEventLog OpenEventLogW
- #else
- #define OpenEventLog OpenEventLogA
- #endif // !UNICODE
- WINADVAPI
- HANDLE
- WINAPI
- RegisterEventSourceA (
- IN LPCSTR lpUNCServerName,
- IN LPCSTR lpSourceName
- );
- WINADVAPI
- HANDLE
- WINAPI
- RegisterEventSourceW (
- IN LPCWSTR lpUNCServerName,
- IN LPCWSTR lpSourceName
- );
- #ifdef UNICODE
- #define RegisterEventSource RegisterEventSourceW
- #else
- #define RegisterEventSource RegisterEventSourceA
- #endif // !UNICODE
- WINADVAPI
- HANDLE
- WINAPI
- OpenBackupEventLogA (
- IN LPCSTR lpUNCServerName,
- IN LPCSTR lpFileName
- );
- WINADVAPI
- HANDLE
- WINAPI
- OpenBackupEventLogW (
- IN LPCWSTR lpUNCServerName,
- IN LPCWSTR lpFileName
- );
- #ifdef UNICODE
- #define OpenBackupEventLog OpenBackupEventLogW
- #else
- #define OpenBackupEventLog OpenBackupEventLogA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- ReadEventLogA (
- IN HANDLE hEventLog,
- IN DWORD dwReadFlags,
- IN DWORD dwRecordOffset,
- OUT LPVOID lpBuffer,
- IN DWORD nNumberOfBytesToRead,
- OUT DWORD *pnBytesRead,
- OUT DWORD *pnMinNumberOfBytesNeeded
- );
- WINADVAPI
- BOOL
- WINAPI
- ReadEventLogW (
- IN HANDLE hEventLog,
- IN DWORD dwReadFlags,
- IN DWORD dwRecordOffset,
- OUT LPVOID lpBuffer,
- IN DWORD nNumberOfBytesToRead,
- OUT DWORD *pnBytesRead,
- OUT DWORD *pnMinNumberOfBytesNeeded
- );
- #ifdef UNICODE
- #define ReadEventLog ReadEventLogW
- #else
- #define ReadEventLog ReadEventLogA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- ReportEventA (
- IN HANDLE hEventLog,
- IN WORD wType,
- IN WORD wCategory,
- IN DWORD dwEventID,
- IN PSID lpUserSid,
- IN WORD wNumStrings,
- IN DWORD dwDataSize,
- IN LPCSTR *lpStrings,
- IN LPVOID lpRawData
- );
- WINADVAPI
- BOOL
- WINAPI
- ReportEventW (
- IN HANDLE hEventLog,
- IN WORD wType,
- IN WORD wCategory,
- IN DWORD dwEventID,
- IN PSID lpUserSid,
- IN WORD wNumStrings,
- IN DWORD dwDataSize,
- IN LPCWSTR *lpStrings,
- IN LPVOID lpRawData
- );
- #ifdef UNICODE
- #define ReportEvent ReportEventW
- #else
- #define ReportEvent ReportEventA
- #endif // !UNICODE
- #define EVENTLOG_FULL_INFO 0
- typedef struct _EVENTLOG_FULL_INFORMATION
- {
- DWORD dwFull;
- }
- EVENTLOG_FULL_INFORMATION, *LPEVENTLOG_FULL_INFORMATION;
- WINADVAPI
- BOOL
- WINAPI
- GetEventLogInformation (
- IN HANDLE hEventLog,
- IN DWORD dwInfoLevel,
- OUT LPVOID lpBuffer,
- IN DWORD cbBufSize,
- OUT LPDWORD pcbBytesNeeded
- );
- //
- //
- // Security APIs
- //
- WINADVAPI
- BOOL
- WINAPI
- DuplicateToken(
- IN HANDLE ExistingTokenHandle,
- IN SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,
- OUT PHANDLE DuplicateTokenHandle
- );
- WINADVAPI
- BOOL
- WINAPI
- GetKernelObjectSecurity (
- IN HANDLE Handle,
- IN SECURITY_INFORMATION RequestedInformation,
- OUT PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN DWORD nLength,
- OUT LPDWORD lpnLengthNeeded
- );
- WINADVAPI
- BOOL
- WINAPI
- ImpersonateNamedPipeClient(
- IN HANDLE hNamedPipe
- );
- WINADVAPI
- BOOL
- WINAPI
- ImpersonateSelf(
- IN SECURITY_IMPERSONATION_LEVEL ImpersonationLevel
- );
- WINADVAPI
- BOOL
- WINAPI
- RevertToSelf (
- VOID
- );
- WINADVAPI
- BOOL
- APIENTRY
- SetThreadToken (
- IN PHANDLE Thread,
- IN HANDLE Token
- );
- WINADVAPI
- BOOL
- WINAPI
- AccessCheck (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN HANDLE ClientToken,
- IN DWORD DesiredAccess,
- IN PGENERIC_MAPPING GenericMapping,
- OUT PPRIVILEGE_SET PrivilegeSet,
- IN LPDWORD PrivilegeSetLength,
- OUT LPDWORD GrantedAccess,
- OUT LPBOOL AccessStatus
- );
- #if(_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- WINAPI
- AccessCheckByType (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN PSID PrincipalSelfSid,
- IN HANDLE ClientToken,
- IN DWORD DesiredAccess,
- OUT POBJECT_TYPE_LIST ObjectTypeList,
- IN DWORD ObjectTypeListLength,
- OUT PGENERIC_MAPPING GenericMapping,
- OUT PPRIVILEGE_SET PrivilegeSet,
- OUT LPDWORD PrivilegeSetLength,
- OUT LPDWORD GrantedAccess,
- OUT LPBOOL AccessStatus
- );
- WINADVAPI
- BOOL
- WINAPI
- AccessCheckByTypeResultList (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN PSID PrincipalSelfSid,
- IN HANDLE ClientToken,
- IN DWORD DesiredAccess,
- OUT POBJECT_TYPE_LIST ObjectTypeList,
- IN DWORD ObjectTypeListLength,
- OUT PGENERIC_MAPPING GenericMapping,
- OUT PPRIVILEGE_SET PrivilegeSet,
- OUT LPDWORD PrivilegeSetLength,
- OUT LPDWORD GrantedAccessList,
- OUT LPDWORD AccessStatusList
- );
- #endif /* _WIN32_WINNT >= 0x0500 */
- WINADVAPI
- BOOL
- WINAPI
- OpenProcessToken (
- IN HANDLE ProcessHandle,
- IN DWORD DesiredAccess,
- OUT PHANDLE TokenHandle
- );
- WINADVAPI
- BOOL
- WINAPI
- OpenThreadToken (
- IN HANDLE ThreadHandle,
- IN DWORD DesiredAccess,
- IN BOOL OpenAsSelf,
- OUT PHANDLE TokenHandle
- );
- WINADVAPI
- BOOL
- WINAPI
- GetTokenInformation (
- IN HANDLE TokenHandle,
- IN TOKEN_INFORMATION_CLASS TokenInformationClass,
- OUT LPVOID TokenInformation,
- IN DWORD TokenInformationLength,
- OUT PDWORD ReturnLength
- );
- WINADVAPI
- BOOL
- WINAPI
- SetTokenInformation (
- IN HANDLE TokenHandle,
- IN TOKEN_INFORMATION_CLASS TokenInformationClass,
- IN LPVOID TokenInformation,
- IN DWORD TokenInformationLength
- );
- WINADVAPI
- BOOL
- WINAPI
- AdjustTokenPrivileges (
- IN HANDLE TokenHandle,
- IN BOOL DisableAllPrivileges,
- IN PTOKEN_PRIVILEGES NewState,
- IN DWORD BufferLength,
- OUT PTOKEN_PRIVILEGES PreviousState,
- OUT PDWORD ReturnLength
- );
- WINADVAPI
- BOOL
- WINAPI
- AdjustTokenGroups (
- IN HANDLE TokenHandle,
- IN BOOL ResetToDefault,
- IN PTOKEN_GROUPS NewState,
- IN DWORD BufferLength,
- OUT PTOKEN_GROUPS PreviousState,
- OUT PDWORD ReturnLength
- );
- WINADVAPI
- BOOL
- WINAPI
- PrivilegeCheck (
- IN HANDLE ClientToken,
- IN PPRIVILEGE_SET RequiredPrivileges,
- OUT LPBOOL pfResult
- );
- WINADVAPI
- BOOL
- WINAPI
- AccessCheckAndAuditAlarmA (
- IN LPCSTR SubsystemName,
- IN LPVOID HandleId,
- IN LPSTR ObjectTypeName,
- IN LPSTR ObjectName,
- IN PSECURITY_DESCRIPTOR SecurityDescriptor,
- IN DWORD DesiredAccess,
- IN PGENERIC_MAPPING GenericMapping,
- IN BOOL ObjectCreation,
- OUT LPDWORD GrantedAccess,
- OUT LPBOOL AccessStatus,
- OUT LPBOOL pfGenerateOnClose
- );
- WINADVAPI
- BOOL
- WINAPI
- AccessCheckAndAuditAlarmW (
- IN LPCWSTR SubsystemName,
- IN LPVOID HandleId,
- IN LPWSTR ObjectTypeName,
- IN LPWSTR ObjectName,
- IN PSECURITY_DESCRIPTOR SecurityDescriptor,
- IN DWORD DesiredAccess,
- IN PGENERIC_MAPPING GenericMapping,
- IN BOOL ObjectCreation,
- OUT LPDWORD GrantedAccess,
- OUT LPBOOL AccessStatus,
- OUT LPBOOL pfGenerateOnClose
- );
- #ifdef UNICODE
- #define AccessCheckAndAuditAlarm AccessCheckAndAuditAlarmW
- #else
- #define AccessCheckAndAuditAlarm AccessCheckAndAuditAlarmA
- #endif // !UNICODE
- #if(_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- WINAPI
- AccessCheckByTypeAndAuditAlarmA (
- IN LPCSTR SubsystemName,
- IN LPVOID HandleId,
- IN LPCSTR ObjectTypeName,
- IN LPCSTR ObjectName,
- IN PSECURITY_DESCRIPTOR SecurityDescriptor,
- IN PSID PrincipalSelfSid,
- IN DWORD DesiredAccess,
- IN AUDIT_EVENT_TYPE AuditType,
- IN DWORD Flags,
- IN POBJECT_TYPE_LIST ObjectTypeList,
- IN DWORD ObjectTypeListLength,
- IN PGENERIC_MAPPING GenericMapping,
- IN BOOL ObjectCreation,
- OUT LPDWORD GrantedAccess,
- OUT LPBOOL AccessStatus,
- OUT LPBOOL pfGenerateOnClose
- );
- WINADVAPI
- BOOL
- WINAPI
- AccessCheckByTypeAndAuditAlarmW (
- IN LPCWSTR SubsystemName,
- IN LPVOID HandleId,
- IN LPCWSTR ObjectTypeName,
- IN LPCWSTR ObjectName,
- IN PSECURITY_DESCRIPTOR SecurityDescriptor,
- IN PSID PrincipalSelfSid,
- IN DWORD DesiredAccess,
- IN AUDIT_EVENT_TYPE AuditType,
- IN DWORD Flags,
- IN POBJECT_TYPE_LIST ObjectTypeList,
- IN DWORD ObjectTypeListLength,
- IN PGENERIC_MAPPING GenericMapping,
- IN BOOL ObjectCreation,
- OUT LPDWORD GrantedAccess,
- OUT LPBOOL AccessStatus,
- OUT LPBOOL pfGenerateOnClose
- );
- #ifdef UNICODE
- #define AccessCheckByTypeAndAuditAlarm AccessCheckByTypeAndAuditAlarmW
- #else
- #define AccessCheckByTypeAndAuditAlarm AccessCheckByTypeAndAuditAlarmA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- AccessCheckByTypeResultListAndAuditAlarmA (
- IN LPCSTR SubsystemName,
- IN LPVOID HandleId,
- IN LPCSTR ObjectTypeName,
- IN LPCSTR ObjectName,
- IN PSECURITY_DESCRIPTOR SecurityDescriptor,
- IN PSID PrincipalSelfSid,
- IN DWORD DesiredAccess,
- IN AUDIT_EVENT_TYPE AuditType,
- IN DWORD Flags,
- IN POBJECT_TYPE_LIST ObjectTypeList,
- IN DWORD ObjectTypeListLength,
- IN PGENERIC_MAPPING GenericMapping,
- IN BOOL ObjectCreation,
- OUT LPDWORD GrantedAccess,
- OUT LPDWORD AccessStatusList,
- OUT LPBOOL pfGenerateOnClose
- );
- WINADVAPI
- BOOL
- WINAPI
- AccessCheckByTypeResultListAndAuditAlarmW (
- IN LPCWSTR SubsystemName,
- IN LPVOID HandleId,
- IN LPCWSTR ObjectTypeName,
- IN LPCWSTR ObjectName,
- IN PSECURITY_DESCRIPTOR SecurityDescriptor,
- IN PSID PrincipalSelfSid,
- IN DWORD DesiredAccess,
- IN AUDIT_EVENT_TYPE AuditType,
- IN DWORD Flags,
- IN POBJECT_TYPE_LIST ObjectTypeList,
- IN DWORD ObjectTypeListLength,
- IN PGENERIC_MAPPING GenericMapping,
- IN BOOL ObjectCreation,
- OUT LPDWORD GrantedAccess,
- OUT LPDWORD AccessStatusList,
- OUT LPBOOL pfGenerateOnClose
- );
- #ifdef UNICODE
- #define AccessCheckByTypeResultListAndAuditAlarm AccessCheckByTypeResultListAndAuditAlarmW
- #else
- #define AccessCheckByTypeResultListAndAuditAlarm AccessCheckByTypeResultListAndAuditAlarmA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- AccessCheckByTypeResultListAndAuditAlarmByHandleA (
- IN LPCSTR SubsystemName,
- IN LPVOID HandleId,
- IN HANDLE ClientToken,
- IN LPCSTR ObjectTypeName,
- IN LPCSTR ObjectName,
- IN PSECURITY_DESCRIPTOR SecurityDescriptor,
- IN PSID PrincipalSelfSid,
- IN DWORD DesiredAccess,
- IN AUDIT_EVENT_TYPE AuditType,
- IN DWORD Flags,
- IN POBJECT_TYPE_LIST ObjectTypeList,
- IN DWORD ObjectTypeListLength,
- IN PGENERIC_MAPPING GenericMapping,
- IN BOOL ObjectCreation,
- OUT LPDWORD GrantedAccess,
- OUT LPDWORD AccessStatusList,
- OUT LPBOOL pfGenerateOnClose
- );
- WINADVAPI
- BOOL
- WINAPI
- AccessCheckByTypeResultListAndAuditAlarmByHandleW (
- IN LPCWSTR SubsystemName,
- IN LPVOID HandleId,
- IN HANDLE ClientToken,
- IN LPCWSTR ObjectTypeName,
- IN LPCWSTR ObjectName,
- IN PSECURITY_DESCRIPTOR SecurityDescriptor,
- IN PSID PrincipalSelfSid,
- IN DWORD DesiredAccess,
- IN AUDIT_EVENT_TYPE AuditType,
- IN DWORD Flags,
- IN POBJECT_TYPE_LIST ObjectTypeList,
- IN DWORD ObjectTypeListLength,
- IN PGENERIC_MAPPING GenericMapping,
- IN BOOL ObjectCreation,
- OUT LPDWORD GrantedAccess,
- OUT LPDWORD AccessStatusList,
- OUT LPBOOL pfGenerateOnClose
- );
- #ifdef UNICODE
- #define AccessCheckByTypeResultListAndAuditAlarmByHandle AccessCheckByTypeResultListAndAuditAlarmByHandleW
- #else
- #define AccessCheckByTypeResultListAndAuditAlarmByHandle AccessCheckByTypeResultListAndAuditAlarmByHandleA
- #endif // !UNICODE
- #endif //(_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- WINAPI
- ObjectOpenAuditAlarmA (
- IN LPCSTR SubsystemName,
- IN LPVOID HandleId,
- IN LPSTR ObjectTypeName,
- IN LPSTR ObjectName,
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN HANDLE ClientToken,
- IN DWORD DesiredAccess,
- IN DWORD GrantedAccess,
- IN PPRIVILEGE_SET Privileges,
- IN BOOL ObjectCreation,
- IN BOOL AccessGranted,
- OUT LPBOOL GenerateOnClose
- );
- WINADVAPI
- BOOL
- WINAPI
- ObjectOpenAuditAlarmW (
- IN LPCWSTR SubsystemName,
- IN LPVOID HandleId,
- IN LPWSTR ObjectTypeName,
- IN LPWSTR ObjectName,
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN HANDLE ClientToken,
- IN DWORD DesiredAccess,
- IN DWORD GrantedAccess,
- IN PPRIVILEGE_SET Privileges,
- IN BOOL ObjectCreation,
- IN BOOL AccessGranted,
- OUT LPBOOL GenerateOnClose
- );
- #ifdef UNICODE
- #define ObjectOpenAuditAlarm ObjectOpenAuditAlarmW
- #else
- #define ObjectOpenAuditAlarm ObjectOpenAuditAlarmA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- ObjectPrivilegeAuditAlarmA (
- IN LPCSTR SubsystemName,
- IN LPVOID HandleId,
- IN HANDLE ClientToken,
- IN DWORD DesiredAccess,
- IN PPRIVILEGE_SET Privileges,
- IN BOOL AccessGranted
- );
- WINADVAPI
- BOOL
- WINAPI
- ObjectPrivilegeAuditAlarmW (
- IN LPCWSTR SubsystemName,
- IN LPVOID HandleId,
- IN HANDLE ClientToken,
- IN DWORD DesiredAccess,
- IN PPRIVILEGE_SET Privileges,
- IN BOOL AccessGranted
- );
- #ifdef UNICODE
- #define ObjectPrivilegeAuditAlarm ObjectPrivilegeAuditAlarmW
- #else
- #define ObjectPrivilegeAuditAlarm ObjectPrivilegeAuditAlarmA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- ObjectCloseAuditAlarmA (
- IN LPCSTR SubsystemName,
- IN LPVOID HandleId,
- IN BOOL GenerateOnClose
- );
- WINADVAPI
- BOOL
- WINAPI
- ObjectCloseAuditAlarmW (
- IN LPCWSTR SubsystemName,
- IN LPVOID HandleId,
- IN BOOL GenerateOnClose
- );
- #ifdef UNICODE
- #define ObjectCloseAuditAlarm ObjectCloseAuditAlarmW
- #else
- #define ObjectCloseAuditAlarm ObjectCloseAuditAlarmA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- ObjectDeleteAuditAlarmA (
- IN LPCSTR SubsystemName,
- IN LPVOID HandleId,
- IN BOOL GenerateOnClose
- );
- WINADVAPI
- BOOL
- WINAPI
- ObjectDeleteAuditAlarmW (
- IN LPCWSTR SubsystemName,
- IN LPVOID HandleId,
- IN BOOL GenerateOnClose
- );
- #ifdef UNICODE
- #define ObjectDeleteAuditAlarm ObjectDeleteAuditAlarmW
- #else
- #define ObjectDeleteAuditAlarm ObjectDeleteAuditAlarmA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- PrivilegedServiceAuditAlarmA (
- IN LPCSTR SubsystemName,
- IN LPCSTR ServiceName,
- IN HANDLE ClientToken,
- IN PPRIVILEGE_SET Privileges,
- IN BOOL AccessGranted
- );
- WINADVAPI
- BOOL
- WINAPI
- PrivilegedServiceAuditAlarmW (
- IN LPCWSTR SubsystemName,
- IN LPCWSTR ServiceName,
- IN HANDLE ClientToken,
- IN PPRIVILEGE_SET Privileges,
- IN BOOL AccessGranted
- );
- #ifdef UNICODE
- #define PrivilegedServiceAuditAlarm PrivilegedServiceAuditAlarmW
- #else
- #define PrivilegedServiceAuditAlarm PrivilegedServiceAuditAlarmA
- #endif // !UNICODE
- #if(_WIN32_WINNT >= 0x0501)
- typedef enum {
- WinNullSid = 0,
- WinWorldSid = 1,
- WinLocalSid = 2,
- WinCreatorOwnerSid = 3,
- WinCreatorGroupSid = 4,
- WinCreatorOwnerServerSid = 5,
- WinCreatorGroupServerSid = 6,
- WinNtAuthoritySid = 7,
- WinDialupSid = 8,
- WinNetworkSid = 9,
- WinBatchSid = 10,
- WinInteractiveSid = 11,
- WinServiceSid = 12,
- WinAnonymousSid = 13,
- WinProxySid = 14,
- WinEnterpriseControllersSid = 15,
- WinSelfSid = 16,
- WinAuthenticatedUserSid = 17,
- WinRestrictedCodeSid = 18,
- WinTerminalServerSid = 19,
- WinRemoteLogonIdSid = 20,
- WinLogonIdsSid = 21,
- WinLocalSystemSid = 22,
- WinLocalServiceSid = 23,
- WinNetworkServiceSid = 24,
- WinBuiltinDomainSid = 25,
- WinBuiltinAdministratorsSid = 26,
- WinBuiltinUsersSid = 27,
- WinBuiltinGuestsSid = 28,
- WinBuiltinPowerUsersSid = 29,
- WinBuiltinAccountOperatorsSid = 30,
- WinBuiltinSystemOperatorsSid = 31,
- WinBuiltinPrintOperatorsSid = 32,
- WinBuiltinBackupOperatorsSid = 33,
- WinBuiltinReplicatorSid = 34,
- WinBuiltinPreWindows2000CompatibleAccessSid = 35,
- WinBuiltinRemoteDesktopUsersSid = 36,
- WinBuiltinNetworkConfigurationOperatorsSid = 37,
- WinAccountAdministratorSid = 38,
- WinAccountGuestSid = 39,
- WinAccountKrbtgtSid = 40,
- WinAccountDomainAdminsSid = 41,
- WinAccountDomainUsersSid = 42,
- WinAccountDomainGuestsSid = 43,
- WinAccountComputersSid = 44,
- WinAccountControllersSid = 45,
- WinAccountCertAdminsSid = 46,
- WinAccountSchemaAdminsSid = 47,
- WinAccountEnterpriseAdminsSid = 48,
- WinAccountPolicyAdminsSid = 49,
- WinAccountRasAndIasServersSid = 50,
- } WELL_KNOWN_SID_TYPE;
- WINADVAPI
- BOOL
- WINAPI
- IsWellKnownSid (
- IN PSID pSid,
- IN WELL_KNOWN_SID_TYPE WellKnownSidType
- );
- WINADVAPI
- BOOL
- WINAPI
- CreateWellKnownSid(
- IN WELL_KNOWN_SID_TYPE WellKnownSidType,
- IN PSID DomainSid OPTIONAL,
- OUT PSID pSid,
- IN OUT DWORD *cbSid
- );
- WINADVAPI
- BOOL
- WINAPI
- EqualDomainSid(
- IN PSID pSid1,
- IN PSID pSid2,
- OUT BOOL *pfEqual
- );
- WINADVAPI
- BOOL
- WINAPI
- GetWindowsAccountDomainSid(
- IN PSID pSid,
- OUT PSID ppDomainSid OPTIONAL,
- IN OUT DWORD *cbSid
- );
- #endif //(_WIN32_WINNT >= 0x0501)
- WINADVAPI
- BOOL
- WINAPI
- IsValidSid (
- IN PSID pSid
- );
- WINADVAPI
- BOOL
- WINAPI
- EqualSid (
- IN PSID pSid1,
- IN PSID pSid2
- );
- WINADVAPI
- BOOL
- WINAPI
- EqualPrefixSid (
- PSID pSid1,
- PSID pSid2
- );
- WINADVAPI
- DWORD
- WINAPI
- GetSidLengthRequired (
- IN UCHAR nSubAuthorityCount
- );
- WINADVAPI
- BOOL
- WINAPI
- AllocateAndInitializeSid (
- IN PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
- IN BYTE nSubAuthorityCount,
- IN DWORD nSubAuthority0,
- IN DWORD nSubAuthority1,
- IN DWORD nSubAuthority2,
- IN DWORD nSubAuthority3,
- IN DWORD nSubAuthority4,
- IN DWORD nSubAuthority5,
- IN DWORD nSubAuthority6,
- IN DWORD nSubAuthority7,
- OUT PSID *pSid
- );
- WINADVAPI
- PVOID
- WINAPI
- FreeSid(
- IN PSID pSid
- );
- WINADVAPI
- BOOL
- WINAPI
- InitializeSid (
- OUT PSID Sid,
- IN PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
- IN BYTE nSubAuthorityCount
- );
- WINADVAPI
- PSID_IDENTIFIER_AUTHORITY
- WINAPI
- GetSidIdentifierAuthority (
- IN PSID pSid
- );
- WINADVAPI
- PDWORD
- WINAPI
- GetSidSubAuthority (
- IN PSID pSid,
- IN DWORD nSubAuthority
- );
- WINADVAPI
- PUCHAR
- WINAPI
- GetSidSubAuthorityCount (
- IN PSID pSid
- );
- WINADVAPI
- DWORD
- WINAPI
- GetLengthSid (
- IN PSID pSid
- );
- WINADVAPI
- BOOL
- WINAPI
- CopySid (
- IN DWORD nDestinationSidLength,
- OUT PSID pDestinationSid,
- IN PSID pSourceSid
- );
- WINADVAPI
- BOOL
- WINAPI
- AreAllAccessesGranted (
- IN DWORD GrantedAccess,
- IN DWORD DesiredAccess
- );
- WINADVAPI
- BOOL
- WINAPI
- AreAnyAccessesGranted (
- IN DWORD GrantedAccess,
- IN DWORD DesiredAccess
- );
- WINADVAPI
- VOID
- WINAPI
- MapGenericMask (
- OUT PDWORD AccessMask,
- IN PGENERIC_MAPPING GenericMapping
- );
- WINADVAPI
- BOOL
- WINAPI
- IsValidAcl (
- IN PACL pAcl
- );
- WINADVAPI
- BOOL
- WINAPI
- InitializeAcl (
- OUT PACL pAcl,
- IN DWORD nAclLength,
- IN DWORD dwAclRevision
- );
- WINADVAPI
- BOOL
- WINAPI
- GetAclInformation (
- IN PACL pAcl,
- OUT LPVOID pAclInformation,
- IN DWORD nAclInformationLength,
- IN ACL_INFORMATION_CLASS dwAclInformationClass
- );
- WINADVAPI
- BOOL
- WINAPI
- SetAclInformation (
- IN PACL pAcl,
- IN LPVOID pAclInformation,
- IN DWORD nAclInformationLength,
- IN ACL_INFORMATION_CLASS dwAclInformationClass
- );
- WINADVAPI
- BOOL
- WINAPI
- AddAce (
- IN OUT PACL pAcl,
- IN DWORD dwAceRevision,
- IN DWORD dwStartingAceIndex,
- IN LPVOID pAceList,
- IN DWORD nAceListLength
- );
- WINADVAPI
- BOOL
- WINAPI
- DeleteAce (
- IN OUT PACL pAcl,
- IN DWORD dwAceIndex
- );
- WINADVAPI
- BOOL
- WINAPI
- GetAce (
- IN PACL pAcl,
- IN DWORD dwAceIndex,
- OUT LPVOID *pAce
- );
- WINADVAPI
- BOOL
- WINAPI
- AddAccessAllowedAce (
- IN OUT PACL pAcl,
- IN DWORD dwAceRevision,
- IN DWORD AccessMask,
- IN PSID pSid
- );
- #if(_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- WINAPI
- AddAccessAllowedAceEx (
- IN OUT PACL pAcl,
- IN DWORD dwAceRevision,
- IN DWORD AceFlags,
- IN DWORD AccessMask,
- IN PSID pSid
- );
- #endif /* _WIN32_WINNT >= 0x0500 */
- WINADVAPI
- BOOL
- WINAPI
- AddAccessDeniedAce (
- IN OUT PACL pAcl,
- IN DWORD dwAceRevision,
- IN DWORD AccessMask,
- IN PSID pSid
- );
- #if(_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- WINAPI
- AddAccessDeniedAceEx (
- IN OUT PACL pAcl,
- IN DWORD dwAceRevision,
- IN DWORD AceFlags,
- IN DWORD AccessMask,
- IN PSID pSid
- );
- #endif /* _WIN32_WINNT >= 0x0500 */
- WINADVAPI
- BOOL
- WINAPI
- AddAuditAccessAce(
- IN OUT PACL pAcl,
- IN DWORD dwAceRevision,
- IN DWORD dwAccessMask,
- IN PSID pSid,
- IN BOOL bAuditSuccess,
- IN BOOL bAuditFailure
- );
- #if(_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- WINAPI
- AddAuditAccessAceEx(
- IN OUT PACL pAcl,
- IN DWORD dwAceRevision,
- IN DWORD AceFlags,
- IN DWORD dwAccessMask,
- IN PSID pSid,
- IN BOOL bAuditSuccess,
- IN BOOL bAuditFailure
- );
- WINADVAPI
- BOOL
- WINAPI
- AddAccessAllowedObjectAce (
- IN OUT PACL pAcl,
- IN DWORD dwAceRevision,
- IN DWORD AceFlags,
- IN DWORD AccessMask,
- IN GUID *ObjectTypeGuid,
- IN GUID *InheritedObjectTypeGuid,
- IN PSID pSid
- );
- WINADVAPI
- BOOL
- WINAPI
- AddAccessDeniedObjectAce (
- IN OUT PACL pAcl,
- IN DWORD dwAceRevision,
- IN DWORD AceFlags,
- IN DWORD AccessMask,
- IN GUID *ObjectTypeGuid,
- IN GUID *InheritedObjectTypeGuid,
- IN PSID pSid
- );
- WINADVAPI
- BOOL
- WINAPI
- AddAuditAccessObjectAce (
- IN OUT PACL pAcl,
- IN DWORD dwAceRevision,
- IN DWORD AceFlags,
- IN DWORD AccessMask,
- IN GUID *ObjectTypeGuid,
- IN GUID *InheritedObjectTypeGuid,
- IN PSID pSid,
- IN BOOL bAuditSuccess,
- IN BOOL bAuditFailure
- );
- #endif /* _WIN32_WINNT >= 0x0500 */
- WINADVAPI
- BOOL
- WINAPI
- FindFirstFreeAce (
- IN PACL pAcl,
- OUT LPVOID *pAce
- );
- WINADVAPI
- BOOL
- WINAPI
- InitializeSecurityDescriptor (
- OUT PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN DWORD dwRevision
- );
- WINADVAPI
- BOOL
- WINAPI
- IsValidSecurityDescriptor (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor
- );
- WINADVAPI
- DWORD
- WINAPI
- GetSecurityDescriptorLength (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor
- );
- WINADVAPI
- BOOL
- WINAPI
- GetSecurityDescriptorControl (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- OUT PSECURITY_DESCRIPTOR_CONTROL pControl,
- OUT LPDWORD lpdwRevision
- );
- #if(_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- WINAPI
- SetSecurityDescriptorControl (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest,
- IN SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet
- );
- #endif /* _WIN32_WINNT >= 0x0500 */
- WINADVAPI
- BOOL
- WINAPI
- SetSecurityDescriptorDacl (
- IN OUT PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN BOOL bDaclPresent,
- IN PACL pDacl,
- IN BOOL bDaclDefaulted
- );
- WINADVAPI
- BOOL
- WINAPI
- GetSecurityDescriptorDacl (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- OUT LPBOOL lpbDaclPresent,
- OUT PACL *pDacl,
- OUT LPBOOL lpbDaclDefaulted
- );
- WINADVAPI
- BOOL
- WINAPI
- SetSecurityDescriptorSacl (
- IN OUT PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN BOOL bSaclPresent,
- IN PACL pSacl,
- IN BOOL bSaclDefaulted
- );
- WINADVAPI
- BOOL
- WINAPI
- GetSecurityDescriptorSacl (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- OUT LPBOOL lpbSaclPresent,
- OUT PACL *pSacl,
- OUT LPBOOL lpbSaclDefaulted
- );
- WINADVAPI
- BOOL
- WINAPI
- SetSecurityDescriptorOwner (
- IN OUT PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN PSID pOwner,
- IN BOOL bOwnerDefaulted
- );
- WINADVAPI
- BOOL
- WINAPI
- GetSecurityDescriptorOwner (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- OUT PSID *pOwner,
- OUT LPBOOL lpbOwnerDefaulted
- );
- WINADVAPI
- BOOL
- WINAPI
- SetSecurityDescriptorGroup (
- IN OUT PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN PSID pGroup,
- IN BOOL bGroupDefaulted
- );
- WINADVAPI
- BOOL
- WINAPI
- GetSecurityDescriptorGroup (
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
- OUT PSID *pGroup,
- OUT LPBOOL lpbGroupDefaulted
- );
- WINADVAPI
- DWORD
- WINAPI
- SetSecurityDescriptorRMControl(
- IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
- IN PUCHAR RMControl OPTIONAL
- );
- WINADVAPI
- DWORD
- WINAPI
- GetSecurityDescriptorRMControl(
- IN PSECURITY_DESCRIPTOR SecurityDescriptor,
- OUT PUCHAR RMControl
- );
- WINADVAPI
- BOOL
- WINAPI
- CreatePrivateObjectSecurity (
- IN PSECURITY_DESCRIPTOR ParentDescriptor,
- IN PSECURITY_DESCRIPTOR CreatorDescriptor,
- OUT PSECURITY_DESCRIPTOR * NewDescriptor,
- IN BOOL IsDirectoryObject,
- IN HANDLE Token,
- IN PGENERIC_MAPPING GenericMapping
- );
- #if(_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- WINAPI
- ConvertToAutoInheritPrivateObjectSecurity(
- IN PSECURITY_DESCRIPTOR ParentDescriptor,
- IN PSECURITY_DESCRIPTOR CurrentSecurityDescriptor,
- OUT PSECURITY_DESCRIPTOR *NewSecurityDescriptor,
- IN GUID *ObjectType,
- IN BOOLEAN IsDirectoryObject,
- IN PGENERIC_MAPPING GenericMapping
- );
- WINADVAPI
- BOOL
- WINAPI
- CreatePrivateObjectSecurityEx (
- IN PSECURITY_DESCRIPTOR ParentDescriptor,
- IN PSECURITY_DESCRIPTOR CreatorDescriptor,
- OUT PSECURITY_DESCRIPTOR * NewDescriptor,
- IN GUID *ObjectType OPTIONAL,
- IN BOOL IsContainerObject,
- IN ULONG AutoInheritFlags,
- IN HANDLE Token,
- IN PGENERIC_MAPPING GenericMapping
- );
- WINADVAPI
- BOOL
- WINAPI
- CreatePrivateObjectSecurityWithMultipleInheritance (
- IN PSECURITY_DESCRIPTOR ParentDescriptor,
- IN PSECURITY_DESCRIPTOR CreatorDescriptor,
- OUT PSECURITY_DESCRIPTOR * NewDescriptor,
- IN GUID **ObjectTypes OPTIONAL,
- IN ULONG GuidCount,
- IN BOOL IsContainerObject,
- IN ULONG AutoInheritFlags,
- IN HANDLE Token,
- IN PGENERIC_MAPPING GenericMapping
- );
- #endif /* _WIN32_WINNT >= 0x0500 */
- WINADVAPI
- BOOL
- WINAPI
- SetPrivateObjectSecurity (
- IN SECURITY_INFORMATION SecurityInformation,
- IN PSECURITY_DESCRIPTOR ModificationDescriptor,
- OUT PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor,
- IN PGENERIC_MAPPING GenericMapping,
- IN HANDLE Token
- );
- #if(_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- WINAPI
- SetPrivateObjectSecurityEx (
- IN SECURITY_INFORMATION SecurityInformation,
- IN PSECURITY_DESCRIPTOR ModificationDescriptor,
- OUT PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor,
- IN ULONG AutoInheritFlags,
- IN PGENERIC_MAPPING GenericMapping,
- IN HANDLE Token OPTIONAL
- );
- #endif /* _WIN32_WINNT >= 0x0500 */
- WINADVAPI
- BOOL
- WINAPI
- GetPrivateObjectSecurity (
- IN PSECURITY_DESCRIPTOR ObjectDescriptor,
- IN SECURITY_INFORMATION SecurityInformation,
- OUT PSECURITY_DESCRIPTOR ResultantDescriptor,
- IN DWORD DescriptorLength,
- OUT PDWORD ReturnLength
- );
- WINADVAPI
- BOOL
- WINAPI
- DestroyPrivateObjectSecurity (
- IN OUT PSECURITY_DESCRIPTOR * ObjectDescriptor
- );
- WINADVAPI
- BOOL
- WINAPI
- MakeSelfRelativeSD (
- IN PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
- OUT PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
- OUT LPDWORD lpdwBufferLength
- );
- WINADVAPI
- BOOL
- WINAPI
- MakeAbsoluteSD (
- IN PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
- OUT PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
- OUT LPDWORD lpdwAbsoluteSecurityDescriptorSize,
- OUT PACL pDacl,
- OUT LPDWORD lpdwDaclSize,
- OUT PACL pSacl,
- OUT LPDWORD lpdwSaclSize,
- OUT PSID pOwner,
- OUT LPDWORD lpdwOwnerSize,
- OUT PSID pPrimaryGroup,
- OUT LPDWORD lpdwPrimaryGroupSize
- );
- WINADVAPI
- BOOL
- WINAPI
- MakeAbsoluteSD2 (
- IN PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
- OUT LPDWORD lpdwBufferSize
- );
- WINADVAPI
- BOOL
- WINAPI
- SetFileSecurityA (
- IN LPCSTR lpFileName,
- IN SECURITY_INFORMATION SecurityInformation,
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor
- );
- WINADVAPI
- BOOL
- WINAPI
- SetFileSecurityW (
- IN LPCWSTR lpFileName,
- IN SECURITY_INFORMATION SecurityInformation,
- IN PSECURITY_DESCRIPTOR pSecurityDescriptor
- );
- #ifdef UNICODE
- #define SetFileSecurity SetFileSecurityW
- #else
- #define SetFileSecurity SetFileSecurityA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- GetFileSecurityA (
- IN LPCSTR lpFileName,
- IN SECURITY_INFORMATION RequestedInformation,
- OUT PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN DWORD nLength,
- OUT LPDWORD lpnLengthNeeded
- );
- WINADVAPI
- BOOL
- WINAPI
- GetFileSecurityW (
- IN LPCWSTR lpFileName,
- IN SECURITY_INFORMATION RequestedInformation,
- OUT PSECURITY_DESCRIPTOR pSecurityDescriptor,
- IN DWORD nLength,
- OUT LPDWORD lpnLengthNeeded
- );
- #ifdef UNICODE
- #define GetFileSecurity GetFileSecurityW
- #else
- #define GetFileSecurity GetFileSecurityA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- SetKernelObjectSecurity (
- IN HANDLE Handle,
- IN SECURITY_INFORMATION SecurityInformation,
- IN PSECURITY_DESCRIPTOR SecurityDescriptor
- );
- WINBASEAPI
- HANDLE
- WINAPI
- FindFirstChangeNotificationA(
- IN LPCSTR lpPathName,
- IN BOOL bWatchSubtree,
- IN DWORD dwNotifyFilter
- );
- WINBASEAPI
- HANDLE
- WINAPI
- FindFirstChangeNotificationW(
- IN LPCWSTR lpPathName,
- IN BOOL bWatchSubtree,
- IN DWORD dwNotifyFilter
- );
- #ifdef UNICODE
- #define FindFirstChangeNotification FindFirstChangeNotificationW
- #else
- #define FindFirstChangeNotification FindFirstChangeNotificationA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- FindNextChangeNotification(
- IN HANDLE hChangeHandle
- );
- WINBASEAPI
- BOOL
- WINAPI
- FindCloseChangeNotification(
- IN HANDLE hChangeHandle
- );
- #if(_WIN32_WINNT >= 0x0400)
- WINBASEAPI
- BOOL
- WINAPI
- ReadDirectoryChangesW(
- IN HANDLE hDirectory,
- IN OUT LPVOID lpBuffer,
- IN DWORD nBufferLength,
- IN BOOL bWatchSubtree,
- IN DWORD dwNotifyFilter,
- OUT LPDWORD lpBytesReturned,
- IN LPOVERLAPPED lpOverlapped,
- IN LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
- );
- #endif /* _WIN32_WINNT >= 0x0400 */
- WINBASEAPI
- BOOL
- WINAPI
- VirtualLock(
- IN LPVOID lpAddress,
- IN SIZE_T dwSize
- );
- WINBASEAPI
- BOOL
- WINAPI
- VirtualUnlock(
- IN LPVOID lpAddress,
- IN SIZE_T dwSize
- );
- WINBASEAPI
- LPVOID
- WINAPI
- MapViewOfFileEx(
- IN HANDLE hFileMappingObject,
- IN DWORD dwDesiredAccess,
- IN DWORD dwFileOffsetHigh,
- IN DWORD dwFileOffsetLow,
- IN SIZE_T dwNumberOfBytesToMap,
- IN LPVOID lpBaseAddress
- );
- WINBASEAPI
- BOOL
- WINAPI
- SetPriorityClass(
- IN HANDLE hProcess,
- IN DWORD dwPriorityClass
- );
- WINBASEAPI
- DWORD
- WINAPI
- GetPriorityClass(
- IN HANDLE hProcess
- );
- WINBASEAPI
- BOOL
- WINAPI
- IsBadReadPtr(
- IN CONST VOID *lp,
- IN UINT_PTR ucb
- );
- WINBASEAPI
- BOOL
- WINAPI
- IsBadWritePtr(
- IN LPVOID lp,
- IN UINT_PTR ucb
- );
- WINBASEAPI
- BOOL
- WINAPI
- IsBadHugeReadPtr(
- IN CONST VOID *lp,
- IN UINT_PTR ucb
- );
- WINBASEAPI
- BOOL
- WINAPI
- IsBadHugeWritePtr(
- IN LPVOID lp,
- IN UINT_PTR ucb
- );
- WINBASEAPI
- BOOL
- WINAPI
- IsBadCodePtr(
- IN FARPROC lpfn
- );
- WINBASEAPI
- BOOL
- WINAPI
- IsBadStringPtrA(
- IN LPCSTR lpsz,
- IN UINT_PTR ucchMax
- );
- WINBASEAPI
- BOOL
- WINAPI
- IsBadStringPtrW(
- IN LPCWSTR lpsz,
- IN UINT_PTR ucchMax
- );
- #ifdef UNICODE
- #define IsBadStringPtr IsBadStringPtrW
- #else
- #define IsBadStringPtr IsBadStringPtrA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- LookupAccountSidA(
- IN LPCSTR lpSystemName,
- IN PSID Sid,
- OUT LPSTR Name,
- IN OUT LPDWORD cbName,
- OUT LPSTR ReferencedDomainName,
- IN OUT LPDWORD cbReferencedDomainName,
- OUT PSID_NAME_USE peUse
- );
- WINADVAPI
- BOOL
- WINAPI
- LookupAccountSidW(
- IN LPCWSTR lpSystemName,
- IN PSID Sid,
- OUT LPWSTR Name,
- IN OUT LPDWORD cbName,
- OUT LPWSTR ReferencedDomainName,
- IN OUT LPDWORD cbReferencedDomainName,
- OUT PSID_NAME_USE peUse
- );
- #ifdef UNICODE
- #define LookupAccountSid LookupAccountSidW
- #else
- #define LookupAccountSid LookupAccountSidA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- LookupAccountNameA(
- IN LPCSTR lpSystemName,
- IN LPCSTR lpAccountName,
- OUT PSID Sid,
- IN OUT LPDWORD cbSid,
- OUT LPSTR ReferencedDomainName,
- IN OUT LPDWORD cbReferencedDomainName,
- OUT PSID_NAME_USE peUse
- );
- WINADVAPI
- BOOL
- WINAPI
- LookupAccountNameW(
- IN LPCWSTR lpSystemName,
- IN LPCWSTR lpAccountName,
- OUT PSID Sid,
- IN OUT LPDWORD cbSid,
- OUT LPWSTR ReferencedDomainName,
- IN OUT LPDWORD cbReferencedDomainName,
- OUT PSID_NAME_USE peUse
- );
- #ifdef UNICODE
- #define LookupAccountName LookupAccountNameW
- #else
- #define LookupAccountName LookupAccountNameA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- LookupPrivilegeValueA(
- IN LPCSTR lpSystemName,
- IN LPCSTR lpName,
- OUT PLUID lpLuid
- );
- WINADVAPI
- BOOL
- WINAPI
- LookupPrivilegeValueW(
- IN LPCWSTR lpSystemName,
- IN LPCWSTR lpName,
- OUT PLUID lpLuid
- );
- #ifdef UNICODE
- #define LookupPrivilegeValue LookupPrivilegeValueW
- #else
- #define LookupPrivilegeValue LookupPrivilegeValueA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- LookupPrivilegeNameA(
- IN LPCSTR lpSystemName,
- IN PLUID lpLuid,
- OUT LPSTR lpName,
- IN OUT LPDWORD cbName
- );
- WINADVAPI
- BOOL
- WINAPI
- LookupPrivilegeNameW(
- IN LPCWSTR lpSystemName,
- IN PLUID lpLuid,
- OUT LPWSTR lpName,
- IN OUT LPDWORD cbName
- );
- #ifdef UNICODE
- #define LookupPrivilegeName LookupPrivilegeNameW
- #else
- #define LookupPrivilegeName LookupPrivilegeNameA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- LookupPrivilegeDisplayNameA(
- IN LPCSTR lpSystemName,
- IN LPCSTR lpName,
- OUT LPSTR lpDisplayName,
- IN OUT LPDWORD cbDisplayName,
- OUT LPDWORD lpLanguageId
- );
- WINADVAPI
- BOOL
- WINAPI
- LookupPrivilegeDisplayNameW(
- IN LPCWSTR lpSystemName,
- IN LPCWSTR lpName,
- OUT LPWSTR lpDisplayName,
- IN OUT LPDWORD cbDisplayName,
- OUT LPDWORD lpLanguageId
- );
- #ifdef UNICODE
- #define LookupPrivilegeDisplayName LookupPrivilegeDisplayNameW
- #else
- #define LookupPrivilegeDisplayName LookupPrivilegeDisplayNameA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- AllocateLocallyUniqueId(
- OUT PLUID Luid
- );
- WINBASEAPI
- BOOL
- WINAPI
- BuildCommDCBA(
- IN LPCSTR lpDef,
- OUT LPDCB lpDCB
- );
- WINBASEAPI
- BOOL
- WINAPI
- BuildCommDCBW(
- IN LPCWSTR lpDef,
- OUT LPDCB lpDCB
- );
- #ifdef UNICODE
- #define BuildCommDCB BuildCommDCBW
- #else
- #define BuildCommDCB BuildCommDCBA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- BuildCommDCBAndTimeoutsA(
- IN LPCSTR lpDef,
- OUT LPDCB lpDCB,
- IN LPCOMMTIMEOUTS lpCommTimeouts
- );
- WINBASEAPI
- BOOL
- WINAPI
- BuildCommDCBAndTimeoutsW(
- IN LPCWSTR lpDef,
- OUT LPDCB lpDCB,
- IN LPCOMMTIMEOUTS lpCommTimeouts
- );
- #ifdef UNICODE
- #define BuildCommDCBAndTimeouts BuildCommDCBAndTimeoutsW
- #else
- #define BuildCommDCBAndTimeouts BuildCommDCBAndTimeoutsA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- CommConfigDialogA(
- IN LPCSTR lpszName,
- IN HWND hWnd,
- IN OUT LPCOMMCONFIG lpCC
- );
- WINBASEAPI
- BOOL
- WINAPI
- CommConfigDialogW(
- IN LPCWSTR lpszName,
- IN HWND hWnd,
- IN OUT LPCOMMCONFIG lpCC
- );
- #ifdef UNICODE
- #define CommConfigDialog CommConfigDialogW
- #else
- #define CommConfigDialog CommConfigDialogA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- GetDefaultCommConfigA(
- IN LPCSTR lpszName,
- OUT LPCOMMCONFIG lpCC,
- IN OUT LPDWORD lpdwSize
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetDefaultCommConfigW(
- IN LPCWSTR lpszName,
- OUT LPCOMMCONFIG lpCC,
- IN OUT LPDWORD lpdwSize
- );
- #ifdef UNICODE
- #define GetDefaultCommConfig GetDefaultCommConfigW
- #else
- #define GetDefaultCommConfig GetDefaultCommConfigA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- SetDefaultCommConfigA(
- IN LPCSTR lpszName,
- IN LPCOMMCONFIG lpCC,
- IN DWORD dwSize
- );
- WINBASEAPI
- BOOL
- WINAPI
- SetDefaultCommConfigW(
- IN LPCWSTR lpszName,
- IN LPCOMMCONFIG lpCC,
- IN DWORD dwSize
- );
- #ifdef UNICODE
- #define SetDefaultCommConfig SetDefaultCommConfigW
- #else
- #define SetDefaultCommConfig SetDefaultCommConfigA
- #endif // !UNICODE
- #ifndef _MAC
- #define MAX_COMPUTERNAME_LENGTH 15
- #else
- #define MAX_COMPUTERNAME_LENGTH 31
- #endif
- WINBASEAPI
- BOOL
- WINAPI
- GetComputerNameA (
- OUT LPSTR lpBuffer,
- IN OUT LPDWORD nSize
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetComputerNameW (
- OUT LPWSTR lpBuffer,
- IN OUT LPDWORD nSize
- );
- #ifdef UNICODE
- #define GetComputerName GetComputerNameW
- #else
- #define GetComputerName GetComputerNameA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- SetComputerNameA (
- IN LPCSTR lpComputerName
- );
- WINBASEAPI
- BOOL
- WINAPI
- SetComputerNameW (
- IN LPCWSTR lpComputerName
- );
- #ifdef UNICODE
- #define SetComputerName SetComputerNameW
- #else
- #define SetComputerName SetComputerNameA
- #endif // !UNICODE
- #if (_WIN32_WINNT >= 0x0500)
- typedef enum _COMPUTER_NAME_FORMAT {
- ComputerNameNetBIOS,
- ComputerNameDnsHostname,
- ComputerNameDnsDomain,
- ComputerNameDnsFullyQualified,
- ComputerNamePhysicalNetBIOS,
- ComputerNamePhysicalDnsHostname,
- ComputerNamePhysicalDnsDomain,
- ComputerNamePhysicalDnsFullyQualified,
- ComputerNameMax
- } COMPUTER_NAME_FORMAT ;
- WINBASEAPI
- BOOL
- WINAPI
- GetComputerNameExA (
- IN COMPUTER_NAME_FORMAT NameType,
- OUT LPSTR lpBuffer,
- IN OUT LPDWORD nSize
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetComputerNameExW (
- IN COMPUTER_NAME_FORMAT NameType,
- OUT LPWSTR lpBuffer,
- IN OUT LPDWORD nSize
- );
- #ifdef UNICODE
- #define GetComputerNameEx GetComputerNameExW
- #else
- #define GetComputerNameEx GetComputerNameExA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- SetComputerNameExA (
- IN COMPUTER_NAME_FORMAT NameType,
- IN LPCSTR lpBuffer
- );
- WINBASEAPI
- BOOL
- WINAPI
- SetComputerNameExW (
- IN COMPUTER_NAME_FORMAT NameType,
- IN LPCWSTR lpBuffer
- );
- #ifdef UNICODE
- #define SetComputerNameEx SetComputerNameExW
- #else
- #define SetComputerNameEx SetComputerNameExA
- #endif // !UNICODE
-
- WINBASEAPI
- DWORD
- WINAPI
- AddLocalAlternateComputerNameA (
- IN LPCSTR lpDnsFQHostname,
- IN ULONG ulFlags
- );
- WINBASEAPI
- DWORD
- WINAPI
- AddLocalAlternateComputerNameW (
- IN LPCWSTR lpDnsFQHostname,
- IN ULONG ulFlags
- );
- #ifdef UNICODE
- #define AddLocalAlternateComputerName AddLocalAlternateComputerNameW
- #else
- #define AddLocalAlternateComputerName AddLocalAlternateComputerNameA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- RemoveLocalAlternateComputerNameA (
- IN LPCSTR lpAltDnsFQHostname,
- IN ULONG ulFlags
- );
- WINBASEAPI
- DWORD
- WINAPI
- RemoveLocalAlternateComputerNameW (
- IN LPCWSTR lpAltDnsFQHostname,
- IN ULONG ulFlags
- );
- #ifdef UNICODE
- #define RemoveLocalAlternateComputerName RemoveLocalAlternateComputerNameW
- #else
- #define RemoveLocalAlternateComputerName RemoveLocalAlternateComputerNameA
- #endif // !UNICODE
- WINBASEAPI
- DWORD
- WINAPI
- SetLocalPrimaryComputerNameA (
- IN LPCSTR lpAltDnsFQHostname,
- IN ULONG ulFlags
- );
- WINBASEAPI
- DWORD
- WINAPI
- SetLocalPrimaryComputerNameW (
- IN LPCWSTR lpAltDnsFQHostname,
- IN ULONG ulFlags
- );
- #ifdef UNICODE
- #define SetLocalPrimaryComputerName SetLocalPrimaryComputerNameW
- #else
- #define SetLocalPrimaryComputerName SetLocalPrimaryComputerNameA
- #endif // !UNICODE
- typedef enum _COMPUTER_NAME_TYPE {
- PrimaryComputerName,
- AlternateComputerNames,
- AllComputerNames,
- ComputerNameTypeMax
- } COMPUTER_NAME_TYPE ;
- WINBASEAPI
- DWORD
- WINAPI
- EnumerateLocalComputerNamesA (
- IN COMPUTER_NAME_TYPE NameType,
- IN ULONG ulFlags,
- IN OUT LPSTR lpDnsFQHostname,
- IN OUT LPDWORD nSize
- );
- WINBASEAPI
- DWORD
- WINAPI
- EnumerateLocalComputerNamesW (
- IN COMPUTER_NAME_TYPE NameType,
- IN ULONG ulFlags,
- IN OUT LPWSTR lpDnsFQHostname,
- IN OUT LPDWORD nSize
- );
- #ifdef UNICODE
- #define EnumerateLocalComputerNames EnumerateLocalComputerNamesW
- #else
- #define EnumerateLocalComputerNames EnumerateLocalComputerNamesA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- DnsHostnameToComputerNameA (
- IN LPCSTR Hostname,
- OUT LPSTR ComputerName,
- IN OUT LPDWORD nSize
- );
- WINBASEAPI
- BOOL
- WINAPI
- DnsHostnameToComputerNameW (
- IN LPCWSTR Hostname,
- OUT LPWSTR ComputerName,
- IN OUT LPDWORD nSize
- );
- #ifdef UNICODE
- #define DnsHostnameToComputerName DnsHostnameToComputerNameW
- #else
- #define DnsHostnameToComputerName DnsHostnameToComputerNameA
- #endif // !UNICODE
- #endif // _WIN32_WINNT
- WINADVAPI
- BOOL
- WINAPI
- GetUserNameA (
- OUT LPSTR lpBuffer,
- IN OUT LPDWORD nSize
- );
- WINADVAPI
- BOOL
- WINAPI
- GetUserNameW (
- OUT LPWSTR lpBuffer,
- IN OUT LPDWORD nSize
- );
- #ifdef UNICODE
- #define GetUserName GetUserNameW
- #else
- #define GetUserName GetUserNameA
- #endif // !UNICODE
- //
- // Logon Support APIs
- //
- #define LOGON32_LOGON_INTERACTIVE 2
- #define LOGON32_LOGON_NETWORK 3
- #define LOGON32_LOGON_BATCH 4
- #define LOGON32_LOGON_SERVICE 5
- #define LOGON32_LOGON_UNLOCK 7
- #if(_WIN32_WINNT >= 0x0500)
- #define LOGON32_LOGON_NETWORK_CLEARTEXT 8
- #define LOGON32_LOGON_NEW_CREDENTIALS 9
- #endif // (_WIN32_WINNT >= 0x0500)
- #define LOGON32_PROVIDER_DEFAULT 0
- #define LOGON32_PROVIDER_WINNT35 1
- #if(_WIN32_WINNT >= 0x0400)
- #define LOGON32_PROVIDER_WINNT40 2
- #endif /* _WIN32_WINNT >= 0x0400 */
- #if(_WIN32_WINNT >= 0x0500)
- #define LOGON32_PROVIDER_WINNT50 3
- #endif // (_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- WINAPI
- LogonUserA (
- IN LPSTR lpszUsername,
- IN LPSTR lpszDomain,
- IN LPSTR lpszPassword,
- IN DWORD dwLogonType,
- IN DWORD dwLogonProvider,
- OUT PHANDLE phToken
- );
- WINADVAPI
- BOOL
- WINAPI
- LogonUserW (
- IN LPWSTR lpszUsername,
- IN LPWSTR lpszDomain,
- IN LPWSTR lpszPassword,
- IN DWORD dwLogonType,
- IN DWORD dwLogonProvider,
- OUT PHANDLE phToken
- );
- #ifdef UNICODE
- #define LogonUser LogonUserW
- #else
- #define LogonUser LogonUserA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- LogonUserExA (
- IN LPSTR lpszUsername,
- IN LPSTR lpszDomain,
- IN LPSTR lpszPassword,
- IN DWORD dwLogonType,
- IN DWORD dwLogonProvider,
- OUT PHANDLE phToken OPTIONAL,
- OUT PSID *ppLogonSid OPTIONAL,
- OUT PVOID *ppProfileBuffer OPTIONAL,
- OUT LPDWORD pdwProfileLength OPTIONAL,
- OUT PQUOTA_LIMITS pQuotaLimits OPTIONAL
- );
- WINADVAPI
- BOOL
- WINAPI
- LogonUserExW (
- IN LPWSTR lpszUsername,
- IN LPWSTR lpszDomain,
- IN LPWSTR lpszPassword,
- IN DWORD dwLogonType,
- IN DWORD dwLogonProvider,
- OUT PHANDLE phToken OPTIONAL,
- OUT PSID *ppLogonSid OPTIONAL,
- OUT PVOID *ppProfileBuffer OPTIONAL,
- OUT LPDWORD pdwProfileLength OPTIONAL,
- OUT PQUOTA_LIMITS pQuotaLimits OPTIONAL
- );
- #ifdef UNICODE
- #define LogonUserEx LogonUserExW
- #else
- #define LogonUserEx LogonUserExA
- #endif // !UNICODE
- WINADVAPI
- BOOL
- WINAPI
- ImpersonateLoggedOnUser(
- IN HANDLE hToken
- );
- WINADVAPI
- BOOL
- WINAPI
- CreateProcessAsUserA (
- IN HANDLE hToken,
- IN LPCSTR lpApplicationName,
- IN LPSTR lpCommandLine,
- IN LPSECURITY_ATTRIBUTES lpProcessAttributes,
- IN LPSECURITY_ATTRIBUTES lpThreadAttributes,
- IN BOOL bInheritHandles,
- IN DWORD dwCreationFlags,
- IN LPVOID lpEnvironment,
- IN LPCSTR lpCurrentDirectory,
- IN LPSTARTUPINFOA lpStartupInfo,
- OUT LPPROCESS_INFORMATION lpProcessInformation
- );
- WINADVAPI
- BOOL
- WINAPI
- CreateProcessAsUserW (
- IN HANDLE hToken,
- IN LPCWSTR lpApplicationName,
- IN LPWSTR lpCommandLine,
- IN LPSECURITY_ATTRIBUTES lpProcessAttributes,
- IN LPSECURITY_ATTRIBUTES lpThreadAttributes,
- IN BOOL bInheritHandles,
- IN DWORD dwCreationFlags,
- IN LPVOID lpEnvironment,
- IN LPCWSTR lpCurrentDirectory,
- IN LPSTARTUPINFOW lpStartupInfo,
- OUT LPPROCESS_INFORMATION lpProcessInformation
- );
- #ifdef UNICODE
- #define CreateProcessAsUser CreateProcessAsUserW
- #else
- #define CreateProcessAsUser CreateProcessAsUserA
- #endif // !UNICODE
- #if(_WIN32_WINNT >= 0x0500)
- //
- // LogonFlags
- //
- #define LOGON_WITH_PROFILE 0x00000001
- #define LOGON_NETCREDENTIALS_ONLY 0x00000002
- WINADVAPI
- BOOL
- WINAPI
- CreateProcessWithLogonW(
- LPCWSTR lpUsername,
- LPCWSTR lpDomain,
- LPCWSTR lpPassword,
- DWORD dwLogonFlags,
- LPCWSTR lpApplicationName,
- LPWSTR lpCommandLine,
- DWORD dwCreationFlags,
- LPVOID lpEnvironment,
- LPCWSTR lpCurrentDirectory,
- LPSTARTUPINFOW lpStartupInfo,
- LPPROCESS_INFORMATION lpProcessInformation
- );
- #endif // (_WIN32_WINNT >= 0x0500)
- WINADVAPI
- BOOL
- APIENTRY
- ImpersonateAnonymousToken(
- IN HANDLE ThreadHandle
- );
- WINADVAPI
- BOOL
- WINAPI
- DuplicateTokenEx(
- IN HANDLE hExistingToken,
- IN DWORD dwDesiredAccess,
- IN LPSECURITY_ATTRIBUTES lpTokenAttributes,
- IN SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,
- IN TOKEN_TYPE TokenType,
- OUT PHANDLE phNewToken);
- WINADVAPI
- BOOL
- APIENTRY
- CreateRestrictedToken(
- IN HANDLE ExistingTokenHandle,
- IN DWORD Flags,
- IN DWORD DisableSidCount,
- IN PSID_AND_ATTRIBUTES SidsToDisable OPTIONAL,
- IN DWORD DeletePrivilegeCount,
- IN PLUID_AND_ATTRIBUTES PrivilegesToDelete OPTIONAL,
- IN DWORD RestrictedSidCount,
- IN PSID_AND_ATTRIBUTES SidsToRestrict OPTIONAL,
- OUT PHANDLE NewTokenHandle
- );
- WINADVAPI
- BOOL
- WINAPI
- IsTokenRestricted(
- IN HANDLE TokenHandle
- );
- WINADVAPI
- BOOL
- WINAPI
- IsTokenUntrusted(
- IN HANDLE TokenHandle
- );
- BOOL
- APIENTRY
- CheckTokenMembership(
- IN HANDLE TokenHandle OPTIONAL,
- IN PSID SidToCheck,
- OUT PBOOL IsMember
- );
- //
- // Thread pool API's
- //
- #if (_WIN32_WINNT >= 0x0500)
- typedef WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACK ;
- WINBASEAPI
- BOOL
- WINAPI
- RegisterWaitForSingleObject(
- PHANDLE phNewWaitObject,
- HANDLE hObject,
- WAITORTIMERCALLBACK Callback,
- PVOID Context,
- ULONG dwMilliseconds,
- ULONG dwFlags
- );
- WINBASEAPI
- HANDLE
- WINAPI
- RegisterWaitForSingleObjectEx(
- HANDLE hObject,
- WAITORTIMERCALLBACK Callback,
- PVOID Context,
- ULONG dwMilliseconds,
- ULONG dwFlags
- );
- WINBASEAPI
- BOOL
- WINAPI
- UnregisterWait(
- HANDLE WaitHandle
- );
- WINBASEAPI
- BOOL
- WINAPI
- UnregisterWaitEx(
- HANDLE WaitHandle,
- HANDLE CompletionEvent
- );
- WINBASEAPI
- BOOL
- WINAPI
- QueueUserWorkItem(
- LPTHREAD_START_ROUTINE Function,
- PVOID Context,
- ULONG Flags
- );
- WINBASEAPI
- BOOL
- WINAPI
- BindIoCompletionCallback (
- HANDLE FileHandle,
- LPOVERLAPPED_COMPLETION_ROUTINE Function,
- ULONG Flags
- );
- WINBASEAPI
- HANDLE
- WINAPI
- CreateTimerQueue(
- VOID
- );
- WINBASEAPI
- BOOL
- WINAPI
- CreateTimerQueueTimer(
- PHANDLE phNewTimer,
- HANDLE TimerQueue,
- WAITORTIMERCALLBACK Callback,
- PVOID Parameter,
- DWORD DueTime,
- DWORD Period,
- ULONG Flags
- ) ;
- WINBASEAPI
- BOOL
- WINAPI
- ChangeTimerQueueTimer(
- HANDLE TimerQueue,
- HANDLE Timer,
- ULONG DueTime,
- ULONG Period
- );
- WINBASEAPI
- BOOL
- WINAPI
- DeleteTimerQueueTimer(
- HANDLE TimerQueue,
- HANDLE Timer,
- HANDLE CompletionEvent
- );
- WINBASEAPI
- BOOL
- WINAPI
- DeleteTimerQueueEx(
- HANDLE TimerQueue,
- HANDLE CompletionEvent
- );
- WINBASEAPI
- HANDLE
- WINAPI
- SetTimerQueueTimer(
- HANDLE TimerQueue,
- WAITORTIMERCALLBACK Callback,
- PVOID Parameter,
- DWORD DueTime,
- DWORD Period,
- BOOL PreferIo
- );
- WINBASEAPI
- BOOL
- WINAPI
- CancelTimerQueueTimer(
- HANDLE TimerQueue,
- HANDLE Timer
- );
- WINBASEAPI
- BOOL
- WINAPI
- DeleteTimerQueue(
- HANDLE TimerQueue
- );
- #endif // _WIN32_WINNT
- #if(_WIN32_WINNT >= 0x0400)
- //
- // Plug-and-Play API's
- //
- #define HW_PROFILE_GUIDLEN 39 // 36-characters plus NULL terminator
- #define MAX_PROFILE_LEN 80
- #define DOCKINFO_UNDOCKED (0x1)
- #define DOCKINFO_DOCKED (0x2)
- #define DOCKINFO_USER_SUPPLIED (0x4)
- #define DOCKINFO_USER_UNDOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_UNDOCKED)
- #define DOCKINFO_USER_DOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_DOCKED)
- typedef struct tagHW_PROFILE_INFOA {
- DWORD dwDockInfo;
- CHAR szHwProfileGuid[HW_PROFILE_GUIDLEN];
- CHAR szHwProfileName[MAX_PROFILE_LEN];
- } HW_PROFILE_INFOA, *LPHW_PROFILE_INFOA;
- typedef struct tagHW_PROFILE_INFOW {
- DWORD dwDockInfo;
- WCHAR szHwProfileGuid[HW_PROFILE_GUIDLEN];
- WCHAR szHwProfileName[MAX_PROFILE_LEN];
- } HW_PROFILE_INFOW, *LPHW_PROFILE_INFOW;
- #ifdef UNICODE
- typedef HW_PROFILE_INFOW HW_PROFILE_INFO;
- typedef LPHW_PROFILE_INFOW LPHW_PROFILE_INFO;
- #else
- typedef HW_PROFILE_INFOA HW_PROFILE_INFO;
- typedef LPHW_PROFILE_INFOA LPHW_PROFILE_INFO;
- #endif // UNICODE
- WINADVAPI
- BOOL
- WINAPI
- GetCurrentHwProfileA (
- OUT LPHW_PROFILE_INFOA lpHwProfileInfo
- );
- WINADVAPI
- BOOL
- WINAPI
- GetCurrentHwProfileW (
- OUT LPHW_PROFILE_INFOW lpHwProfileInfo
- );
- #ifdef UNICODE
- #define GetCurrentHwProfile GetCurrentHwProfileW
- #else
- #define GetCurrentHwProfile GetCurrentHwProfileA
- #endif // !UNICODE
- #endif /* _WIN32_WINNT >= 0x0400 */
- //
- // Performance counter API's
- //
- WINBASEAPI
- BOOL
- WINAPI
- QueryPerformanceCounter(
- OUT LARGE_INTEGER *lpPerformanceCount
- );
- WINBASEAPI
- BOOL
- WINAPI
- QueryPerformanceFrequency(
- OUT LARGE_INTEGER *lpFrequency
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetVersionExA(
- IN OUT LPOSVERSIONINFOA lpVersionInformation
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetVersionExW(
- IN OUT LPOSVERSIONINFOW lpVersionInformation
- );
- #ifdef UNICODE
- #define GetVersionEx GetVersionExW
- #else
- #define GetVersionEx GetVersionExA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- VerifyVersionInfoA(
- IN LPOSVERSIONINFOEXA lpVersionInformation,
- IN DWORD dwTypeMask,
- IN DWORDLONG dwlConditionMask
- );
- WINBASEAPI
- BOOL
- WINAPI
- VerifyVersionInfoW(
- IN LPOSVERSIONINFOEXW lpVersionInformation,
- IN DWORD dwTypeMask,
- IN DWORDLONG dwlConditionMask
- );
- #ifdef UNICODE
- #define VerifyVersionInfo VerifyVersionInfoW
- #else
- #define VerifyVersionInfo VerifyVersionInfoA
- #endif // !UNICODE
- // DOS and OS/2 Compatible Error Code definitions returned by the Win32 Base
- // API functions.
- //
- #include <winerror.h>
- /* Abnormal termination codes */
- #define TC_NORMAL 0
- #define TC_HARDERR 1
- #define TC_GP_TRAP 2
- #define TC_SIGNAL 3
- #if(WINVER >= 0x0400)
- //
- // Power Management APIs
- //
- #define AC_LINE_OFFLINE 0x00
- #define AC_LINE_ONLINE 0x01
- #define AC_LINE_BACKUP_POWER 0x02
- #define AC_LINE_UNKNOWN 0xFF
- #define BATTERY_FLAG_HIGH 0x01
- #define BATTERY_FLAG_LOW 0x02
- #define BATTERY_FLAG_CRITICAL 0x04
- #define BATTERY_FLAG_CHARGING 0x08
- #define BATTERY_FLAG_NO_BATTERY 0x80
- #define BATTERY_FLAG_UNKNOWN 0xFF
- #define BATTERY_PERCENTAGE_UNKNOWN 0xFF
- #define BATTERY_LIFE_UNKNOWN 0xFFFFFFFF
- typedef struct _SYSTEM_POWER_STATUS {
- BYTE ACLineStatus;
- BYTE BatteryFlag;
- BYTE BatteryLifePercent;
- BYTE Reserved1;
- DWORD BatteryLifeTime;
- DWORD BatteryFullLifeTime;
- } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
- BOOL
- WINAPI
- GetSystemPowerStatus(
- OUT LPSYSTEM_POWER_STATUS lpSystemPowerStatus
- );
- BOOL
- WINAPI
- SetSystemPowerState(
- IN BOOL fSuspend,
- IN BOOL fForce
- );
- #endif /* WINVER >= 0x0400 */
- #if (_WIN32_WINNT >= 0x0500)
- //
- // Very Large Memory API Subset
- //
- WINBASEAPI
- BOOL
- WINAPI
- AllocateUserPhysicalPages(
- IN HANDLE hProcess,
- IN OUT PULONG_PTR NumberOfPages,
- OUT PULONG_PTR PageArray
- );
- WINBASEAPI
- BOOL
- WINAPI
- FreeUserPhysicalPages(
- IN HANDLE hProcess,
- IN OUT PULONG_PTR NumberOfPages,
- IN PULONG_PTR PageArray
- );
- WINBASEAPI
- BOOL
- WINAPI
- MapUserPhysicalPages(
- IN PVOID VirtualAddress,
- IN ULONG_PTR NumberOfPages,
- IN PULONG_PTR PageArray OPTIONAL
- );
- WINBASEAPI
- BOOL
- WINAPI
- MapUserPhysicalPagesScatter(
- IN PVOID *VirtualAddresses,
- IN ULONG_PTR NumberOfPages,
- IN PULONG_PTR PageArray OPTIONAL
- );
- WINBASEAPI
- HANDLE
- WINAPI
- CreateJobObjectA(
- IN LPSECURITY_ATTRIBUTES lpJobAttributes,
- IN LPCSTR lpName
- );
- WINBASEAPI
- HANDLE
- WINAPI
- CreateJobObjectW(
- IN LPSECURITY_ATTRIBUTES lpJobAttributes,
- IN LPCWSTR lpName
- );
- #ifdef UNICODE
- #define CreateJobObject CreateJobObjectW
- #else
- #define CreateJobObject CreateJobObjectA
- #endif // !UNICODE
- WINBASEAPI
- HANDLE
- WINAPI
- OpenJobObjectA(
- IN DWORD dwDesiredAccess,
- IN BOOL bInheritHandle,
- IN LPCSTR lpName
- );
- WINBASEAPI
- HANDLE
- WINAPI
- OpenJobObjectW(
- IN DWORD dwDesiredAccess,
- IN BOOL bInheritHandle,
- IN LPCWSTR lpName
- );
- #ifdef UNICODE
- #define OpenJobObject OpenJobObjectW
- #else
- #define OpenJobObject OpenJobObjectA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- AssignProcessToJobObject(
- IN HANDLE hJob,
- IN HANDLE hProcess
- );
- WINBASEAPI
- BOOL
- WINAPI
- TerminateJobObject(
- IN HANDLE hJob,
- IN UINT uExitCode
- );
- WINBASEAPI
- BOOL
- WINAPI
- QueryInformationJobObject(
- IN HANDLE hJob,
- IN JOBOBJECTINFOCLASS JobObjectInformationClass,
- OUT LPVOID lpJobObjectInformation,
- IN DWORD cbJobObjectInformationLength,
- OUT LPDWORD lpReturnLength
- );
- WINBASEAPI
- BOOL
- WINAPI
- SetInformationJobObject(
- IN HANDLE hJob,
- IN JOBOBJECTINFOCLASS JobObjectInformationClass,
- IN LPVOID lpJobObjectInformation,
- IN DWORD cbJobObjectInformationLength
- );
- WINBASEAPI
- BOOL
- WINAPI
- IsProcessInJob (
- IN HANDLE ProcessHandle,
- IN HANDLE JobHandle,
- OUT PBOOL Result
- );
- WINBASEAPI
- BOOL
- WINAPI
- CreateJobSet (
- IN ULONG NumJob,
- IN PJOB_SET_ARRAY UserJobSet,
- IN ULONG Flags);
- WINBASEAPI
- PVOID
- WINAPI
- AddVectoredExceptionHandler(
- IN ULONG FirstHandler,
- IN PVECTORED_EXCEPTION_HANDLER VectoredHandler
- );
- WINBASEAPI
- ULONG
- WINAPI
- RemoveVectoredExceptionHandler(
- IN PVOID VectoredHandlerHandle
- );
- //
- // New Volume Mount Point API.
- //
- WINBASEAPI
- HANDLE
- WINAPI
- FindFirstVolumeA(
- LPSTR lpszVolumeName,
- DWORD cchBufferLength
- );
- WINBASEAPI
- HANDLE
- WINAPI
- FindFirstVolumeW(
- LPWSTR lpszVolumeName,
- DWORD cchBufferLength
- );
- #ifdef UNICODE
- #define FindFirstVolume FindFirstVolumeW
- #else
- #define FindFirstVolume FindFirstVolumeA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- FindNextVolumeA(
- HANDLE hFindVolume,
- LPSTR lpszVolumeName,
- DWORD cchBufferLength
- );
- WINBASEAPI
- BOOL
- WINAPI
- FindNextVolumeW(
- HANDLE hFindVolume,
- LPWSTR lpszVolumeName,
- DWORD cchBufferLength
- );
- #ifdef UNICODE
- #define FindNextVolume FindNextVolumeW
- #else
- #define FindNextVolume FindNextVolumeA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- FindVolumeClose(
- HANDLE hFindVolume
- );
- WINBASEAPI
- HANDLE
- WINAPI
- FindFirstVolumeMountPointA(
- LPCSTR lpszRootPathName,
- LPSTR lpszVolumeMountPoint,
- DWORD cchBufferLength
- );
- WINBASEAPI
- HANDLE
- WINAPI
- FindFirstVolumeMountPointW(
- LPCWSTR lpszRootPathName,
- LPWSTR lpszVolumeMountPoint,
- DWORD cchBufferLength
- );
- #ifdef UNICODE
- #define FindFirstVolumeMountPoint FindFirstVolumeMountPointW
- #else
- #define FindFirstVolumeMountPoint FindFirstVolumeMountPointA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- FindNextVolumeMountPointA(
- HANDLE hFindVolumeMountPoint,
- LPSTR lpszVolumeMountPoint,
- DWORD cchBufferLength
- );
- WINBASEAPI
- BOOL
- WINAPI
- FindNextVolumeMountPointW(
- HANDLE hFindVolumeMountPoint,
- LPWSTR lpszVolumeMountPoint,
- DWORD cchBufferLength
- );
- #ifdef UNICODE
- #define FindNextVolumeMountPoint FindNextVolumeMountPointW
- #else
- #define FindNextVolumeMountPoint FindNextVolumeMountPointA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- FindVolumeMountPointClose(
- HANDLE hFindVolumeMountPoint
- );
- WINBASEAPI
- BOOL
- WINAPI
- SetVolumeMountPointA(
- LPCSTR lpszVolumeMountPoint,
- LPCSTR lpszVolumeName
- );
- WINBASEAPI
- BOOL
- WINAPI
- SetVolumeMountPointW(
- LPCWSTR lpszVolumeMountPoint,
- LPCWSTR lpszVolumeName
- );
- #ifdef UNICODE
- #define SetVolumeMountPoint SetVolumeMountPointW
- #else
- #define SetVolumeMountPoint SetVolumeMountPointA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- DeleteVolumeMountPointA(
- LPCSTR lpszVolumeMountPoint
- );
- WINBASEAPI
- BOOL
- WINAPI
- DeleteVolumeMountPointW(
- LPCWSTR lpszVolumeMountPoint
- );
- #ifdef UNICODE
- #define DeleteVolumeMountPoint DeleteVolumeMountPointW
- #else
- #define DeleteVolumeMountPoint DeleteVolumeMountPointA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- GetVolumeNameForVolumeMountPointA(
- LPCSTR lpszVolumeMountPoint,
- LPSTR lpszVolumeName,
- DWORD cchBufferLength
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetVolumeNameForVolumeMountPointW(
- LPCWSTR lpszVolumeMountPoint,
- LPWSTR lpszVolumeName,
- DWORD cchBufferLength
- );
- #ifdef UNICODE
- #define GetVolumeNameForVolumeMountPoint GetVolumeNameForVolumeMountPointW
- #else
- #define GetVolumeNameForVolumeMountPoint GetVolumeNameForVolumeMountPointA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- GetVolumePathNameA(
- LPCSTR lpszFileName,
- LPSTR lpszVolumePathName,
- DWORD cchBufferLength
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetVolumePathNameW(
- LPCWSTR lpszFileName,
- LPWSTR lpszVolumePathName,
- DWORD cchBufferLength
- );
- #ifdef UNICODE
- #define GetVolumePathName GetVolumePathNameW
- #else
- #define GetVolumePathName GetVolumePathNameA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- GetVolumePathNamesForVolumeNameA(
- LPCSTR lpszVolumeName,
- LPSTR lpszVolumePathNames,
- DWORD cchBufferLength,
- PDWORD lpcchReturnLength
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetVolumePathNamesForVolumeNameW(
- LPCWSTR lpszVolumeName,
- LPWSTR lpszVolumePathNames,
- DWORD cchBufferLength,
- PDWORD lpcchReturnLength
- );
- #ifdef UNICODE
- #define GetVolumePathNamesForVolumeName GetVolumePathNamesForVolumeNameW
- #else
- #define GetVolumePathNamesForVolumeName GetVolumePathNamesForVolumeNameA
- #endif // !UNICODE
- #endif
- #if (_WIN32_WINNT >= 0x0500) || (_WIN32_FUSION >= 0x0100) || ISOLATION_AWARE_ENABLED
- #define ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID (0x00000001)
- #define ACTCTX_FLAG_LANGID_VALID (0x00000002)
- #define ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID (0x00000004)
- #define ACTCTX_FLAG_RESOURCE_NAME_VALID (0x00000008)
- #define ACTCTX_FLAG_SET_PROCESS_DEFAULT (0x00000010)
- #define ACTCTX_FLAG_APPLICATION_NAME_VALID (0x00000020)
- #define ACTCTX_FLAG_SOURCE_IS_ASSEMBLYREF (0x00000040)
- #define ACTCTX_FLAG_HMODULE_VALID (0x00000080)
- typedef struct tagACTCTXA {
- ULONG cbSize;
- DWORD dwFlags;
- LPCSTR lpSource;
- USHORT wProcessorArchitecture;
- LANGID wLangId;
- LPCSTR lpAssemblyDirectory;
- LPCSTR lpResourceName;
- LPCSTR lpApplicationName;
- HMODULE hModule;
- } ACTCTXA, *PACTCTXA;
- typedef struct tagACTCTXW {
- ULONG cbSize;
- DWORD dwFlags;
- LPCWSTR lpSource;
- USHORT wProcessorArchitecture;
- LANGID wLangId;
- LPCWSTR lpAssemblyDirectory;
- LPCWSTR lpResourceName;
- LPCWSTR lpApplicationName;
- HMODULE hModule;
- } ACTCTXW, *PACTCTXW;
- #ifdef UNICODE
- typedef ACTCTXW ACTCTX;
- typedef PACTCTXW PACTCTX;
- #else
- typedef ACTCTXA ACTCTX;
- typedef PACTCTXA PACTCTX;
- #endif // UNICODE
- typedef const ACTCTXA *PCACTCTXA;
- typedef const ACTCTXW *PCACTCTXW;
- #ifdef UNICODE
- typedef ACTCTXW ACTCTX;
- typedef PCACTCTXW PCACTCTX;
- #else
- typedef ACTCTXA ACTCTX;
- typedef PCACTCTXA PCACTCTX;
- #endif // UNICODE
- #endif
- #if (_WIN32_WINNT >= 0x0500) || (_WIN32_FUSION >= 0x0100)
- WINBASEAPI
- HANDLE
- WINAPI
- CreateActCtxA(
- PCACTCTXA pActCtx
- );
- WINBASEAPI
- HANDLE
- WINAPI
- CreateActCtxW(
- PCACTCTXW pActCtx
- );
- #ifdef UNICODE
- #define CreateActCtx CreateActCtxW
- #else
- #define CreateActCtx CreateActCtxA
- #endif // !UNICODE
- WINBASEAPI
- VOID
- WINAPI
- AddRefActCtx(
- HANDLE hActCtx
- );
- WINBASEAPI
- VOID
- WINAPI
- ReleaseActCtx(
- HANDLE hActCtx
- );
- WINBASEAPI
- BOOL
- WINAPI
- ZombifyActCtx(
- HANDLE hActCtx
- );
- WINBASEAPI
- BOOL
- WINAPI
- ActivateActCtx(
- HANDLE hActCtx,
- ULONG_PTR *lpCookie
- );
- #define DEACTIVATE_ACTCTX_FLAG_FORCE_EARLY_DEACTIVATION (0x00000001)
- WINBASEAPI
- BOOL
- WINAPI
- DeactivateActCtx(
- DWORD dwFlags,
- ULONG_PTR ulCookie
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetCurrentActCtx(
- HANDLE *lphActCtx);
- #endif
- #if (_WIN32_WINNT >= 0x0500) || (_WIN32_FUSION >= 0x0100) || ISOLATION_AWARE_ENABLED
- typedef struct tagACTCTX_SECTION_KEYED_DATA {
- ULONG cbSize;
- ULONG ulDataFormatVersion;
- PVOID lpData;
- ULONG ulLength;
- PVOID lpSectionGlobalData;
- ULONG ulSectionGlobalDataLength;
- PVOID lpSectionBase;
- ULONG ulSectionTotalLength;
- HANDLE hActCtx;
- ULONG ulAssemblyRosterIndex;
- } ACTCTX_SECTION_KEYED_DATA, *PACTCTX_SECTION_KEYED_DATA;
- #define FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX (0x00000001)
- #endif
- #if (_WIN32_WINNT >= 0x0500) || (_WIN32_FUSION >= 0x0100)
- WINBASEAPI
- BOOL
- WINAPI
- FindActCtxSectionStringA(
- DWORD dwFlags,
- const GUID *lpExtensionGuid,
- ULONG ulSectionId,
- LPCSTR lpStringToFind,
- PACTCTX_SECTION_KEYED_DATA ReturnedData
- );
- WINBASEAPI
- BOOL
- WINAPI
- FindActCtxSectionStringW(
- DWORD dwFlags,
- const GUID *lpExtensionGuid,
- ULONG ulSectionId,
- LPCWSTR lpStringToFind,
- PACTCTX_SECTION_KEYED_DATA ReturnedData
- );
- #ifdef UNICODE
- #define FindActCtxSectionString FindActCtxSectionStringW
- #else
- #define FindActCtxSectionString FindActCtxSectionStringA
- #endif // !UNICODE
- WINBASEAPI
- BOOL
- WINAPI
- FindActCtxSectionGuid(
- DWORD dwFlags,
- const GUID *lpExtensionGuid,
- ULONG ulSectionId,
- const GUID *lpGuidToFind,
- PACTCTX_SECTION_KEYED_DATA ReturnedData
- );
- #endif
- #if (_WIN32_WINNT >= 0x0500) || (_WIN32_FUSION >= 0x0100) || ISOLATION_AWARE_ENABLED
- #if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
- #if !defined(ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED)
- typedef struct _ACTIVATION_CONTEXT_BASIC_INFORMATION {
- HANDLE hActCtx;
- DWORD dwFlags;
- } ACTIVATION_CONTEXT_BASIC_INFORMATION, *PACTIVATION_CONTEXT_BASIC_INFORMATION;
- typedef const struct _ACTIVATION_CONTEXT_BASIC_INFORMATION *PCACTIVATION_CONTEXT_BASIC_INFORMATION;
- #define ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED 1
- #endif // !defined(ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED)
- #endif
- #define QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX (0x00000004)
- #define QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE (0x00000008)
- #define QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS (0x00000010)
- #define QUERY_ACTCTX_FLAG_NO_ADDREF (0x80000000)
- #endif
- #if (_WIN32_WINNT >= 0x0500) || (_WIN32_FUSION >= 0x0100)
- //
- // switch (ulInfoClass)
- //
- // case ActivationContextBasicInformation:
- // pvSubInstance == NULL
- // pvBuffer is of type PACTIVATION_CONTEXT_BASIC_INFORMATION
- //
- // case ActivationContextDetailedInformation:
- // pvSubInstance == NULL
- // pvBuffer is of type PACTIVATION_CONTEXT_DETAILED_INFORMATION
- //
- // case AssemblyDetailedInformationInActivationContext:
- // pvSubInstance is of type PULONG
- // *pvSubInstance < ACTIVATION_CONTEXT_DETAILED_INFORMATION::ulAssemblyCount
- // pvBuffer is of type PACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION
- //
- // case FileInformationInAssemblyOfAssemblyInActivationContext:
- // pvSubInstance is of type PACTIVATION_CONTEXT_QUERY_INDEX
- // pvSubInstance->ulAssemblyIndex < ACTIVATION_CONTEXT_DETAILED_INFORMATION::ulAssemblyCount
- // pvSubInstance->ulFileIndexInAssembly < ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION::ulFileCount
- // pvBuffer is of type PASSEMBLY_FILE_DETAILED_INFORMATION
- //
- // String are placed after the structs.
- //
- WINBASEAPI
- BOOL
- WINAPI
- QueryActCtxW(
- IN DWORD dwFlags,
- IN HANDLE hActCtx,
- IN PVOID pvSubInstance,
- IN ULONG ulInfoClass,
- OUT PVOID pvBuffer,
- IN SIZE_T cbBuffer OPTIONAL,
- OUT SIZE_T *pcbWrittenOrRequired OPTIONAL
- );
- typedef BOOL (WINAPI * PQUERYACTCTXW_FUNC)(
- IN DWORD dwFlags,
- IN HANDLE hActCtx,
- IN PVOID pvSubInstance,
- IN ULONG ulInfoClass,
- OUT PVOID pvBuffer,
- IN SIZE_T cbBuffer OPTIONAL,
- OUT SIZE_T *pcbWrittenOrRequired OPTIONAL
- );
- #endif // (_WIN32_WINNT > 0x0500) || (_WIN32_FUSION >= 0x0100)
- WINBASEAPI
- BOOL
- WINAPI
- ProcessIdToSessionId(
- IN DWORD dwProcessId,
- OUT DWORD *pSessionId
- );
- #if _WIN32_WINNT >= 0x0501
- WINBASEAPI
- DWORD
- WINAPI
- WTSGetActiveConsoleSessionId();
- WINBASEAPI
- BOOL
- WINAPI
- IsWow64Process(
- HANDLE hProcess,
- PBOOL Wow64Process
- );
- #endif // (_WIN32_WINNT >= 0x0501)
- //
- // NUMA Information routines.
- //
- WINBASEAPI
- BOOL
- WINAPI
- GetNumaHighestNodeNumber(
- PULONG HighestNodeNumber
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetNumaProcessorNode(
- UCHAR Processor,
- PUCHAR NodeNumber
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetNumaNodeProcessorMask(
- UCHAR Node,
- PULONGLONG ProcessorMask
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetNumaProcessorMap(
- PSYSTEM_NUMA_INFORMATION Map,
- ULONG Length,
- PULONG ReturnedLength
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetNumaAvailableMemory(
- PSYSTEM_NUMA_INFORMATION Memory,
- ULONG Length,
- PULONG ReturnedLength
- );
- WINBASEAPI
- BOOL
- WINAPI
- GetNumaAvailableMemoryNode(
- UCHAR Node,
- PULONGLONG AvailableBytes
- );
- WINBASEAPI
- ULONGLONG
- WINAPI
- NumaVirtualQueryNode(
- IN ULONG NumberOfRanges,
- IN PULONG_PTR RangeList,
- OUT PULONG_PTR VirtualPageAndNode,
- IN SIZE_T MaximumOutputLength
- );
- #if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
- #if ISOLATION_AWARE_ENABLED
- #include "winbase.inl"
- #endif /* ISOLATION_AWARE_ENABLED */
- #endif /* RC */
- #ifdef __cplusplus
- }
- #endif
- #endif // _WINBASE_