Changeset 35 for Include/api_system.sbp
- Timestamp:
- Dec 24, 2006, 12:31:40 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_system.sbp
r1 r35 251 251 #endif 252 252 253 ' Overlapped I/O operation is in progress.254 Const ERROR_IO_PENDING = 997255 256 253 ' Global Memory Flags 257 254 Const GMEM_FIXED = &H0000 … … 306 303 307 304 'Event 308 Const EVENT_MODIFY_STATE = &H0002 309 Const EVENT_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &H3) 305 Const EVENT_MODIFY_STATE = &H0002 306 Const EVENT_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &H3) 310 307 311 308 'Mutex … … 314 311 315 312 'Semaphore 316 Const SEMAPHORE_MODIFY_STATE = &H0002 317 Const SEMAPHORE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &H3) 313 Const SEMAPHORE_MODIFY_STATE = &H0002 314 Const SEMAPHORE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &H3) 318 315 319 316 'Timer … … 348 345 Const CSTR_EQUAL = 2 349 346 Const CSTR_GREATER_THAN = 3 350 Declare Function CompareString Lib "kernel32" Alias "CompareStringA" (Locale As LCID, dwCmpFlags As DWord, lpString1 As PSTR, cchCount1 As Long, lpString2 As PSTR, cchCount2 As Long) As Long347 Declare Function CompareString Lib "kernel32" Alias "CompareStringA" (Locale As LCID, dwCmpFlags As DWord, pString1 As PCSTR, cchCount1 As Long, pString2 As PCSTR, cchCount2 As Long) As Long 351 348 352 349 Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (lpExistingFileName As LPCSTR, lpNewFileName As LPCSTR, bFailIfExists As BOOL) As BOOL … … 531 528 Declare Function FindNextFile Lib "kernel32" Alias "FindNextFileA" (hFindFile As HANDLE, ByRef lpFindFildData As WIN32_FIND_DATA) As BOOL 532 529 Declare Function FlushFileBuffers Lib "kernel32" (hFile As HANDLE) As BOOL 530 Declare Function FlushInstructionCache Lib "kernel32"(hProcess As HANDLE, pBaseAddress As VoidPtr, Size As SIZE_T) As BOOL 533 531 534 532 Const FORMAT_MESSAGE_ALLOCATE_BUFFER = &H00000100 … … 619 617 Declare Function GetPriorityClass Lib "kernel32" (hProcess As HANDLE) As DWord 620 618 Declare Function GetProcAddress Lib "kernel32" (hModule As HINSTANCE, lpProcName As BytePtr) As DWord 619 Declare Function GetProcessAffinityMask Lib "kernel32" ( 620 hProcess As HANDLE, 621 ByRef ProcessAffinityMask As ULONG_PTR, 622 ByRef SystemAffinityMask As ULONG_PTR 623 ) As BOOL 621 624 Declare Function GetProcessHeap Lib "kernel32" () As HANDLE 622 625 Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" ( 623 624 lpszShortPath As PSTR,625 626 pszLongPath As PCSTR, 627 pszShortPath As PSTR, 628 cchBuffer As DWord 626 629 ) As DWord 627 630 … … 633 636 Declare Function GetStdHandle Lib "kernel32" (nStdHandle As DWord) As HANDLE 634 637 635 Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" ( lpBuffer As BytePtr, uSize As DWord) As DWord638 Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord 636 639 637 640 Type SYSTEM_INFO … … 686 689 687 690 Declare Function GetUserDefaultLCID Lib "kernel32" () As LCID 688 Declare Function GetUserName Lib "advapi32" Alias "GetUserNameA" ( lpBuffer As BytePtr, ByRef nSize As DWord) As BOOL691 Declare Function GetUserName Lib "advapi32" Alias "GetUserNameA" (pBuffer As PSTR, ByRef nSize As DWord) As BOOL 689 692 690 693 Const VER_PLATFORM_WIN32s = 0 … … 701 704 Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByRef lpVersionInformation As OSVERSIONINFO) As BOOL 702 705 703 Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" ( lpBuffer As BytePtr, uSize As DWord) As DWord706 Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord 704 707 Declare Function GlobalAlloc Lib "kernel32" (uFlags As DWord, dwBytes As SIZE_T) As HGLOBAL 708 Declare Function GlobalFrags Lib "kernel32" (hMem As HGLOBAL) As DWord 705 709 Declare Function GlobalFree Lib "kernel32" (hMem As HGLOBAL) As HGLOBAL 710 Declare Function GlobalHandle Lib "kernel32" (pMem As VoidPtr) As HGLOBAL 706 711 Declare Function GlobalLock Lib "kernel32" (hMem As HGLOBAL) As VoidPtr 707 712 … … 753 758 Declare Function LocalFileTimeToFileTime Lib "kernel32" (ByRef lpLocalFileTime As FILETIME, ByRef lpFileTime As FILETIME) As BOOL 754 759 Declare Function LocalFree Lib "kernel32" (hMem As HLOCAL) As HLOCAL 760 Declare Function LocalHandle Lib "kernel32" (pMem As VoidPtr) As HLOCAL 761 Declare Function LocalLock Lib "kernel32" (hMem As HLOCAL) As VoidPtr 762 Declare Function LocalReAlloc Lib "kernel32" (hMem As HLOCAL, dwBytes As SIZE_T, uFlags As DWord) As HLOCAL 763 Declare Function LocalSize Lib "kernel32" (hMem As HLOCAL) As SIZE_T 764 Declare Function LocalUnlock Lib "kernel32" (hMem As HLOCAL) As BOOL 755 765 Declare Function LockFile Lib "kernel32" (hFile As DWord, dwFileOffsetLow As DWord, dwFileOffsetHigh As DWord, nNumberOfBytesToLockLow As DWord, nNumberOfBytesToLockHigh As DWord) As BOOL 756 Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" ( lpLibFileName As BytePtr) As HINSTANCE766 Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (pLibFileName As PCSTR) As HINSTANCE 757 767 758 768 Const DONT_RESOLVE_DLL_REFERENCES = &h00000001 … … 876 886 Declare Function TerminateProcess Lib "kernel32" (hProcess As HANDLE, dwExitCode As DWord) As BOOL 877 887 Declare Function TerminateThread Lib "kernel32" (hThread As HANDLE, dwExitCode As DWord) As BOOL 878 Declare Sub TlsAlloc Lib "kernel32" ()888 Declare Function TlsAlloc Lib "kernel32" () As DWord 879 889 Declare Function TlsFree Lib "kernel32" (dwTlsIndex As DWord) As BOOL 880 890 Declare Function TlsGetValue Lib "kernel32" (dwTlsIndex As DWord) As VoidPtr … … 907 917 Declare Function VirtualFree Lib "kernel32" (lpAddress As VoidPtr, dwSize As SIZE_T, dwFreeType As DWord) As BOOL 908 918 Declare Function VirtualLock Lib "kernel32" (lpAddress As VoidPtr, dwSize As SIZE_T) As BOOL 919 Declare Function VirtualProtect Lib "kernel32" ( 920 pAddress As VoidPtr, 921 Size As SIZE_T, 922 flNewProtect As DWord, 923 ByRef flOldProtect As DWord 924 ) As BOOL 925 Declare Function VirtualProtectEx Lib "kernel32" ( 926 hProcess As HANDLE, 927 pAddress As VoidPtr, 928 Size As SIZE_T, 929 flNewProtect As DWord, 930 ByRef flOldProtect As DWord 931 ) As BOOL 932 Type MEMORY_BASIC_INFORMATION 933 BaseAddress As VoidPtr 934 AllocationBase As VoidPtr 935 AllocationProtect As DWord 936 RegionSize As SIZE_T 937 State As DWord 938 Protect As DWord 939 MBIType As DWord 940 End Type 941 Declare Function VirtualQuery Lib "kernel32" ( 942 pAddress As VoidPtr, 943 ByRef mbi As MEMORY_BASIC_INFORMATION, 944 Length As SIZE_T 945 ) As SIZE_T 946 Declare Function VirtualQueryEx Lib "kernel32" ( 947 hProcess As HANDLE, 948 pAddress As VoidPtr, 949 ByRef mbi As MEMORY_BASIC_INFORMATION, 950 Length As SIZE_T 951 ) As SIZE_T 909 952 Declare Function VirtualUnlock Lib "kernel32" (lpAddress As VoidPtr, dwSize As SIZE_T) As BOOL 910 953 Declare Function WaitForMultipleObjects Lib "kernel32" (nCount As DWord, pHandles As *HANDLE, fWaitAll As BOOL, dwMilliseconds As DWord) As DWord … … 931 974 Declare Function WriteFile Lib "kernel32" (hFile As HANDLE, lpBuffer As VoidPtr, nNumberOfBytesToWrite As DWord, lpNumberOfBytesWritten As DWordPtr, ByRef lpOverlapped As OVERLAPPED) As BOOL 932 975 Declare Sub ZeroMemory Lib "kernel32" Alias "RtlZeroMemory" (Destination As VoidPtr, dwLength As DWord) 933 934 935 976 936 977 Const MAKELCID(lgid, srtid) = ((((srtid As Word) As DWord)<<16) or ((lgid As Word) As DWord)) … … 1126 1167 1127 1168 1128 Const LANG_SYSTEM_DEFAULT = 1129 Const LANG_USER_DEFAULT = 1169 Const LANG_SYSTEM_DEFAULT = (MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT)) 1170 Const LANG_USER_DEFAULT = (MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)) 1130 1171 1131 1172 … … 1166 1207 1167 1208 Const WAIT_IO_COMPLETION = &h000000C0 'STATUS_USER_APC 1168 Const WAIT_TIMEOUT = &h000000C01169 1170 1209 1171 1210 #endif '_INC_SYSTEM
Note:
See TracChangeset
for help on using the changeset viewer.