Changeset 141 for Include/api_system.sbp
- Timestamp:
- Mar 8, 2007, 10:42:50 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_system.sbp
r137 r141 5 5 6 6 #ifdef UNICODE 7 Const _FuncName_CompareString = "CompareStringW" 8 Const _FuncName_CopyFile = "CopyFileW" 9 Const _FuncName_CreateDirectory = "CreateDirectoryW" 10 Const _FuncName_CreateEvent = "CreateEventW" 11 Const _FuncName_CreateMutex = "CreateMutexW" 12 Const _FuncName_CreateSemaphore = "CreateSemaphoreW" 13 Const _FuncName_CreateWaitableTimer = "CreateWaitableTimerW" 14 Const _FuncName_CreateFile = "CreateFileW" 15 Const _FuncName_CreateFileMapping = "CreateFileMappingW" 16 Const _FuncName_OpenFileMapping = "OpenFileMappingW" 17 Const _FuncName_CreateMailslot = "CreateMailslotW" 18 Const _FuncName_CreateProcess = "CreateProcessW" 19 Const _FuncName_DeleteFile = "DeleteFileW" 20 Const _FuncName_FatalAppExit = "FatalAppExitW" 21 Const _FuncName_FindFirstChangeNotification = "FindFirstChangeNotificationW" 22 Const _FuncName_FindFirstFile = "FindFirstFileW" 23 Const _FuncName_FindNextFile = "FindNextFileW" 24 Const _FuncName_FormatMessage = "FormatMessageW" 25 Const _FuncName_FreeEnvironmentStrings = "FreeEnvironmentStringsW" 26 Const _FuncName_GetCompressedFileSize = "GetCompressedFileSizeW" 27 Const _FuncName_GetComputerName = "GetComputerNameW" 28 Const _FuncName_GetCurrentDirectory = "GetCurrentDirectoryW" 29 Const _FuncName_GetDateFormat = "GetDateFormatW" 30 Const _FuncName_GetDiskFreeSpace = "GetDiskFreeSpaceW" 31 Const _FuncName_GetDiskFreeSpaceEx = "GetDiskFreeSpaceExW" 32 Const _FuncName_GetVolumeInformation = "GetVolumeInformationW" 33 Const _FuncName_GetDriveType = "GetDriveTypeW" 34 Const _FuncName_GetEnvironmentVariable = "GetEnvironmentVariableW" 35 Const _FuncName_GetEnvironmentStrings = "GetEnvironmentStringsW" 36 Const _FuncName_GetFileAttributes = "GetFileAttributesW" 37 Const _FuncName_GetFullPathName = "GetFullPathNameW" 38 Const _FuncName_GetLogicalDriveStrings = "GetLogicalDriveStringsW" 39 Const _FuncName_GetModuleFileName = "GetModuleFileNameW" 40 Const _FuncName_GetModuleHandle = "GetModuleHandleW" 41 Const _FuncName_GetShortPathName = "GetShortPathNameW" 42 Const _FuncName_GetStartupInfo = "GetStartupInfoW" 43 Const _FuncName_GetSystemDirectory = "GetSystemDirectoryW" 44 Const _FuncName_GetTempFileName = "GetTempFileNameW" 45 Const _FuncName_GetTempPath = "GetTempPathW" 46 Const _FuncName_GetTimeFormat = "GetTimeFormatW" 47 Const _FuncName_GetUserName = "GetUserNameW" 48 Const _FuncName_GetVersionEx = "GetVersionExW" 49 Const _FuncName_GetWindowsDirectory = "GetWindowsDirectoryW" 50 Const _FuncName_LCMapString = "LCMapStringW" 51 Const _FuncName_LoadLibrary = "LoadLibraryW" 52 Const _FuncName_LoadLibraryEx = "LoadLibraryExW" 53 Const _FuncName_lstrcat = "lstrcatW" 54 Const _FuncName_lstrcmp = "lstrcmpW" 55 Const _FuncName_lstrcmpi = "lstrcmpiW" 7 56 Const _FuncName_lstrcpy = "lstrcpyW" 57 Const _FuncName_MoveFile = "MoveFileW" 58 Const _FuncName_OpenEvent = "OpenEventW" 59 Const _FuncName_OpenMutex = "OpenMutexW" 60 Const _FuncName_OpenSemaphore = "OpenSemaphoreW" 61 Const _FuncName_OpenWaitableTimer = "OpenWaitableTimerW" 62 Const _FuncName_RemoveDirectory = "RemoveDirectoryW" 63 Const _FuncName_SetComputerName = "SetComputerNameW" 64 Const _FuncName_SetCurrentDirectory = "SetCurrentDirectoryW" 65 Const _FuncName_SearchPath = "SearchPathW" 66 Const _FuncName_SetEnvironmentVariable = "SetEnvironmentVariableW" 67 Const _FuncName_SetFileAttributes = "SetFileAttributesW" 8 68 #else 69 Const _FuncName_CompareString = "CompareStringA" 70 Const _FuncName_CopyFile = "CopyFileA" 71 Const _FuncName_CreateDirectory = "CreateDirectoryA" 72 Const _FuncName_CreateEvent = "CreateEventA" 73 Const _FuncName_CreateMutex = "CreateMutexA" 74 Const _FuncName_CreateSemaphore = "CreateSemaphoreA" 75 Const _FuncName_CreateWaitableTimer = "CreateWaitableTimerA" 76 Const _FuncName_CreateFile = "CreateFileA" 77 Const _FuncName_CreateFileMapping = "CreateFileMappingA" 78 Const _FuncName_OpenFileMapping = "OpenFileMappingA" 79 Const _FuncName_CreateMailslot = "CreateMailslotA" 80 Const _FuncName_CreateProcess = "CreateProcessA" 81 Const _FuncName_DeleteFile = "DeleteFileA" 82 Const _FuncName_FatalAppExit = "FatalAppExitA" 83 Const _FuncName_FindFirstChangeNotification = "FindFirstChangeNotificationA" 84 Const _FuncName_FindFirstFile = "FindFirstFileA" 85 Const _FuncName_FindNextFile = "FindNextFileA" 86 Const _FuncName_FormatMessage = "FormatMessageA" 87 Const _FuncName_FreeEnvironmentStrings = "FreeEnvironmentStringsA" 88 Const _FuncName_GetCompressedFileSize = "GetCompressedFileSizeA" 89 Const _FuncName_GetComputerName = "GetComputerNameA" 90 Const _FuncName_GetCurrentDirectory = "GetCurrentDirectoryA" 91 Const _FuncName_GetDateFormat = "GetDateFormatA" 92 Const _FuncName_GetDiskFreeSpace = "GetDiskFreeSpaceA" 93 Const _FuncName_GetDiskFreeSpaceEx = "GetDiskFreeSpaceExA" 94 Const _FuncName_GetVolumeInformation = "GetVolumeInformationA" 95 Const _FuncName_GetDriveType = "GetDriveTypeA" 96 Const _FuncName_GetEnvironmentVariable = "GetEnvironmentVariableA" 97 Const _FuncName_GetEnvironmentStrings = "GetEnvironmentStringsA" 98 Const _FuncName_GetFileAttributes = "GetFileAttributesA" 99 Const _FuncName_GetFullPathName = "GetFullPathNameA" 100 Const _FuncName_GetLogicalDriveStrings = "GetLogicalDriveStringsA" 101 Const _FuncName_GetModuleFileName = "GetModuleFileNameA" 102 Const _FuncName_GetModuleHandle = "GetModuleHandleA" 103 Const _FuncName_GetShortPathName = "GetShortPathNameA" 104 Const _FuncName_GetStartupInfo = "GetStartupInfoA" 105 Const _FuncName_GetSystemDirectory = "GetSystemDirectoryA" 106 Const _FuncName_GetTempFileName = "GetTempFileNameA" 107 Const _FuncName_GetTempPath = "GetTempPathA" 108 Const _FuncName_GetTimeFormat = "GetTimeFormatA" 109 Const _FuncName_GetUserName = "GetUserNameA" 110 Const _FuncName_GetVersionEx = "GetVersionExA" 111 Const _FuncName_GetWindowsDirectory = "GetWindowsDirectoryA" 112 Const _FuncName_LCMapString = "LCMapStringA" 113 Const _FuncName_LoadLibrary = "LoadLibraryA" 114 Const _FuncName_LoadLibraryEx = "LoadLibraryExA" 115 Const _FuncName_lstrcat = "lstrcatA" 116 Const _FuncName_lstrcmp = "lstrcmpA" 117 Const _FuncName_lstrcmpi = "lstrcmpiA" 9 118 Const _FuncName_lstrcpy = "lstrcpyA" 119 Const _FuncName_MoveFile = "MoveFileA" 120 Const _FuncName_OpenEvent = "OpenEventA" 121 Const _FuncName_OpenMutex = "OpenMutexA" 122 Const _FuncName_OpenSemaphore = "OpenSemaphoreA" 123 Const _FuncName_OpenWaitableTimer = "OpenWaitableTimerA" 124 Const _FuncName_RemoveDirectory = "RemoveDirectoryA" 125 Const _FuncName_SetComputerName = "SetComputerNameA" 126 Const _FuncName_SetCurrentDirectory = "SetCurrentDirectoryA" 127 Const _FuncName_SearchPath = "SearchPathA" 128 Const _FuncName_SetEnvironmentVariable = "SetEnvironmentVariableA" 129 Const _FuncName_SetFileAttributes = "SetFileAttributesA" 10 130 #endif 11 131 … … 357 477 Const CSTR_EQUAL = 2 358 478 Const 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 Long360 361 Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (lpExistingFileName As LPCSTR, lpNewFileName As LPCSTR, bFailIfExists As BOOL) As BOOL362 Declare Function CreateDirectory Lib "kernel32" Alias "CreateDirectoryA" (lpPathName As LPCSTR, lpSecurityAttributes As *SECURITY_ATTRIBUTES) As BOOL363 Declare Function CreateEvent Lib "kernel32" Alias "CreateEventA" (pEventAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, bInitialState As BOOL, pName As PCSTR) As HANDLE364 Declare Function CreateMutex Lib "kernel32" Alias "CreateMutexA" (lpMutexAttributes As *SECURITY_ATTRIBUTES, bInitialOwner As BOOL, lpName As PCSTR) As HANDLE365 Declare Function CreateSemaphore Lib "kernel32" Alias "CreateSemaphoreA" (lpSemaphoreAttributes As *SECURITY_ATTRIBUTES, lInitialCount As Long, lMaximumCount As Long, lpName As LPSTR) As HANDLE479 Declare 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 481 Declare Function CopyFile Lib "kernel32" Alias _FuncName_CopyFile (pExistingFileName As PCTSTR, pNewFileName As PCTSTR, bFailIfExists As BOOL) As BOOL 482 Declare Function CreateDirectory Lib "kernel32" Alias _FuncName_CreateDirectory (pPathName As PCTSTR, pSecurityAttributes As *SECURITY_ATTRIBUTES) As BOOL 483 Declare Function CreateEvent Lib "kernel32" Alias _FuncName_CreateEvent (pEventAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, bInitialState As BOOL, pName As PCTSTR) As HANDLE 484 Declare Function CreateMutex Lib "kernel32" Alias _FuncName_CreateMutex (lpMutexAttributes As *SECURITY_ATTRIBUTES, bInitialOwner As BOOL, lpName As PCTSTR) As HANDLE 485 Declare Function CreateSemaphore Lib "kernel32" Alias _FuncName_CreateSemaphore (pSemaphoreAttributes As *SECURITY_ATTRIBUTES, lInitialCount As Long, lMaximumCount As Long, pName As PCTSTR) As HANDLE 366 486 367 487 TypeDef 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 HANDLE369 Declare Function OpenWaitableTimer Lib "kernel32" Alias "OpenWaitableTimerA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpTimerName As LPSTR) As HANDLE370 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 BOOL488 Declare Function CreateWaitableTimer Lib "kernel32" Alias _FuncName_CreateWaitableTimer (pTimerAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, pTimerName As PCTSTR) As HANDLE 489 Declare Function OpenWaitableTimer Lib "kernel32" Alias _FuncName_OpenWaitableTimer (dwDesiredAccess As DWord, bInheritHandle As BOOL, pTimerName As PCTSTR) As HANDLE 490 Declare 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 371 491 Declare Function CancelWaitableTimer Lib "kernel32" (hTimer As HANDLE) As BOOL 372 492 … … 403 523 Const FILE_FLAG_OPEN_REPARSE_POINT = &H00200000 404 524 Const 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 HANDLE525 Declare 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 406 526 407 527 Const SECTION_QUERY = &H0001 … … 416 536 Const FILE_MAP_READ = SECTION_MAP_READ 417 537 Const 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 HANDLE419 Declare Function OpenFileMapping Lib "kernel32" Alias "OpenFileMappingA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE538 Declare 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 539 Declare Function OpenFileMapping Lib "kernel32" Alias _FuncName_OpenFileMapping (dwDesiredAccess As DWord, bInheritHandle As BOOL, pName As PCSTR) As HANDLE 420 540 Declare Function MapViewOfFile Lib "kernel32" (hFileMappingObject As HANDLE, dwDesiredAccess As DWord, dwFileOffsetHigh As DWord, dwFileOffsetLow As DWord, dwNumberOfBytesToMap As DWord) As VoidPtr 421 541 Declare Function MapViewOfFileEx Lib "kernel32" (hFileMappingObject As HANDLE, dwDesiredAccess As DWord, dwFileOffsetHigh As DWord, dwFileOffsetLow As DWord, dwNumberOfBytesToMap As DWord, lpBaseAddress As VoidPtr) As VoidPtr … … 424 544 425 545 Const MAILSLOT_WAIT_FOREVER = &HFFFFFFFF 426 Declare Function CreateMailslot Lib "kernel32" Alias "CreateMailslotA" (lpName As *Byte, nMaxMessageSize As DWord, lReadTimeout As DWord, ByRef lpSecurityAttributes AsSECURITY_ATTRIBUTES) As HANDLE546 Declare Function CreateMailslot Lib "kernel32" Alias _FuncName_CreateMailslot (pName As PCTSTR, nMaxMessageSize As DWord, lReadTimeout As DWord, pSecurityAttributes As *SECURITY_ATTRIBUTES) As HANDLE 427 547 428 548 Const DEBUG_PROCESS = &H00000001 … … 456 576 Const STARTF_USESTDHANDLES = &H00000100 457 577 Const STARTF_USEHOTKEY = &H00000200 458 Type STARTUPINFO 578 Type STARTUPINFOW 459 579 cb As DWord 460 lpReserved As *Byte461 lpDesktop As *Byte462 lpTitle As *Byte580 lpReserved As LPWSTR 581 lpDesktop As LPWSTR 582 lpTitle As LPWSTR 463 583 dwX As DWord 464 584 dwY As DWord … … 476 596 hStdError As HANDLE 477 597 End Type 598 Type 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 617 End Type 618 #ifdef UNICODE 619 TypeDef STARTUPINFO = STARTUPINFOW 620 #else 621 TypeDef STARTUPINFO = STARTUPINFOA 622 #endif 478 623 Type PROCESS_INFORMATION 479 624 hProcess As HANDLE … … 482 627 dwThreadId As DWord 483 628 End 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 BOOL629 Declare 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 485 630 486 631 TypeDef 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 HANDLE632 Declare 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 488 633 489 634 Declare 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 BOOL635 Declare Sub DeleteCriticalSection Lib "kernel32" (ByRef CriticalSection As CRITICAL_SECTION) 636 Declare Function DeleteFile Lib "kernel32" Alias _FuncName_DeleteFile (pFileName As PCTSTR) As BOOL 492 637 Declare Function DeviceIoControl Lib "Kernel32" ( 493 638 hDevice As HANDLE, … … 510 655 Declare Sub ExitProcess Lib "kernel32" (dwExitCode As DWord) 511 656 Declare Sub ExitThread Lib "kernel32" (dwExitCode As DWord) 512 Declare Sub FatalAppExit Lib "kernel32" Alias "FatalAppExitA" (Action As DWord, pMessageText As PCSTR)657 Declare Sub FatalAppExit Lib "kernel32" Alias _FuncName_FatalAppExit (Action As DWord, pMessageText As PCTSTR) 513 658 Declare Function FileTimeToDosDateTime Lib "kernel32" (ByRef lpFileTime As FILETIME, ByRef lpFatDate As Word, ByRef lpFatTime As Word) As BOOL 514 659 Declare Function FileTimeToLocalFileTime Lib "kernel32" (ByRef lpFileTime As FILETIME, ByRef lpLocalFileTime As FILETIME) As BOOL … … 517 662 Declare Function FindClose Lib "kernel32" (hFindFile As HANDLE) As BOOL 518 663 Declare Function FindCloseChangeNotification Lib "kernel32" (hChangeHandle As HANDLE) As BOOL 519 Declare Function FindFirstChangeNotification Lib "kernel32" Alias "FindFirstChangeNotificationA"(520 pPathName As PC STR,664 Declare Function FindFirstChangeNotification Lib "kernel32" Alias _FuncName_FindFirstChangeNotification ( 665 pPathName As PCTSTR, 521 666 bWatchSubtree As BOOL, 522 667 dwNotifyFilter As DWord 523 668 ) As HANDLE 524 669 525 Type WIN32_FIND_DATA 670 Type WIN32_FIND_DATAW 526 671 dwFileAttributes As DWord 527 672 ftCreationTime As FILETIME … … 532 677 dwReserved0 As DWord 533 678 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 681 End Type 682 Type 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 693 End Type 694 #ifdef UNICODE 695 TypeDef WIN32_FIND_DATA = WIN32_FIND_DATAW 696 #else 697 TypeDef WIN32_FIND_DATA = WIN32_FIND_DATAA 698 #endif 537 699 TypeDef LPWIN32_FIND_DATA = *WIN32_FIND_DATA 538 Declare Function FindFirstFile Lib "kernel32" Alias "FindFirstFileA" (lpFileName As BytePtr, ByRef lpFindFildData As WIN32_FIND_DATA) As HANDLE700 Declare Function FindFirstFile Lib "kernel32" Alias _FuncName_FindFirstFile (pFileName As PCTSTR, ByRef FindFildData As WIN32_FIND_DATA) As HANDLE 539 701 Declare 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 BOOL702 Declare Function FindNextFile Lib "kernel32" Alias _FuncName_FindNextFile (hFindFile As HANDLE, ByRef FindFildData As WIN32_FIND_DATA) As BOOL 541 703 Declare Function FlushFileBuffers Lib "kernel32" (hFile As HANDLE) As BOOL 542 704 Declare Function FlushInstructionCache Lib "kernel32"(hProcess As HANDLE, pBaseAddress As VoidPtr, Size As SIZE_T) As BOOL … … 548 710 Const FORMAT_MESSAGE_FROM_SYSTEM = &H00001000 549 711 Const 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 DWord551 Declare Function FreeEnvironmentStrings Lib "kernel32" Alias "FreeEnvironmentStringsA" (pszEnvironmentBlock As PCSTR) As BOOL712 Declare 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 713 Declare Function FreeEnvironmentStrings Lib "kernel32" Alias _FuncName_FreeEnvironmentStrings (pszEnvironmentBlock As PCTSTR) As BOOL 552 714 Declare Function FreeLibrary Lib "kernel32" (hLibModule As HINSTANCE) As BOOL 553 715 Declare Sub FreeLibraryAndExitThread Lib "kernel32" (hModule As HANDLE, dwExitCode As DWord) … … 559 721 Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As PCSTR 560 722 #endif 561 Declare Function GetCompressedFileSize Lib "kernel32" Alias "GetCompressedFileSizeA" (lpFileName As BytePtr, ByRef lpFileSizeHigh As DWord) As DWord562 563 Const MAX_COMPUTERNAME_LENGTH =15564 Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (lpBuffer As BytePtr, ByRef nSize As Long) As Long565 566 Declare Function GetCurrentDirectory Lib "kernel32" Alias "GetCurrentDirectoryA" (nBufferLength As DWord, lpBuffer As BytePtr) As DWord723 Declare Function GetCompressedFileSize Lib "kernel32" Alias _FuncName_GetCompressedFileSize (pFileName As PCTSTR, ByRef FileSizeHigh As DWord) As DWord 724 725 Const MAX_COMPUTERNAME_LENGTH = 15 726 Declare Function GetComputerName Lib "kernel32" Alias _FuncName_GetComputerName (pBuffer As PTSTR, ByRef nSize As Long) As Long 727 728 Declare Function GetCurrentDirectory Lib "kernel32" Alias _FuncName_GetCurrentDirectory (nBufferLength As DWord, pBuffer As PTSTR) As DWord 567 729 Declare Function GetCurrentProcess Lib "kernel32" () As HANDLE 568 730 Declare Function GetCurrentProcessId Lib "kernel32" () As DWord … … 573 735 Const DATE_LONGDATE = &H00000002 574 736 Const 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 Long576 577 Declare Function GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA" (lpRootPathName As BytePtr, lpSectorsPerCluster As *DWord, lpBytesPerSector As *DWord, lpNumberOfFreeClusters As *DWord, lpTotalNumberOfClusters As *DWord) As BOOL578 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 BOOL737 Declare 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 739 Declare Function GetDiskFreeSpace Lib "kernel32" Alias _FuncName_GetDiskFreeSpace (pRootPathName As PCTSTR, lpSectorsPerCluster As *DWord, pBytesPerSector As *DWord, pNumberOfFreeClusters As *DWord, pTotalNumberOfClusters As *DWord) As BOOL 740 Declare 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 579 741 580 742 Const DRIVE_UNKNOWN = 0 … … 585 747 Const DRIVE_CDROM = 5 586 748 Const 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 BOOL588 Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (lpRootPathName As BytePtr) As DWord589 590 Declare Function GetEnvironmentVariable Lib "kernel32" Alias "GetEnvironmentVariableA" (lpName As BytePtr, lpBuffer As BytePtr, nSize As DWord) As DWord591 Declare Function GetEnvironmentStrings Lib "kernel32" Alias "GetEnvironmentStringsA"() As VoidPtr749 Declare 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 750 Declare Function GetDriveType Lib "kernel32" Alias _FuncName_GetDriveType (lpRootPathName As PCTSTR) As DWord 751 752 Declare Function GetEnvironmentVariable Lib "kernel32" Alias _FuncName_GetEnvironmentVariable (lpName As PCTSTR, lpBuffer As PTSTR, nSize As DWord) As DWord 753 Declare Function GetEnvironmentStrings Lib "kernel32" Alias _FuncName_GetEnvironmentStrings () As VoidPtr 592 754 Const STILL_ACTIVE = &H00000103 593 755 Declare Function GetExitCodeProcess Lib "kernel32" (hProcess As HANDLE, ByRef lpExitCode As DWord) As BOOL 594 756 Declare Function GetExitCodeThread Lib "kernel32" (hThread As HANDLE, ByRef lpExitCode As DWord) As BOOL 595 757 596 Declare Function GetFileAttributes Lib "kernel32" Alias "GetFileAttributesA" (lpFileName As BytePtr) As DWord758 Declare Function GetFileAttributes Lib "kernel32" Alias _FuncName_GetFileAttributes (lpFileName As PCTSTR) As DWord 597 759 Type BY_HANDLE_FILE_INFORMATION 598 760 dwFileAttributes As DWord … … 621 783 Declare Function GetFileType Lib "kernel32" (hFile As HANDLE) As DWord 622 784 623 Declare Function GetFullPathName Lib "kernel32" Alias "GetFullPathNameA"(lpFileName As PCSTR, nBufferLength As DWord, pBuffer As PSTR, lpFilePart As *DWord) As DWord785 Declare Function GetFullPathName Lib "kernel32" Alias _FuncName_GetFullPathName (lpFileName As PCSTR, nBufferLength As DWord, pBuffer As PSTR, lpFilePart As *DWord) As DWord 624 786 Declare Function GetLastError Lib "kernel32" () As DWord 625 787 Declare Sub GetLocalTime Lib "kernel32" (ByRef lpSystemTime As SYSTEMTIME) 626 788 Declare Function GetLogicalDrives Lib "kernel32" () As DWord 627 Declare Function GetLogicalDriveStrings Lib "kernel32" Alias "GetLogicalDriveStringsA" (nBufferLength As DWord, pBuffer As PSTR) As DWord628 Declare Function GetModuleFileName Lib "kernel32" Alias "GetModuleFileNameA" (hModule As HINSTANCE, lpFileName As BytePtr, nSize As DWord) As DWord629 Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (lpModuleName As BytePtr) As HINSTANCE789 Declare Function GetLogicalDriveStrings Lib "kernel32" Alias _FuncName_GetLogicalDriveStrings (nBufferLength As DWord, pBuffer As PTSTR) As DWord 790 Declare Function GetModuleFileName Lib "kernel32" Alias _FuncName_GetModuleFileName (hModule As HINSTANCE, lpFileName As PTSTR, nSize As DWord) As DWord 791 Declare Function GetModuleHandle Lib "kernel32" Alias _FuncName_GetModuleHandle (lpModuleName As PTSTR) As HINSTANCE 630 792 Declare Function GetOverlappedResult Lib "kernel32" ( 631 793 hFile As HANDLE, … … 642 804 ) As BOOL 643 805 Declare Function GetProcessHeap Lib "kernel32" () As HANDLE 644 Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA"(645 pszLongPath As PC STR,646 pszShortPath As P STR,806 Declare Function GetShortPathName Lib "kernel32" Alias _FuncName_GetShortPathName ( 807 pszLongPath As PCTSTR, 808 pszShortPath As PTSTR, 647 809 cchBuffer As DWord 648 810 ) As DWord 649 811 650 Declare Sub GetStartupInfo Lib "kernel32" Alias "GetStartupInfoA"(ByRef StartupInfo As STARTUPINFO)812 Declare Sub GetStartupInfo Lib "kernel32" Alias _FuncName_GetStartupInfo (ByRef StartupInfo As STARTUPINFO) 651 813 652 814 Const STD_INPUT_HANDLE = -10 … … 655 817 Declare Function GetStdHandle Lib "kernel32" (nStdHandle As DWord) As HANDLE 656 818 657 Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord819 Declare Function GetSystemDirectory Lib "kernel32" Alias _FuncName_GetSystemDirectory (pBuffer As PTSTR, uSize As DWord) As DWord 658 820 659 821 Type SYSTEM_INFO … … 674 836 Declare Sub GetSystemTimeAsFileTime Lib "kernel32" (ByRef SystemTimeAsFileTime As FILETIME) 675 837 676 Declare Function GetTempFileName Lib "kernel32" Alias "GetTempFileNameA"(677 pPathName As PC STR,678 pPrefixString As PC STR,838 Declare Function GetTempFileName Lib "kernel32" Alias _FuncName_GetTempFileName ( 839 pPathName As PCTSTR, 840 pPrefixString As PCTSTR, 679 841 uUnique As DWord, 680 pTempFileName As P STR842 pTempFileName As PTSTR 681 843 ) As DWord 682 Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (nBufferLength As DWord, lpBuffer As PSTR) As DWord844 Declare Function GetTempPath Lib "kernel32" Alias _FuncName_GetTempPath (nBufferLength As DWord, lpBuffer As PTSTR) As DWord 683 845 Declare Function GetThreadContext Lib "kernel32" (hThread As HANDLE, ByRef Context As CONTEXT) As BOOL 684 846 … … 705 867 Const TIME_NOTIMEMARKER = &H00000004 706 868 Const 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 BOOL869 Declare 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 708 870 709 871 Declare Function GetUserDefaultLCID Lib "kernel32" () As LCID 710 Declare Function GetUserName Lib "advapi32" Alias "GetUserNameA" (pBuffer As PSTR, ByRef nSize As DWord) As BOOL872 Declare Function GetUserName Lib "advapi32" Alias _FuncName_GetUserName (pBuffer As PTSTR, ByRef nSize As DWord) As BOOL 711 873 712 874 Const VER_PLATFORM_WIN32s = 0 713 875 Const VER_PLATFORM_WIN32_WINDOWS = 1 714 876 Const VER_PLATFORM_WIN32_NT = 2 715 Type OSVERSIONINFO 877 Type OSVERSIONINFOW 716 878 dwOSVersionInfoSize As DWord 717 879 dwMajorVersion As DWord … … 719 881 dwBuildNumber As DWord 720 882 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 884 End Type 885 Type 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 892 End Type 893 #ifdef UNICODE 894 TypeDef OSVERSIONINFO = OSVERSIONINFOW 895 #else 896 TypeDef OSVERSIONINFO = OSVERSIONINFOA 897 #endif 898 Declare Function GetVersionEx Lib "kernel32" Alias _FuncName_GetVersionEx (ByRef VersionInformation As OSVERSIONINFO) As BOOL 899 900 Declare Function GetWindowsDirectory Lib "kernel32" Alias _FuncName_GetWindowsDirectory (pBuffer As PTSTR, uSize As DWord) As DWord 726 901 Declare Function GlobalAlloc Lib "kernel32" (uFlags As DWord, dwBytes As SIZE_T) As HGLOBAL 727 902 Declare Function GlobalFrags Lib "kernel32" (hMem As HGLOBAL) As DWord … … 771 946 Const LCMAP_SIMPLIFIED_CHINESE = &H02000000 ' map traditional chinese to simplified chinese 772 947 Const 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 Long948 Declare 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 774 949 775 950 Declare Sub LeaveCriticalSection Lib "kernel32" (ByRef lpCriticalSection As CRITICAL_SECTION) … … 783 958 Declare Function LocalUnlock Lib "kernel32" (hMem As HLOCAL) As BOOL 784 959 Declare 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 HINSTANCE960 Declare Function LoadLibrary Lib "kernel32" Alias _FuncName_LoadLibrary (pLibFileName As PCTSTR) As HINSTANCE 786 961 787 962 Const DONT_RESOLVE_DLL_REFERENCES = &h00000001 … … 789 964 Const LOAD_WITH_ALTERED_SEARCH_PATH = &h00000008 790 965 Const LOAD_IGNORE_CODE_AUTHZ_LEVEL = &h00000010 791 Declare Function LoadLibraryEx Lib "kernel32" Alias "LoadLibraryExA" (pLibFileName As PCSTR, hFile As HANDLE, dwFlags As DWord) As HINSTANCE792 793 Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" (pString1 As PSTR, pString2 As PCSTR) As PSTR794 Declare Function lstrcmp Lib "kernel32" Alias "lstrcmpA" (pString1 As PCSTR, pString2 As PCSTR) As Long795 Declare Function lstrcmpi Lib "kernel32" Alias "lstrcmpiA" (pString1 As PCSTR, pString2 As PCSTR) As Long966 Declare Function LoadLibraryEx Lib "kernel32" Alias _FuncName_LoadLibraryEx (pLibFileName As PCTSTR, hFile As HANDLE, dwFlags As DWord) As HINSTANCE 967 968 Declare Function lstrcat Lib "kernel32" Alias _FuncName_lstrcat (pString1 As PTSTR, pString2 As PCTSTR) As PSTR 969 Declare Function lstrcmp Lib "kernel32" Alias _FuncName_lstrcmp (pString1 As PCTSTR, pString2 As PCTSTR) As Long 970 Declare Function lstrcmpi Lib "kernel32" Alias _FuncName_lstrcmpi (pString1 As PCTSTR, pString2 As PCTSTR) As Long 796 971 Declare Function lstrcpy Lib "kernel32" Alias _FuncName_lstrcpy (pString1 As PTSTR, pString2 As PCTSTR) As PSTR 797 972 Declare Function lstrlenA Lib "kernel32" (pString As PCSTR) As Long 798 973 Declare Function lstrlenW Lib "kernel32" (pString As PCWSTR) As Long 799 974 #ifdef UNICODE 800 Declare Function lstrlen Lib "kernel32" Alias "lstrlenW" (pString As PC TSTR) As Long975 Declare Function lstrlen Lib "kernel32" Alias "lstrlenW" (pString As PCWSTR) As Long 801 976 #else 802 Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (pString As PC TSTR) As Long977 Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (pString As PCSTR) As Long 803 978 #endif 804 979 Declare 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 BOOL980 Declare Function MoveFile Lib "kernel32" Alias _FuncName_MoveFile (lpExistingFileName As LPCTSTR, lpNewFileName As LPCTSTR) As BOOL 806 981 Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As VoidPtr, pSrc As VoidPtr, length As SIZE_T) 807 982 … … 822 997 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 823 998 824 Declare Function OpenEvent Lib "kernel32" Alias "OpenEventA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, pName As PCSTR) As HANDLE825 Declare Function OpenMutex Lib "kernel32" Alias "OpenMutexA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE826 Declare Function OpenSemaphore Lib "kernel32" Alias "OpenSemaphoreA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE999 Declare Function OpenEvent Lib "kernel32" Alias _FuncName_OpenEvent (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPCTSTR) As HANDLE 1000 Declare Function OpenMutex Lib "kernel32" Alias _FuncName_OpenMutex (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPCTSTR) As HANDLE 1001 Declare Function OpenSemaphore Lib "kernel32" Alias _FuncName_OpenSemaphore (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPCTSTR) As HANDLE 827 1002 828 1003 Const PROCESS_TERMINATE = &H0001 … … 843 1018 Declare Sub OutputDebugStringW Lib "kernel32" (pOutputString As PCWSTR) 844 1019 #ifdef UNICODE 845 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringW" (pOutputString As PC TSTR)1020 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringW" (pOutputString As PCWSTR) 846 1021 #else 847 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (pOutputString As PC TSTR)1022 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (pOutputString As PCSTR) 848 1023 #endif 849 1024 Declare Function PulseEvent Lib "kernel32" (hEvent As HANDLE) As BOOL … … 856 1031 Declare Function ReleaseMutex Lib "kernel32" (hMutex As HANDLE) As BOOL 857 1032 Declare 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 BOOL1033 Declare Function RemoveDirectory Lib "kernel32" Alias _FuncName_RemoveDirectory (lpPathName As LPCTSTR) As BOOL 859 1034 Declare Function ResetEvent Lib "kernel32" (hEvent As HANDLE) As BOOL 860 1035 Declare Function ResumeThread Lib "kernel32" (hThread As HANDLE) As DWord 861 Declare Function SetComputerName Lib "kernel32" Alias "SetComputerNameA" (lpComputerName As BytePtr) As BOOL862 Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (lpPathName As BytePtr) As BOOL863 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 DWord1036 Declare Function SetComputerName Lib "kernel32" Alias _FuncName_SetComputerName (lpComputerName As LPCTSTR) As BOOL 1037 Declare Function SetCurrentDirectory Lib "kernel32" Alias _FuncName_SetCurrentDirectory (lpPathName As LPCTSTR) As BOOL 1038 Declare 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 864 1039 Declare Function SetEndOfFile Lib "kernel32" (hFile As HANDLE) As BOOL 865 Declare Function SetEnvironmentVariable Lib "kernel32" Alias "SetEnvironmentVariableA" (lpName As BytePtr, lpValue As BytePtr) As BOOL1040 Declare Function SetEnvironmentVariable Lib "kernel32" Alias _FuncName_SetEnvironmentVariable (lpName As LPCTSTR, lpValue As LPTSTR) As BOOL 866 1041 867 1042 Const SEM_FAILCRITICALERRORS = &h0001 … … 871 1046 Declare Function SetErrorMode Lib "kernel32" (uMode As DWord) As DWord 872 1047 Declare Function SetEvent Lib "kernel32" (hEvent As HANDLE) As BOOL 873 Declare Function SetFileAttributes Lib "kernel32" Alias "SetFileAttributesA" (lpFileName As BytePtr, dwFileAttributes As DWord) As BOOL1048 Declare Function SetFileAttributes Lib "kernel32" Alias _FuncName_SetFileAttributes (lpFileName As LPCTSTR, dwFileAttributes As DWord) As BOOL 874 1049 875 1050 Const FILE_BEGIN = 0
Note:
See TracChangeset
for help on using the changeset viewer.