Changeset 121 for Include/api_system.sbp
- Timestamp:
- Feb 25, 2007, 12:56:09 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_system.sbp
r119 r121 326 326 Declare Function InterlockedDecrement Lib "kernel32" (ByRef lpAddend As Long) As Long 327 327 Declare Function InterlockedExchange Lib "kernel32" (ByRef Target As Long, Value As Long) As Long 328 Declare Function InterlockedCompareExchange Lib "kernel32" ( Destination As *VoidPtr, Exchange As VoidPtr, Comperand As VoidPtr) As VoidPtr328 Declare Function InterlockedCompareExchange Lib "kernel32" (ByRef Destination As Long, Exchange As Long, Comperand As Long) As Long 329 329 Declare Function InterlockedExchangeAdd Lib "kernel32" (ByRef Addend As Long, Value As Long) As Long 330 330 #ifdef _WIN64 331 Declare Function InterlockedCompareExchangePointer Lib "kernel32" (Destination As *VoidPtr, Exchange As VoidPtr, Comperand As VoidPtr) As VoidPtr 331 Declare Function InterlockedCompareExchangePointer Lib "kernel32" (ByRef Destination As VoidPtr, Exchange As VoidPtr, Comperand As VoidPtr) As VoidPtr 332 Declare Function InterlockedExchangePointer Lib "kernel32" (ByRef Target As VoidPtr, Value As VoidPtr) As VoidPtr 332 333 #else 334 Declare Function InterlockedCompareExchangePointer Lib "kernel32" Alias "InterlockedCompareExchange" (ByRef Destination As VoidPtr, Exchange As VoidPtr, Comperand As VoidPtr) As VoidPtr 333 335 Declare Function InterlockedExchangePointer Lib "kernel32" Alias "InterlockedExchange" (ByRef Target As VoidPtr, Value As VoidPtr) As VoidPtr 334 336 #endif … … 737 739 Declare Sub InitializeCriticalSection Lib "kernel32" (ByRef lpCriticalSection As CRITICAL_SECTION) 738 740 Declare Function IsBadReadPtr Lib "kernel32" (lp As VoidPtr, ucb As ULONG_PTR) As BOOL 739 Declare Function IsBadWritePtr Lib "kernel32" (lp As VoidPtr, ucb As DWord) As BOOL741 Declare Function IsBadWritePtr Lib "kernel32" (lp As VoidPtr, ucb As ULONG_PTR) As BOOL 740 742 Declare Function IsDBCSLeadByte Lib "kernel32" (TestChar As Byte) As BOOL 741 743 … … 775 777 Declare Function LoadLibraryEx Lib "kernel32" Alias "LoadLibraryExA" (pLibFileName As PCSTR, hFile As HANDLE, dwFlags As DWord) As HINSTANCE 776 778 777 Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" ( lpString1 As BytePtr, lpString2 As BytePtr) As BytePtr778 Declare Function lstrcmp Lib "kernel32" Alias "lstrcmpA" ( lpString1 As BytePtr, lpString2 As BytePtr) As Long779 Declare Function lstrcmpi Lib "kernel32" Alias "lstrcmpiA" ( lpString1 As BytePtr, lpString2 As BytePtr) As Long780 Declare Function lstrcpy Lib "kernel32" Alias "lstrcpyA" ( lpString1 As BytePtr, lpString2 As BytePtr) As BytePtr781 Declare Function lstrlenA Lib "kernel32" ( lpString As LPSTR) As Long782 Declare Function lstrlenW Lib "kernel32" ( lpString As LPWSTR) As Long779 Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" (pString1 As PSTR, pString2 As PCSTR) As PSTR 780 Declare Function lstrcmp Lib "kernel32" Alias "lstrcmpA" (pString1 As PCSTR, pString2 As PCSTR) As Long 781 Declare Function lstrcmpi Lib "kernel32" Alias "lstrcmpiA" (pString1 As PCSTR, pString2 As PCSTR) As Long 782 Declare Function lstrcpy Lib "kernel32" Alias "lstrcpyA" (pString1 As PSTR, pString2 As PCSTR) As PSTR 783 Declare Function lstrlenA Lib "kernel32" (pString As PCSTR) As Long 784 Declare Function lstrlenW Lib "kernel32" (pString As PCWSTR) As Long 783 785 #ifdef UNICODE 784 Declare Function lstrlen Lib "kernel32" Alias "lstrlen A" (lpString As *Char) As Long786 Declare Function lstrlen Lib "kernel32" Alias "lstrlenW" (lpString As PCTSTR) As Long 785 787 #else 786 Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (lpString As *Char) As Long788 Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (lpString As PCTSTR) As Long 787 789 #endif 788 790 Declare Sub memcpy Lib "kernel32" Alias "RtlMoveMemory" (pDest As VoidPtr, pSrc As VoidPtr, length As SIZE_T) … … 804 806 Const CP_UTF8 = 65001 'UTF-8 translation 805 807 806 Declare Function MultiByteToWideChar Lib "kernel32" (CodePage As DWord, dwFlags As DWord, lpMultiByteStr As BytePtr, cchMultiByte As Long, lpWideCharStr As WordPtr, cchWideChar As Long) As Long808 Declare Function MultiByteToWideChar Lib "kernel32" (CodePage As DWord, dwFlags As DWord, pMultiByteStr As PCSTR, cchMultiByte As Long, pWideCharStr As PWSTR, cchWideChar As Long) As Long 807 809 808 810 Declare Function OpenEvent Lib "kernel32" Alias "OpenEventA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, pName As PCSTR) As HANDLE
Note:
See TracChangeset
for help on using the changeset viewer.