Changeset 125 for Include/api_system.sbp


Ignore:
Timestamp:
Mar 2, 2007, 2:57:09 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

#51完了

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/api_system.sbp

    r121 r125  
    335335Declare Function InterlockedExchangePointer Lib "kernel32" Alias "InterlockedExchange" (ByRef Target As VoidPtr, Value As VoidPtr) As VoidPtr
    336336#endif
     337
     338
    337339Declare Function Beep Lib "kernel32" (dwFreq As DWord, dwDuration As DWord) As BOOL
    338340Declare Function CloseHandle Lib "kernel32" (hObject As HANDLE) As BOOL
     
    597599    ByRef FileInformation As BY_HANDLE_FILE_INFORMATION
    598600) As BOOL
    599 Declare Function GetFileSize Lib "kernel32" (hFile As HANDLE, lpFileSizeHigh As DWordPtr) As DWord
     601Declare Function GetFileSize Lib "kernel32" (hFile As HANDLE, pFileSizeHigh As *DWord) As DWord
    600602Declare Function GetFileTime Lib "kernel32" (hFile As HANDLE, ByRef lpCreationTime As FILETIME, ByRef lpLastAccessTime As FILETIME, ByRef lpLastWriteTime As FILETIME) As BOOL
    601603
     
    621623) As BOOL
    622624Declare Function GetPriorityClass Lib "kernel32" (hProcess As HANDLE) As DWord
    623 Declare Function GetProcAddress Lib "kernel32" (hModule As HINSTANCE, lpProcName As BytePtr) As DWord
     625Declare Function GetProcAddress Lib "kernel32" (hModule As HINSTANCE, pProcName As PCSTR) As DWord
    624626Declare Function GetProcessAffinityMask Lib "kernel32" (
    625627    hProcess As HANDLE,
     
    634636) As DWord
    635637
    636 Declare Sub GetStartupInfo Lib "kernel32" Alias "GetStartupInfoA" (ByRef lpStartupInfo As STARTUPINFO)
     638Declare Sub GetStartupInfo Lib "kernel32" Alias "GetStartupInfoA" (ByRef StartupInfo As STARTUPINFO)
    637639
    638640Const STD_INPUT_HANDLE  = -10
     
    655657    wProcessorRevision As Word
    656658End Type
    657 Declare Sub GetSystemInfo Lib "kernel32" (ByRef lpSystemInfo As SYSTEM_INFO)
     659Declare Sub GetSystemInfo Lib "kernel32" (ByRef SystemInfo As SYSTEM_INFO)
    658660
    659661Declare Sub GetSystemTime Lib "kernel32" (ByRef SystemTime As SYSTEMTIME)
     
    666668    pTempFileName As PSTR
    667669) As DWord
    668 Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (nBufferLength As DWord, lpBuffer As BytePtr) As DWord
     670Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (nBufferLength As DWord, lpBuffer As PSTR) As DWord
    669671Declare Function GetThreadContext Lib "kernel32" (hThread As HANDLE, ByRef Context As CONTEXT) As BOOL
    670672
     
    691693Const TIME_NOTIMEMARKER        = &H00000004
    692694Const 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 BOOL
     695Declare 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
    694696
    695697Declare Function GetUserDefaultLCID Lib "kernel32" () As LCID
     
    707709    szCSDVersion[127] As Byte
    708710End Type
    709 Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByRef lpVersionInformation As OSVERSIONINFO) As BOOL
     711Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByRef VersionInformation As OSVERSIONINFO) As BOOL
    710712
    711713Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord
     
    737739Declare Function HeapReAlloc Lib "kernel32" (hHeap As HANDLE, dwFlags As DWord, lpMem As VoidPtr, dwBytes As SIZE_T) As VoidPtr
    738740Declare 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)
     741Declare Sub InitializeCriticalSection Lib "kernel32" (ByRef CriticalSection As CRITICAL_SECTION)
    740742Declare Function IsBadReadPtr Lib "kernel32" (lp As VoidPtr, ucb As ULONG_PTR) As BOOL
    741743Declare Function IsBadWritePtr Lib "kernel32" (lp As VoidPtr, ucb As ULONG_PTR) As BOOL
     
    826828Declare Function OpenProcess Lib "kernel32" (dwDesiredAccess As DWord, bInheritHandle As Long, dwProcessId As DWord) As HANDLE
    827829
    828 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (lpOutputString As BytePtr)
     830Declare Sub OutputDebugStringA Lib "kernel32" (pOutputString As PCSTR)
     831Declare Sub OutputDebugStringW Lib "kernel32" (pOutputString As PCWSTR)
     832#ifdef UNICODE
     833Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringW" (pOutputString As PCTSTR)
     834#else
     835Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (pOutputString As PCTSTR)
     836#endif
    829837Declare Function PulseEvent Lib "kernel32" (hEvent As HANDLE) As BOOL
    830838Declare Sub RaiseException Lib "kernel32" (
     
    841849Declare Function SetComputerName Lib "kernel32" Alias "SetComputerNameA" (lpComputerName As BytePtr) As BOOL
    842850Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (lpPathName As BytePtr) As BOOL
     851Declare 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
    843852Declare Function SetEndOfFile Lib "kernel32" (hFile As HANDLE) As BOOL
    844853Declare Function SetEnvironmentVariable Lib "kernel32" Alias "SetEnvironmentVariableA" (lpName As BytePtr, lpValue As BytePtr) As BOOL
Note: See TracChangeset for help on using the changeset viewer.