Changeset 125 for Include/api_system.sbp
- Timestamp:
- Mar 2, 2007, 2:57:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_system.sbp
r121 r125 335 335 Declare Function InterlockedExchangePointer Lib "kernel32" Alias "InterlockedExchange" (ByRef Target As VoidPtr, Value As VoidPtr) As VoidPtr 336 336 #endif 337 338 337 339 Declare Function Beep Lib "kernel32" (dwFreq As DWord, dwDuration As DWord) As BOOL 338 340 Declare Function CloseHandle Lib "kernel32" (hObject As HANDLE) As BOOL … … 597 599 ByRef FileInformation As BY_HANDLE_FILE_INFORMATION 598 600 ) As BOOL 599 Declare Function GetFileSize Lib "kernel32" (hFile As HANDLE, lpFileSizeHigh As DWordPtr) As DWord601 Declare Function GetFileSize Lib "kernel32" (hFile As HANDLE, pFileSizeHigh As *DWord) As DWord 600 602 Declare Function GetFileTime Lib "kernel32" (hFile As HANDLE, ByRef lpCreationTime As FILETIME, ByRef lpLastAccessTime As FILETIME, ByRef lpLastWriteTime As FILETIME) As BOOL 601 603 … … 621 623 ) As BOOL 622 624 Declare Function GetPriorityClass Lib "kernel32" (hProcess As HANDLE) As DWord 623 Declare Function GetProcAddress Lib "kernel32" (hModule As HINSTANCE, lpProcName As BytePtr) As DWord625 Declare Function GetProcAddress Lib "kernel32" (hModule As HINSTANCE, pProcName As PCSTR) As DWord 624 626 Declare Function GetProcessAffinityMask Lib "kernel32" ( 625 627 hProcess As HANDLE, … … 634 636 ) As DWord 635 637 636 Declare Sub GetStartupInfo Lib "kernel32" Alias "GetStartupInfoA" (ByRef lpStartupInfo As STARTUPINFO)638 Declare Sub GetStartupInfo Lib "kernel32" Alias "GetStartupInfoA" (ByRef StartupInfo As STARTUPINFO) 637 639 638 640 Const STD_INPUT_HANDLE = -10 … … 655 657 wProcessorRevision As Word 656 658 End Type 657 Declare Sub GetSystemInfo Lib "kernel32" (ByRef lpSystemInfo As SYSTEM_INFO)659 Declare Sub GetSystemInfo Lib "kernel32" (ByRef SystemInfo As SYSTEM_INFO) 658 660 659 661 Declare Sub GetSystemTime Lib "kernel32" (ByRef SystemTime As SYSTEMTIME) … … 666 668 pTempFileName As PSTR 667 669 ) As DWord 668 Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (nBufferLength As DWord, lpBuffer As BytePtr) As DWord670 Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (nBufferLength As DWord, lpBuffer As PSTR) As DWord 669 671 Declare Function GetThreadContext Lib "kernel32" (hThread As HANDLE, ByRef Context As CONTEXT) As BOOL 670 672 … … 691 693 Const TIME_NOTIMEMARKER = &H00000004 692 694 Const TIME_FORCE24HOURFORMAT = &H00000008 693 Declare Function GetTimeFormat Lib "kernel32" Alias "GetTimeFormatA" (Locale As LCID, dwFlags As DWord, ByRef lpTime As SYSTEMTIME, lpFormat As BytePtr, lpTimeStr As BytePtr, cchTime As DWord) As BOOL695 Declare Function GetTimeFormat Lib "kernel32" Alias "GetTimeFormatA" (Locale As LCID, dwFlags As DWord, ByRef Time As SYSTEMTIME, lpFormat As BytePtr, lpTimeStr As BytePtr, cchTime As DWord) As BOOL 694 696 695 697 Declare Function GetUserDefaultLCID Lib "kernel32" () As LCID … … 707 709 szCSDVersion[127] As Byte 708 710 End Type 709 Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByRef lpVersionInformation As OSVERSIONINFO) As BOOL711 Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByRef VersionInformation As OSVERSIONINFO) As BOOL 710 712 711 713 Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord … … 737 739 Declare Function HeapReAlloc Lib "kernel32" (hHeap As HANDLE, dwFlags As DWord, lpMem As VoidPtr, dwBytes As SIZE_T) As VoidPtr 738 740 Declare Function HeapSize Lib "kernel32" (hHeap As HANDLE, dwFlags As DWord, lpMem As VoidPtr) As SIZE_T 739 Declare Sub InitializeCriticalSection Lib "kernel32" (ByRef lpCriticalSection As CRITICAL_SECTION)741 Declare Sub InitializeCriticalSection Lib "kernel32" (ByRef CriticalSection As CRITICAL_SECTION) 740 742 Declare Function IsBadReadPtr Lib "kernel32" (lp As VoidPtr, ucb As ULONG_PTR) As BOOL 741 743 Declare Function IsBadWritePtr Lib "kernel32" (lp As VoidPtr, ucb As ULONG_PTR) As BOOL … … 826 828 Declare Function OpenProcess Lib "kernel32" (dwDesiredAccess As DWord, bInheritHandle As Long, dwProcessId As DWord) As HANDLE 827 829 828 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (lpOutputString As BytePtr) 830 Declare Sub OutputDebugStringA Lib "kernel32" (pOutputString As PCSTR) 831 Declare Sub OutputDebugStringW Lib "kernel32" (pOutputString As PCWSTR) 832 #ifdef UNICODE 833 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringW" (pOutputString As PCTSTR) 834 #else 835 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (pOutputString As PCTSTR) 836 #endif 829 837 Declare Function PulseEvent Lib "kernel32" (hEvent As HANDLE) As BOOL 830 838 Declare Sub RaiseException Lib "kernel32" ( … … 841 849 Declare Function SetComputerName Lib "kernel32" Alias "SetComputerNameA" (lpComputerName As BytePtr) As BOOL 842 850 Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (lpPathName As BytePtr) As BOOL 851 Declare Function SearchPath Lib "kernel32" Alias "SearchPathA" (pPath As PCSTR, pFileName As PCSTR, pExtension As PCSTR, BufferLength As DWord, pBuffer As PSTR, ByRef pFilePart As PSTR) As DWord 843 852 Declare Function SetEndOfFile Lib "kernel32" (hFile As HANDLE) As BOOL 844 853 Declare Function SetEnvironmentVariable Lib "kernel32" Alias "SetEnvironmentVariableA" (lpName As BytePtr, lpValue As BytePtr) As BOOL
Note:
See TracChangeset
for help on using the changeset viewer.