Changeset 141 for Include/api_system.sbp


Ignore:
Timestamp:
Mar 8, 2007, 10:42:50 AM (18 years ago)
Author:
イグトランス (egtra)
Message:

#50 API宣言の変更完了

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/api_system.sbp

    r137 r141  
    55
    66#ifdef UNICODE
     7Const _FuncName_CompareString = "CompareStringW"
     8Const _FuncName_CopyFile = "CopyFileW"
     9Const _FuncName_CreateDirectory = "CreateDirectoryW"
     10Const _FuncName_CreateEvent = "CreateEventW"
     11Const _FuncName_CreateMutex = "CreateMutexW"
     12Const _FuncName_CreateSemaphore = "CreateSemaphoreW"
     13Const _FuncName_CreateWaitableTimer = "CreateWaitableTimerW"
     14Const _FuncName_CreateFile = "CreateFileW"
     15Const _FuncName_CreateFileMapping = "CreateFileMappingW"
     16Const _FuncName_OpenFileMapping = "OpenFileMappingW"
     17Const _FuncName_CreateMailslot = "CreateMailslotW"
     18Const _FuncName_CreateProcess = "CreateProcessW"
     19Const _FuncName_DeleteFile = "DeleteFileW"
     20Const _FuncName_FatalAppExit = "FatalAppExitW"
     21Const _FuncName_FindFirstChangeNotification = "FindFirstChangeNotificationW"
     22Const _FuncName_FindFirstFile = "FindFirstFileW"
     23Const _FuncName_FindNextFile = "FindNextFileW"
     24Const _FuncName_FormatMessage = "FormatMessageW"
     25Const _FuncName_FreeEnvironmentStrings = "FreeEnvironmentStringsW"
     26Const _FuncName_GetCompressedFileSize = "GetCompressedFileSizeW"
     27Const _FuncName_GetComputerName = "GetComputerNameW"
     28Const _FuncName_GetCurrentDirectory = "GetCurrentDirectoryW"
     29Const _FuncName_GetDateFormat = "GetDateFormatW"
     30Const _FuncName_GetDiskFreeSpace = "GetDiskFreeSpaceW"
     31Const _FuncName_GetDiskFreeSpaceEx = "GetDiskFreeSpaceExW"
     32Const _FuncName_GetVolumeInformation = "GetVolumeInformationW"
     33Const _FuncName_GetDriveType = "GetDriveTypeW"
     34Const _FuncName_GetEnvironmentVariable = "GetEnvironmentVariableW"
     35Const _FuncName_GetEnvironmentStrings = "GetEnvironmentStringsW"
     36Const _FuncName_GetFileAttributes = "GetFileAttributesW"
     37Const _FuncName_GetFullPathName = "GetFullPathNameW"
     38Const _FuncName_GetLogicalDriveStrings = "GetLogicalDriveStringsW"
     39Const _FuncName_GetModuleFileName = "GetModuleFileNameW"
     40Const _FuncName_GetModuleHandle = "GetModuleHandleW"
     41Const _FuncName_GetShortPathName = "GetShortPathNameW"
     42Const _FuncName_GetStartupInfo = "GetStartupInfoW"
     43Const _FuncName_GetSystemDirectory = "GetSystemDirectoryW"
     44Const _FuncName_GetTempFileName = "GetTempFileNameW"
     45Const _FuncName_GetTempPath = "GetTempPathW"
     46Const _FuncName_GetTimeFormat = "GetTimeFormatW"
     47Const _FuncName_GetUserName = "GetUserNameW"
     48Const _FuncName_GetVersionEx = "GetVersionExW"
     49Const _FuncName_GetWindowsDirectory = "GetWindowsDirectoryW"
     50Const _FuncName_LCMapString = "LCMapStringW"
     51Const _FuncName_LoadLibrary = "LoadLibraryW"
     52Const _FuncName_LoadLibraryEx = "LoadLibraryExW"
     53Const _FuncName_lstrcat = "lstrcatW"
     54Const _FuncName_lstrcmp = "lstrcmpW"
     55Const _FuncName_lstrcmpi = "lstrcmpiW"
    756Const _FuncName_lstrcpy = "lstrcpyW"
     57Const _FuncName_MoveFile = "MoveFileW"
     58Const _FuncName_OpenEvent = "OpenEventW"
     59Const _FuncName_OpenMutex = "OpenMutexW"
     60Const _FuncName_OpenSemaphore = "OpenSemaphoreW"
     61Const _FuncName_OpenWaitableTimer = "OpenWaitableTimerW"
     62Const _FuncName_RemoveDirectory = "RemoveDirectoryW"
     63Const _FuncName_SetComputerName = "SetComputerNameW"
     64Const _FuncName_SetCurrentDirectory = "SetCurrentDirectoryW"
     65Const _FuncName_SearchPath = "SearchPathW"
     66Const _FuncName_SetEnvironmentVariable = "SetEnvironmentVariableW"
     67Const _FuncName_SetFileAttributes = "SetFileAttributesW"
    868#else
     69Const _FuncName_CompareString = "CompareStringA"
     70Const _FuncName_CopyFile = "CopyFileA"
     71Const _FuncName_CreateDirectory = "CreateDirectoryA"
     72Const _FuncName_CreateEvent = "CreateEventA"
     73Const _FuncName_CreateMutex = "CreateMutexA"
     74Const _FuncName_CreateSemaphore = "CreateSemaphoreA"
     75Const _FuncName_CreateWaitableTimer = "CreateWaitableTimerA"
     76Const _FuncName_CreateFile = "CreateFileA"
     77Const _FuncName_CreateFileMapping = "CreateFileMappingA"
     78Const _FuncName_OpenFileMapping = "OpenFileMappingA"
     79Const _FuncName_CreateMailslot = "CreateMailslotA"
     80Const _FuncName_CreateProcess = "CreateProcessA"
     81Const _FuncName_DeleteFile = "DeleteFileA"
     82Const _FuncName_FatalAppExit = "FatalAppExitA"
     83Const _FuncName_FindFirstChangeNotification = "FindFirstChangeNotificationA"
     84Const _FuncName_FindFirstFile = "FindFirstFileA"
     85Const _FuncName_FindNextFile = "FindNextFileA"
     86Const _FuncName_FormatMessage = "FormatMessageA"
     87Const _FuncName_FreeEnvironmentStrings = "FreeEnvironmentStringsA"
     88Const _FuncName_GetCompressedFileSize = "GetCompressedFileSizeA"
     89Const _FuncName_GetComputerName = "GetComputerNameA"
     90Const _FuncName_GetCurrentDirectory = "GetCurrentDirectoryA"
     91Const _FuncName_GetDateFormat = "GetDateFormatA"
     92Const _FuncName_GetDiskFreeSpace = "GetDiskFreeSpaceA"
     93Const _FuncName_GetDiskFreeSpaceEx = "GetDiskFreeSpaceExA"
     94Const _FuncName_GetVolumeInformation = "GetVolumeInformationA"
     95Const _FuncName_GetDriveType = "GetDriveTypeA"
     96Const _FuncName_GetEnvironmentVariable = "GetEnvironmentVariableA"
     97Const _FuncName_GetEnvironmentStrings = "GetEnvironmentStringsA"
     98Const _FuncName_GetFileAttributes = "GetFileAttributesA"
     99Const _FuncName_GetFullPathName = "GetFullPathNameA"
     100Const _FuncName_GetLogicalDriveStrings = "GetLogicalDriveStringsA"
     101Const _FuncName_GetModuleFileName = "GetModuleFileNameA"
     102Const _FuncName_GetModuleHandle = "GetModuleHandleA"
     103Const _FuncName_GetShortPathName = "GetShortPathNameA"
     104Const _FuncName_GetStartupInfo = "GetStartupInfoA"
     105Const _FuncName_GetSystemDirectory = "GetSystemDirectoryA"
     106Const _FuncName_GetTempFileName = "GetTempFileNameA"
     107Const _FuncName_GetTempPath = "GetTempPathA"
     108Const _FuncName_GetTimeFormat = "GetTimeFormatA"
     109Const _FuncName_GetUserName = "GetUserNameA"
     110Const _FuncName_GetVersionEx = "GetVersionExA"
     111Const _FuncName_GetWindowsDirectory = "GetWindowsDirectoryA"
     112Const _FuncName_LCMapString = "LCMapStringA"
     113Const _FuncName_LoadLibrary = "LoadLibraryA"
     114Const _FuncName_LoadLibraryEx = "LoadLibraryExA"
     115Const _FuncName_lstrcat = "lstrcatA"
     116Const _FuncName_lstrcmp = "lstrcmpA"
     117Const _FuncName_lstrcmpi = "lstrcmpiA"
    9118Const _FuncName_lstrcpy = "lstrcpyA"
     119Const _FuncName_MoveFile = "MoveFileA"
     120Const _FuncName_OpenEvent = "OpenEventA"
     121Const _FuncName_OpenMutex = "OpenMutexA"
     122Const _FuncName_OpenSemaphore = "OpenSemaphoreA"
     123Const _FuncName_OpenWaitableTimer = "OpenWaitableTimerA"
     124Const _FuncName_RemoveDirectory = "RemoveDirectoryA"
     125Const _FuncName_SetComputerName = "SetComputerNameA"
     126Const _FuncName_SetCurrentDirectory = "SetCurrentDirectoryA"
     127Const _FuncName_SearchPath = "SearchPathA"
     128Const _FuncName_SetEnvironmentVariable = "SetEnvironmentVariableA"
     129Const _FuncName_SetFileAttributes = "SetFileAttributesA"
    10130#endif
    11131
     
    357477Const CSTR_EQUAL =        2
    358478Const CSTR_GREATER_THAN = 3
    359 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
    360 
    361 Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (lpExistingFileName As LPCSTR, lpNewFileName As LPCSTR, bFailIfExists As BOOL) As BOOL
    362 Declare Function CreateDirectory Lib "kernel32" Alias "CreateDirectoryA" (lpPathName As LPCSTR, lpSecurityAttributes As *SECURITY_ATTRIBUTES) As BOOL
    363 Declare Function CreateEvent Lib "kernel32" Alias "CreateEventA" (pEventAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, bInitialState As BOOL, pName As PCSTR) As HANDLE
    364 Declare Function CreateMutex Lib "kernel32" Alias "CreateMutexA" (lpMutexAttributes As *SECURITY_ATTRIBUTES, bInitialOwner As BOOL, lpName As PCSTR) As HANDLE
    365 Declare Function CreateSemaphore Lib "kernel32" Alias "CreateSemaphoreA" (lpSemaphoreAttributes As *SECURITY_ATTRIBUTES, lInitialCount As Long, lMaximumCount As Long, lpName As LPSTR) As HANDLE
     479Declare Function CompareString Lib "kernel32" Alias _FuncName_CompareString (Locale As LCID, dwCmpFlags As DWord, pString1 As PCTSTR, cchCount1 As Long, pString2 As PCTSTR, cchCount2 As Long) As Long
     480
     481Declare Function CopyFile Lib "kernel32" Alias _FuncName_CopyFile (pExistingFileName As PCTSTR, pNewFileName As PCTSTR, bFailIfExists As BOOL) As BOOL
     482Declare Function CreateDirectory Lib "kernel32" Alias _FuncName_CreateDirectory (pPathName As PCTSTR, pSecurityAttributes As *SECURITY_ATTRIBUTES) As BOOL
     483Declare Function CreateEvent Lib "kernel32" Alias _FuncName_CreateEvent (pEventAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, bInitialState As BOOL, pName As PCTSTR) As HANDLE
     484Declare Function CreateMutex Lib "kernel32" Alias _FuncName_CreateMutex (lpMutexAttributes As *SECURITY_ATTRIBUTES, bInitialOwner As BOOL, lpName As PCTSTR) As HANDLE
     485Declare Function CreateSemaphore Lib "kernel32" Alias _FuncName_CreateSemaphore (pSemaphoreAttributes As *SECURITY_ATTRIBUTES, lInitialCount As Long, lMaximumCount As Long, pName As PCTSTR) As HANDLE
    366486
    367487TypeDef PTIMERAPCROUTINE = *Sub(lpArgToCompletionRoutine As VoidPtr, dwTimerLowValue As DWord, dwTimerHighValue As DWord)
    368 Declare Function CreateWaitableTimer Lib "kernel32" Alias "CreateWaitableTimerA" (lpTimerAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, lpTimerName As LPSTR) As HANDLE
    369 Declare Function OpenWaitableTimer Lib "kernel32" Alias "OpenWaitableTimerA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpTimerName As LPSTR) As HANDLE
    370 Declare Function SetWaitableTimer Lib "kernel32" (hTimer As HANDLE, lpDueTime As *LARGE_INTEGER, lPeriod As Long, pfnCompletionRoutine As PTIMERAPCROUTINE, lpArgToCompletionRoutine As VoidPtr, fResume As BOOL) As BOOL
     488Declare Function CreateWaitableTimer Lib "kernel32" Alias _FuncName_CreateWaitableTimer (pTimerAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, pTimerName As PCTSTR) As HANDLE
     489Declare Function OpenWaitableTimer Lib "kernel32" Alias _FuncName_OpenWaitableTimer (dwDesiredAccess As DWord, bInheritHandle As BOOL, pTimerName As PCTSTR) As HANDLE
     490Declare Function SetWaitableTimer Lib "kernel32" (hTimer As HANDLE, pDueTime As *LARGE_INTEGER, lPeriod As Long, pfnCompletionRoutine As PTIMERAPCROUTINE, pArgToCompletionRoutine As VoidPtr, fResume As BOOL) As BOOL
    371491Declare Function CancelWaitableTimer Lib "kernel32" (hTimer As HANDLE) As BOOL
    372492
     
    403523Const FILE_FLAG_OPEN_REPARSE_POINT =  &H00200000
    404524Const FILE_FLAG_OPEN_NO_RECALL =      &H00100000
    405 Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (lpFileName As *Byte, dwDesiredAccess As DWord, dwShareMode As DWord, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, dwCreationDisposition As DWord, dwFlagsAndAttributes As DWord, hTemplateFile As HANDLE) As HANDLE
     525Declare Function CreateFile Lib "kernel32" Alias _FuncName_CreateFile (pFileName As PCTSTR, dwDesiredAccess As DWord, dwShareMode As DWord, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, dwCreationDisposition As DWord, dwFlagsAndAttributes As DWord, hTemplateFile As HANDLE) As HANDLE
    406526
    407527Const SECTION_QUERY = &H0001
     
    416536Const FILE_MAP_READ   = SECTION_MAP_READ
    417537Const FILE_MAP_ALL_ACCESS  =  SECTION_ALL_ACCESS
    418 Declare Function CreateFileMapping Lib "kernel32" Alias "CreateFileMappingA" (hFile As HANDLE, lpFileMappingAttributes As *SECURITY_ATTRIBUTES, flProtect As DWord, dwMaximumSizeHigh As DWord, dwMaximumSizeLow As DWord, lpName As LPSTR) As HANDLE
    419 Declare Function OpenFileMapping Lib "kernel32" Alias "OpenFileMappingA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE
     538Declare Function CreateFileMapping Lib "kernel32" Alias _FuncName_CreateFileMapping (hFile As HANDLE, pFileMappingAttributes As *SECURITY_ATTRIBUTES, flProtect As DWord, dwMaximumSizeHigh As DWord, dwMaximumSizeLow As DWord, pName As PCSTR) As HANDLE
     539Declare Function OpenFileMapping Lib "kernel32" Alias _FuncName_OpenFileMapping (dwDesiredAccess As DWord, bInheritHandle As BOOL, pName As PCSTR) As HANDLE
    420540Declare Function MapViewOfFile Lib "kernel32" (hFileMappingObject As HANDLE, dwDesiredAccess As DWord, dwFileOffsetHigh As DWord, dwFileOffsetLow As DWord, dwNumberOfBytesToMap As DWord) As VoidPtr
    421541Declare Function MapViewOfFileEx Lib "kernel32" (hFileMappingObject As HANDLE, dwDesiredAccess As DWord, dwFileOffsetHigh As DWord, dwFileOffsetLow As DWord, dwNumberOfBytesToMap As DWord, lpBaseAddress As VoidPtr) As VoidPtr
     
    424544
    425545Const MAILSLOT_WAIT_FOREVER = &HFFFFFFFF
    426 Declare Function CreateMailslot Lib "kernel32" Alias "CreateMailslotA" (lpName As *Byte, nMaxMessageSize As DWord, lReadTimeout As DWord, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES) As HANDLE
     546Declare Function CreateMailslot Lib "kernel32" Alias _FuncName_CreateMailslot (pName As PCTSTR, nMaxMessageSize As DWord, lReadTimeout As DWord, pSecurityAttributes As *SECURITY_ATTRIBUTES) As HANDLE
    427547
    428548Const DEBUG_PROCESS =              &H00000001
     
    456576Const STARTF_USESTDHANDLES =    &H00000100
    457577Const STARTF_USEHOTKEY =        &H00000200
    458 Type STARTUPINFO
     578Type STARTUPINFOW
    459579    cb As DWord
    460     lpReserved As *Byte
    461     lpDesktop As *Byte
    462     lpTitle As *Byte
     580    lpReserved As LPWSTR
     581    lpDesktop As LPWSTR
     582    lpTitle As LPWSTR
    463583    dwX As DWord
    464584    dwY As DWord
     
    476596    hStdError As HANDLE
    477597End Type
     598Type STARTUPINFOA
     599    cb As DWord
     600    lpReserved As LPSTR
     601    lpDesktop As LPSTR
     602    lpTitle As LPSTR
     603    dwX As DWord
     604    dwY As DWord
     605    dwXSize As DWord
     606    dwYSize As DWord
     607    dwXCountChars As DWord
     608    dwYCountChars As DWord
     609    dwFillAttribute As DWord
     610    dwFlags As DWord
     611    wShowWindow As Word
     612    cbReserved2 As Word
     613    lpReserved2 As *Byte
     614    hStdInput As HANDLE
     615    hStdOutput As HANDLE
     616    hStdError As HANDLE
     617End Type
     618#ifdef UNICODE
     619TypeDef STARTUPINFO = STARTUPINFOW
     620#else
     621TypeDef STARTUPINFO = STARTUPINFOA
     622#endif
    478623Type PROCESS_INFORMATION
    479624    hProcess As HANDLE
     
    482627    dwThreadId As DWord
    483628End Type
    484 Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (lpApplicationName As BytePtr, lpCommandLine As BytePtr, ByRef lpProcessAttributes As SECURITY_ATTRIBUTES, ByRef lpThreadAttributes As SECURITY_ATTRIBUTES, bInheritHandles As BOOL, dwCreationFlags As DWord, lpEnvironment As VoidPtr, lpCurrentDirectory As BytePtr, ByRef lpStartupInfo As STARTUPINFO, ByRef lpProcessInformation As PROCESS_INFORMATION) As BOOL
     629Declare Function CreateProcess Lib "kernel32" Alias _FuncName_CreateProcess (pApplicationName As PCTSTR, pCommandLine As PTSTR, ByRef ProcessAttributes As SECURITY_ATTRIBUTES, ByRef ThreadAttributes As SECURITY_ATTRIBUTES, bInheritHandles As BOOL, dwCreationFlags As DWord, lpEnvironment As VoidPtr, pCurrentDirectory As PCTSTR, ByRef lpStartupInfo As STARTUPINFO, ByRef lpProcessInformation As PROCESS_INFORMATION) As BOOL
    485630
    486631TypeDef LPTHREAD_START_ROUTINE = *Function(lpThreadParameter As VoidPtr) As DWord
    487 Declare Function CreateThread Lib "kernel32" Alias "CreateThread" (lpThreadAttributes As *SECURITY_ATTRIBUTES, dwStackSize As DWord, lpStartAddress As LPTHREAD_START_ROUTINE, lpParameter As VoidPtr, dwCreationFlags As DWord, ByRef lpThreadId As DWord) As HANDLE
     632Declare Function CreateThread Lib "kernel32" (lpThreadAttributes As *SECURITY_ATTRIBUTES, dwStackSize As DWord, lpStartAddress As LPTHREAD_START_ROUTINE, pParameter As VoidPtr, dwCreationFlags As DWord, ByRef ThreadId As DWord) As HANDLE
    488633
    489634Declare Sub DebugBreak Lib "kernel32" ()
    490 Declare Sub DeleteCriticalSection Lib "kernel32" (ByRef lpCriticalSection As CRITICAL_SECTION)
    491 Declare Function DeleteFile Lib "kernel32" Alias "DeleteFileA" (pFileName As PCSTR) As BOOL
     635Declare Sub DeleteCriticalSection Lib "kernel32" (ByRef CriticalSection As CRITICAL_SECTION)
     636Declare Function DeleteFile Lib "kernel32" Alias _FuncName_DeleteFile (pFileName As PCTSTR) As BOOL
    492637Declare Function DeviceIoControl Lib "Kernel32" (
    493638    hDevice As HANDLE,
     
    510655Declare Sub ExitProcess Lib "kernel32" (dwExitCode As DWord)
    511656Declare Sub ExitThread Lib "kernel32" (dwExitCode As DWord)
    512 Declare Sub FatalAppExit Lib "kernel32" Alias "FatalAppExitA" (Action As DWord, pMessageText As PCSTR)
     657Declare Sub FatalAppExit Lib "kernel32" Alias _FuncName_FatalAppExit (Action As DWord, pMessageText As PCTSTR)
    513658Declare Function FileTimeToDosDateTime Lib "kernel32" (ByRef lpFileTime As FILETIME, ByRef lpFatDate As Word, ByRef lpFatTime As Word) As BOOL
    514659Declare Function FileTimeToLocalFileTime Lib "kernel32" (ByRef lpFileTime As FILETIME, ByRef lpLocalFileTime As FILETIME) As BOOL
     
    517662Declare Function FindClose Lib "kernel32" (hFindFile As HANDLE) As BOOL
    518663Declare Function FindCloseChangeNotification Lib "kernel32" (hChangeHandle As HANDLE) As BOOL
    519 Declare Function FindFirstChangeNotification Lib "kernel32" Alias "FindFirstChangeNotificationA" (
    520     pPathName As PCSTR,
     664Declare Function FindFirstChangeNotification Lib "kernel32" Alias _FuncName_FindFirstChangeNotification (
     665    pPathName As PCTSTR,
    521666    bWatchSubtree As BOOL,
    522667    dwNotifyFilter As DWord
    523668) As HANDLE
    524669
    525 Type WIN32_FIND_DATA
     670Type WIN32_FIND_DATAW
    526671    dwFileAttributes As DWord
    527672    ftCreationTime As FILETIME
     
    532677    dwReserved0 As DWord
    533678    dwReserved1 As DWord
    534     cFileName[ELM(MAX_PATH)] As Byte
    535     cAlternateFileName[13] As Byte
    536 End Type
     679    cFileName[ELM(MAX_PATH)] As WCHAR
     680    cAlternateFileName[13] As WCHAR
     681End Type
     682Type WIN32_FIND_DATAA
     683    dwFileAttributes As DWord
     684    ftCreationTime As FILETIME
     685    ftLastAccessTime As FILETIME
     686    ftLastWriteTime As FILETIME
     687    nFileSizeHigh As DWord
     688    nFileSizeLow As DWord
     689    dwReserved0 As DWord
     690    dwReserved1 As DWord
     691    cFileName[ELM(MAX_PATH)] As SByte
     692    cAlternateFileName[13] As SByte
     693End Type
     694#ifdef UNICODE
     695TypeDef WIN32_FIND_DATA = WIN32_FIND_DATAW
     696#else
     697TypeDef WIN32_FIND_DATA = WIN32_FIND_DATAA
     698#endif
    537699TypeDef LPWIN32_FIND_DATA = *WIN32_FIND_DATA
    538 Declare Function FindFirstFile Lib "kernel32" Alias "FindFirstFileA" (lpFileName As BytePtr, ByRef lpFindFildData As WIN32_FIND_DATA) As HANDLE
     700Declare Function FindFirstFile Lib "kernel32" Alias _FuncName_FindFirstFile (pFileName As PCTSTR, ByRef FindFildData As WIN32_FIND_DATA) As HANDLE
    539701Declare Function FindNextChangeNotification Lib "kernel32" (hChangeHandle As HANDLE) As BOOL
    540 Declare Function FindNextFile Lib "kernel32" Alias "FindNextFileA" (hFindFile As HANDLE, ByRef lpFindFildData As WIN32_FIND_DATA) As BOOL
     702Declare Function FindNextFile Lib "kernel32" Alias _FuncName_FindNextFile (hFindFile As HANDLE, ByRef FindFildData As WIN32_FIND_DATA) As BOOL
    541703Declare Function FlushFileBuffers Lib "kernel32" (hFile As HANDLE) As BOOL
    542704Declare Function FlushInstructionCache Lib "kernel32"(hProcess As HANDLE, pBaseAddress As VoidPtr, Size As SIZE_T) As BOOL
     
    548710Const FORMAT_MESSAGE_FROM_SYSTEM =     &H00001000
    549711Const FORMAT_MESSAGE_ARGUMENT_ARRAY =  &H00002000
    550 Declare Function FormatMessage Lib "kernel32" Alias "FormatMessageA" (dwFlags As DWord, lpSource As VoidPtr, dwMessageId As DWord, dwLanguageId As DWord, lpBuffer As BytePtr, nSize As DWord, Arguments As DWordPtr) As DWord
    551 Declare Function FreeEnvironmentStrings Lib "kernel32" Alias "FreeEnvironmentStringsA" (pszEnvironmentBlock As PCSTR) As BOOL
     712Declare Function FormatMessage Lib "kernel32" Alias _FuncName_FormatMessage (dwFlags As DWord, lpSource As VoidPtr, dwMessageId As DWord, dwLanguageId As DWord, pBuffer As PTSTR, nSize As DWord, Arguments As *DWord) As DWord
     713Declare Function FreeEnvironmentStrings Lib "kernel32" Alias _FuncName_FreeEnvironmentStrings (pszEnvironmentBlock As PCTSTR) As BOOL
    552714Declare Function FreeLibrary Lib "kernel32" (hLibModule As HINSTANCE) As BOOL
    553715Declare Sub FreeLibraryAndExitThread Lib "kernel32" (hModule As HANDLE, dwExitCode As DWord)
     
    559721Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As PCSTR
    560722#endif
    561 Declare Function GetCompressedFileSize Lib "kernel32" Alias "GetCompressedFileSizeA" (lpFileName As BytePtr, ByRef lpFileSizeHigh As DWord) As DWord
    562 
    563 Const MAX_COMPUTERNAME_LENGTH=15
    564 Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (lpBuffer As BytePtr, ByRef nSize As Long) As Long
    565 
    566 Declare Function GetCurrentDirectory Lib "kernel32" Alias "GetCurrentDirectoryA" (nBufferLength As DWord, lpBuffer As BytePtr) As DWord
     723Declare Function GetCompressedFileSize Lib "kernel32" Alias _FuncName_GetCompressedFileSize (pFileName As PCTSTR, ByRef FileSizeHigh As DWord) As DWord
     724
     725Const MAX_COMPUTERNAME_LENGTH = 15
     726Declare Function GetComputerName Lib "kernel32" Alias _FuncName_GetComputerName (pBuffer As PTSTR, ByRef nSize As Long) As Long
     727
     728Declare Function GetCurrentDirectory Lib "kernel32" Alias _FuncName_GetCurrentDirectory (nBufferLength As DWord, pBuffer As PTSTR) As DWord
    567729Declare Function GetCurrentProcess Lib "kernel32" () As HANDLE
    568730Declare Function GetCurrentProcessId Lib "kernel32" () As DWord
     
    573735Const DATE_LONGDATE =         &H00000002
    574736Const DATE_USE_ALT_CALENDAR = &H00000004
    575 Declare Function GetDateFormat Lib "kernel32" Alias "GetDateFormatA" (Locale As LCID, dwFlags As DWord, ByRef lpDate As SYSTEMTIME, lpFormat As BytePtr, lpDateStr As BytePtr, cchDate As Long) As Long
    576 
    577 Declare Function GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA" (lpRootPathName As BytePtr, lpSectorsPerCluster As *DWord, lpBytesPerSector As *DWord, lpNumberOfFreeClusters As *DWord, lpTotalNumberOfClusters As *DWord) As BOOL
    578 Declare Function GetDiskFreeSpaceEx Lib "kernel32" Alias "GetDiskFreeSpaceExA" (lpDirectoryName As BytePtr, ByRef lpFreeBytesAvailableToCaller As ULARGE_INTEGER, ByRef lpTotalNumberOfBytes As ULARGE_INTEGER, ByRef lpTotalNumberOfFreeBytes As ULARGE_INTEGER) As BOOL
     737Declare Function GetDateFormat Lib "kernel32" Alias _FuncName_GetDateFormat (Locale As LCID, dwFlags As DWord, ByRef Date As SYSTEMTIME, pFormat As PCTSTR, pDateStr As PTSTR, cchDate As Long) As Long
     738
     739Declare Function GetDiskFreeSpace Lib "kernel32" Alias _FuncName_GetDiskFreeSpace (pRootPathName As PCTSTR, lpSectorsPerCluster As *DWord, pBytesPerSector As *DWord, pNumberOfFreeClusters As *DWord, pTotalNumberOfClusters As *DWord) As BOOL
     740Declare Function GetDiskFreeSpaceEx Lib "kernel32" Alias _FuncName_GetDiskFreeSpaceEx (pDirectoryName As PCTSTR, ByRef lpFreeBytesAvailableToCaller As ULARGE_INTEGER, ByRef TotalNumberOfBytes As ULARGE_INTEGER, ByRef TotalNumberOfFreeBytes As ULARGE_INTEGER) As BOOL
    579741
    580742Const DRIVE_UNKNOWN =     0
     
    585747Const DRIVE_CDROM =       5
    586748Const DRIVE_RAMDISK =     6
    587 Declare Function GetVolumeInformation Lib "kernel32" Alias "GetVolumeInformationA" (lpRootPathName As LPCSTR, lpVolumeNameBuffer As LPSTR, nVolumeNameSize As DWord, lpVolumeSerialNumber As *Word, lpMaximumComponentLength As *Word, lpFileSystemFlags As *Word, lpFileSystemNameBuffer As LPSTR, nFileSystemNameSize As DWord) As BOOL
    588 Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (lpRootPathName As BytePtr) As DWord
    589 
    590 Declare Function GetEnvironmentVariable Lib "kernel32" Alias "GetEnvironmentVariableA" (lpName As BytePtr, lpBuffer As BytePtr, nSize As DWord) As DWord
    591 Declare Function GetEnvironmentStrings Lib "kernel32" Alias "GetEnvironmentStringsA" () As VoidPtr
     749Declare Function GetVolumeInformation Lib "kernel32" Alias _FuncName_GetVolumeInformation (pRootPathName As PCTSTR, pVolumeNameBuffer As PTSTR, nVolumeNameSize As DWord, lpVolumeSerialNumber As *Word, lpMaximumComponentLength As *Word, lpFileSystemFlags As *Word, pFileSystemNameBuffer As PTSTR, nFileSystemNameSize As DWord) As BOOL
     750Declare Function GetDriveType Lib "kernel32" Alias _FuncName_GetDriveType (lpRootPathName As PCTSTR) As DWord
     751
     752Declare Function GetEnvironmentVariable Lib "kernel32" Alias _FuncName_GetEnvironmentVariable (lpName As PCTSTR, lpBuffer As PTSTR, nSize As DWord) As DWord
     753Declare Function GetEnvironmentStrings Lib "kernel32" Alias _FuncName_GetEnvironmentStrings () As VoidPtr
    592754Const STILL_ACTIVE = &H00000103
    593755Declare Function GetExitCodeProcess Lib "kernel32" (hProcess As HANDLE, ByRef lpExitCode As DWord) As BOOL
    594756Declare Function GetExitCodeThread Lib "kernel32" (hThread As HANDLE, ByRef lpExitCode As DWord) As BOOL
    595757
    596 Declare Function GetFileAttributes Lib "kernel32" Alias "GetFileAttributesA" (lpFileName As BytePtr) As DWord
     758Declare Function GetFileAttributes Lib "kernel32" Alias _FuncName_GetFileAttributes (lpFileName As PCTSTR) As DWord
    597759Type BY_HANDLE_FILE_INFORMATION
    598760    dwFileAttributes As DWord
     
    621783Declare Function GetFileType Lib "kernel32" (hFile As HANDLE) As DWord
    622784
    623 Declare Function GetFullPathName Lib "kernel32" Alias "GetFullPathNameA" (lpFileName As PCSTR, nBufferLength As DWord, pBuffer As PSTR, lpFilePart As *DWord) As DWord
     785Declare Function GetFullPathName Lib "kernel32" Alias _FuncName_GetFullPathName (lpFileName As PCSTR, nBufferLength As DWord, pBuffer As PSTR, lpFilePart As *DWord) As DWord
    624786Declare Function GetLastError Lib "kernel32" () As DWord
    625787Declare Sub GetLocalTime Lib "kernel32" (ByRef lpSystemTime As SYSTEMTIME)
    626788Declare Function GetLogicalDrives Lib "kernel32" () As DWord
    627 Declare Function GetLogicalDriveStrings Lib "kernel32" Alias "GetLogicalDriveStringsA" (nBufferLength As DWord, pBuffer As PSTR) As DWord
    628 Declare Function GetModuleFileName Lib "kernel32" Alias "GetModuleFileNameA" (hModule As HINSTANCE, lpFileName As BytePtr, nSize As DWord) As DWord
    629 Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (lpModuleName As BytePtr) As HINSTANCE
     789Declare Function GetLogicalDriveStrings Lib "kernel32" Alias _FuncName_GetLogicalDriveStrings (nBufferLength As DWord, pBuffer As PTSTR) As DWord
     790Declare Function GetModuleFileName Lib "kernel32" Alias _FuncName_GetModuleFileName (hModule As HINSTANCE, lpFileName As PTSTR, nSize As DWord) As DWord
     791Declare Function GetModuleHandle Lib "kernel32" Alias _FuncName_GetModuleHandle (lpModuleName As PTSTR) As HINSTANCE
    630792Declare Function GetOverlappedResult Lib "kernel32" (
    631793    hFile As HANDLE,
     
    642804) As BOOL
    643805Declare Function GetProcessHeap Lib "kernel32" () As HANDLE
    644 Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (
    645     pszLongPath As PCSTR,
    646     pszShortPath As PSTR,
     806Declare Function GetShortPathName Lib "kernel32" Alias _FuncName_GetShortPathName (
     807    pszLongPath As PCTSTR,
     808    pszShortPath As PTSTR,
    647809    cchBuffer As DWord
    648810) As DWord
    649811
    650 Declare Sub GetStartupInfo Lib "kernel32" Alias "GetStartupInfoA" (ByRef StartupInfo As STARTUPINFO)
     812Declare Sub GetStartupInfo Lib "kernel32" Alias _FuncName_GetStartupInfo (ByRef StartupInfo As STARTUPINFO)
    651813
    652814Const STD_INPUT_HANDLE  = -10
     
    655817Declare Function GetStdHandle Lib "kernel32" (nStdHandle As DWord) As HANDLE
    656818
    657 Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord
     819Declare Function GetSystemDirectory Lib "kernel32" Alias _FuncName_GetSystemDirectory (pBuffer As PTSTR, uSize As DWord) As DWord
    658820
    659821Type SYSTEM_INFO
     
    674836Declare Sub GetSystemTimeAsFileTime Lib "kernel32" (ByRef SystemTimeAsFileTime As FILETIME)
    675837
    676 Declare Function GetTempFileName Lib "kernel32" Alias "GetTempFileNameA" (
    677     pPathName As PCSTR,
    678     pPrefixString As PCSTR,
     838Declare Function GetTempFileName Lib "kernel32" Alias _FuncName_GetTempFileName (
     839    pPathName As PCTSTR,
     840    pPrefixString As PCTSTR,
    679841    uUnique As DWord,
    680     pTempFileName As PSTR
     842    pTempFileName As PTSTR
    681843) As DWord
    682 Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (nBufferLength As DWord, lpBuffer As PSTR) As DWord
     844Declare Function GetTempPath Lib "kernel32" Alias _FuncName_GetTempPath (nBufferLength As DWord, lpBuffer As PTSTR) As DWord
    683845Declare Function GetThreadContext Lib "kernel32" (hThread As HANDLE, ByRef Context As CONTEXT) As BOOL
    684846
     
    705867Const TIME_NOTIMEMARKER        = &H00000004
    706868Const TIME_FORCE24HOURFORMAT   = &H00000008
    707 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
     869Declare Function GetTimeFormat Lib "kernel32" Alias _FuncName_GetTimeFormat (Locale As LCID, dwFlags As DWord, ByRef Time As SYSTEMTIME, lpFormat As PCTSTR, lpTimeStr As PTSTR, cchTime As DWord) As BOOL
    708870
    709871Declare Function GetUserDefaultLCID Lib "kernel32" () As LCID
    710 Declare Function GetUserName Lib "advapi32" Alias "GetUserNameA" (pBuffer As PSTR, ByRef nSize As DWord) As BOOL
     872Declare Function GetUserName Lib "advapi32" Alias _FuncName_GetUserName (pBuffer As PTSTR, ByRef nSize As DWord) As BOOL
    711873
    712874Const VER_PLATFORM_WIN32s        = 0
    713875Const VER_PLATFORM_WIN32_WINDOWS = 1
    714876Const VER_PLATFORM_WIN32_NT      = 2
    715 Type OSVERSIONINFO
     877Type OSVERSIONINFOW
    716878    dwOSVersionInfoSize As DWord
    717879    dwMajorVersion As DWord
     
    719881    dwBuildNumber As DWord
    720882    dwPlatformId As DWord
    721     szCSDVersion[127] As Byte
    722 End Type
    723 Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByRef VersionInformation As OSVERSIONINFO) As BOOL
    724 
    725 Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord
     883    szCSDVersion[ELM(128)] As WCHAR
     884End Type
     885Type OSVERSIONINFOA
     886    dwOSVersionInfoSize As DWord
     887    dwMajorVersion As DWord
     888    dwMinorVersion As DWord
     889    dwBuildNumber As DWord
     890    dwPlatformId As DWord
     891    szCSDVersion[ELM(128)] As SByte
     892End Type
     893#ifdef UNICODE
     894TypeDef OSVERSIONINFO = OSVERSIONINFOW
     895#else
     896TypeDef OSVERSIONINFO = OSVERSIONINFOA
     897#endif
     898Declare Function GetVersionEx Lib "kernel32" Alias _FuncName_GetVersionEx (ByRef VersionInformation As OSVERSIONINFO) As BOOL
     899
     900Declare Function GetWindowsDirectory Lib "kernel32" Alias _FuncName_GetWindowsDirectory (pBuffer As PTSTR, uSize As DWord) As DWord
    726901Declare Function GlobalAlloc Lib "kernel32" (uFlags As DWord, dwBytes As SIZE_T) As HGLOBAL
    727902Declare Function GlobalFrags Lib "kernel32" (hMem As HGLOBAL) As DWord
     
    771946Const LCMAP_SIMPLIFIED_CHINESE  = &H02000000  ' map traditional chinese to simplified chinese
    772947Const LCMAP_TRADITIONAL_CHINESE = &H04000000  ' map simplified chinese to traditional chinese
    773 Declare Function LCMapString Lib "kernel32" Alias "LCMapStringA" (Locale As LCID, dwMapFlags As DWord, lpSrcStr As LPCSTR, cchSrc As Long, lpDestStr As LPSTR, cchDest As Long) As Long
     948Declare Function LCMapString Lib "kernel32" Alias _FuncName_LCMapString (Locale As LCID, dwMapFlags As DWord, lpSrcStr As LPCTSTR, cchSrc As Long, lpDestStr As LPTSTR, cchDest As Long) As Long
    774949
    775950Declare Sub LeaveCriticalSection Lib "kernel32" (ByRef lpCriticalSection As CRITICAL_SECTION)
     
    783958Declare Function LocalUnlock Lib "kernel32" (hMem As HLOCAL) As BOOL
    784959Declare Function LockFile Lib "kernel32" (hFile As DWord, dwFileOffsetLow As DWord, dwFileOffsetHigh As DWord, nNumberOfBytesToLockLow As DWord, nNumberOfBytesToLockHigh As DWord) As BOOL
    785 Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (pLibFileName As PCSTR) As HINSTANCE
     960Declare Function LoadLibrary Lib "kernel32" Alias _FuncName_LoadLibrary (pLibFileName As PCTSTR) As HINSTANCE
    786961
    787962Const DONT_RESOLVE_DLL_REFERENCES   = &h00000001
     
    789964Const LOAD_WITH_ALTERED_SEARCH_PATH = &h00000008
    790965Const LOAD_IGNORE_CODE_AUTHZ_LEVEL  = &h00000010
    791 Declare Function LoadLibraryEx Lib "kernel32" Alias "LoadLibraryExA" (pLibFileName As PCSTR, hFile As HANDLE, dwFlags As DWord) As HINSTANCE
    792 
    793 Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" (pString1 As PSTR, pString2 As PCSTR) As PSTR
    794 Declare Function lstrcmp Lib "kernel32" Alias "lstrcmpA" (pString1 As PCSTR, pString2 As PCSTR) As Long
    795 Declare Function lstrcmpi Lib "kernel32" Alias "lstrcmpiA" (pString1 As PCSTR, pString2 As PCSTR) As Long
     966Declare Function LoadLibraryEx Lib "kernel32" Alias _FuncName_LoadLibraryEx (pLibFileName As PCTSTR, hFile As HANDLE, dwFlags As DWord) As HINSTANCE
     967
     968Declare Function lstrcat Lib "kernel32" Alias _FuncName_lstrcat (pString1 As PTSTR, pString2 As PCTSTR) As PSTR
     969Declare Function lstrcmp Lib "kernel32" Alias _FuncName_lstrcmp (pString1 As PCTSTR, pString2 As PCTSTR) As Long
     970Declare Function lstrcmpi Lib "kernel32" Alias _FuncName_lstrcmpi (pString1 As PCTSTR, pString2 As PCTSTR) As Long
    796971Declare Function lstrcpy Lib "kernel32" Alias _FuncName_lstrcpy (pString1 As PTSTR, pString2 As PCTSTR) As PSTR
    797972Declare Function lstrlenA Lib "kernel32" (pString As PCSTR) As Long
    798973Declare Function lstrlenW Lib "kernel32" (pString As PCWSTR) As Long
    799974#ifdef UNICODE
    800 Declare Function lstrlen Lib "kernel32" Alias "lstrlenW" (pString As PCTSTR) As Long
     975Declare Function lstrlen Lib "kernel32" Alias "lstrlenW" (pString As PCWSTR) As Long
    801976#else
    802 Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (pString As PCTSTR) As Long
     977Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (pString As PCSTR) As Long
    803978#endif
    804979Declare Sub memcpy Lib "kernel32" Alias "RtlMoveMemory" (pDest As VoidPtr, pSrc As VoidPtr, length As SIZE_T)
    805 Declare Function MoveFile Lib "kernel32" Alias "MoveFileA" (lpExistingFileName As BytePtr, lpNewFileName As BytePtr) As BOOL
     980Declare Function MoveFile Lib "kernel32" Alias _FuncName_MoveFile (lpExistingFileName As LPCTSTR, lpNewFileName As LPCTSTR) As BOOL
    806981Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As VoidPtr, pSrc As VoidPtr, length As SIZE_T)
    807982
     
    822997Declare Function MultiByteToWideChar Lib "kernel32" (CodePage As DWord, dwFlags As DWord, pMultiByteStr As PCSTR, cchMultiByte As Long, pWideCharStr As PWSTR, cchWideChar As Long) As Long
    823998
    824 Declare Function OpenEvent Lib "kernel32" Alias "OpenEventA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, pName As PCSTR) As HANDLE
    825 Declare Function OpenMutex Lib "kernel32" Alias "OpenMutexA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE
    826 Declare Function OpenSemaphore Lib "kernel32" Alias "OpenSemaphoreA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE
     999Declare Function OpenEvent Lib "kernel32" Alias _FuncName_OpenEvent (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPCTSTR) As HANDLE
     1000Declare Function OpenMutex Lib "kernel32" Alias _FuncName_OpenMutex (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPCTSTR) As HANDLE
     1001Declare Function OpenSemaphore Lib "kernel32" Alias _FuncName_OpenSemaphore (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPCTSTR) As HANDLE
    8271002
    8281003Const PROCESS_TERMINATE =         &H0001
     
    8431018Declare Sub OutputDebugStringW Lib "kernel32" (pOutputString As PCWSTR)
    8441019#ifdef UNICODE
    845 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringW" (pOutputString As PCTSTR)
     1020Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringW" (pOutputString As PCWSTR)
    8461021#else
    847 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (pOutputString As PCTSTR)
     1022Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (pOutputString As PCSTR)
    8481023#endif
    8491024Declare Function PulseEvent Lib "kernel32" (hEvent As HANDLE) As BOOL
     
    8561031Declare Function ReleaseMutex Lib "kernel32" (hMutex As HANDLE) As BOOL
    8571032Declare Function ReleaseSemaphore Lib "kernel32" (hSemaphore As HANDLE, lReleaseCount As Long, ByRef lpPreviousCount As Long) As BOOL
    858 Declare Function RemoveDirectory Lib "kernel32" Alias "RemoveDirectoryA" (lpPathName As BytePtr) As BOOL
     1033Declare Function RemoveDirectory Lib "kernel32" Alias _FuncName_RemoveDirectory (lpPathName As LPCTSTR) As BOOL
    8591034Declare Function ResetEvent Lib "kernel32" (hEvent As HANDLE) As BOOL
    8601035Declare Function ResumeThread Lib "kernel32" (hThread As HANDLE) As DWord
    861 Declare Function SetComputerName Lib "kernel32" Alias "SetComputerNameA" (lpComputerName As BytePtr) As BOOL
    862 Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (lpPathName As BytePtr) As BOOL
    863 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
     1036Declare Function SetComputerName Lib "kernel32" Alias _FuncName_SetComputerName (lpComputerName As LPCTSTR) As BOOL
     1037Declare Function SetCurrentDirectory Lib "kernel32" Alias _FuncName_SetCurrentDirectory (lpPathName As LPCTSTR) As BOOL
     1038Declare Function SearchPath Lib "kernel32" Alias _FuncName_SearchPath (pPath As PCSTR, pFileName As PCTSTR, pExtension As PCTSTR, BufferLength As DWord, pBuffer As PTSTR, ByRef pFilePart As PTSTR) As DWord
    8641039Declare Function SetEndOfFile Lib "kernel32" (hFile As HANDLE) As BOOL
    865 Declare Function SetEnvironmentVariable Lib "kernel32" Alias "SetEnvironmentVariableA" (lpName As BytePtr, lpValue As BytePtr) As BOOL
     1040Declare Function SetEnvironmentVariable Lib "kernel32" Alias _FuncName_SetEnvironmentVariable (lpName As LPCTSTR, lpValue As LPTSTR) As BOOL
    8661041
    8671042Const SEM_FAILCRITICALERRORS = &h0001
     
    8711046Declare Function SetErrorMode Lib "kernel32" (uMode As DWord) As DWord
    8721047Declare Function SetEvent Lib "kernel32" (hEvent As HANDLE) As BOOL
    873 Declare Function SetFileAttributes Lib "kernel32" Alias "SetFileAttributesA" (lpFileName As BytePtr, dwFileAttributes As DWord) As BOOL
     1048Declare Function SetFileAttributes Lib "kernel32" Alias _FuncName_SetFileAttributes (lpFileName As LPCTSTR, dwFileAttributes As DWord) As BOOL
    8741049
    8751050Const FILE_BEGIN =   0
Note: See TracChangeset for help on using the changeset viewer.