diff --git a/contrib/win32/kernel-notes.txt b/contrib/win32/kernel-notes.txt new file mode 100644 index 0000000000..ae82d79389 --- /dev/null +++ b/contrib/win32/kernel-notes.txt @@ -0,0 +1,2943 @@ +// Generated by PE Explorer 1.97 (www.heaventools.com) +// File name: C:\WINDOWS\system32\kernel32.dll +// Created : 29.11.2005 02:34 +// Type : Exports + + +// ActivateActCtx; Index 1; Information not available + +function AddAtom(lpString: PAnsiChar): ATOM; stdcall; + external 'kernel32.dll' name 'AddAtomA' index 1; + +function AddAtomW(lpString: PWideChar): ATOM; stdcall; + external 'kernel32.dll' name 'AddAtomW' index 2; + +// AddConsoleAliasA; Index 4; Information not available + +// AddConsoleAliasW; Index 5; Information not available + +// AddLocalAlternateComputerNameA; Index 6; Information not available + +// AddLocalAlternateComputerNameW; Index 7; Information not available + +// AddRefActCtx; Index 8; Information not available + +// AddVectoredExceptionHandler; Index 9; Information not available + +function AllocConsole: BOOL; stdcall; + external 'kernel32.dll' name 'AllocConsole' index 5; + +// AllocateUserPhysicalPages; Index 11; Information not available + +function AreFileApisANSI: BOOL; stdcall; + external 'kernel32.dll' name 'AreFileApisANSI' index 7; + +// AssignProcessToJobObject; Index 13; Information not available + +// AttachConsole; Index 14; Information not available + +function BackupRead(hFile: THandle; lpBuffer: PByte; + nNumberOfBytesToRead: DWORD; var lpNumberOfBytesRead: DWORD; + bAbort: BOOL; bProcessSecurity: BOOL; var lpContext: Pointer): BOOL; + stdcall; external 'kernel32.dll' name 'BackupRead' index 9; + +function BackupSeek(hFile: THandle; dwLowBytesToSeek, + dwHighBytesToSeek: DWORD; var lpdwLowByteSeeked, + lpdwHighByteSeeked: DWORD; lpContext: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'BackupSeek' index 10; + +function BackupWrite(hFile: THandle; lpBuffer: PByte; + nNumberOfBytesToWrite: DWORD; var lpNumberOfBytesWritten: DWORD; bAbort, + bProcessSecurity: BOOL; var lpContext: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'BackupWrite' index 11; + +// BaseCheckAppcompatCache; Index 18; Information not available + +// BaseCleanupAppcompatCache; Index 19; Information not available + +// BaseCleanupAppcompatCacheSupport; Index 20; Information not available + +// BaseDumpAppcompatCache; Index 21; Information not available + +// BaseFlushAppcompatCache; Index 22; Information not available + +// BaseInitAppcompatCache; Index 23; Information not available + +// BaseInitAppcompatCacheSupport; Index 24; Information not available + +// BaseProcessInitPostImport; Index 25; Information not available + +// BaseQueryModuleData; Index 26; Information not available + +// BaseUpdateAppcompatCache; Index 27; Information not available + +// BasepCheckWinSaferRestrictions; Index 28; Information not available + +function Beep(dwFreq, dwDuration: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'Beep' index 13; + +function BeginUpdateResource(pFileName: PAnsiChar; + bDeleteExistingResources: BOOL): THandle; stdcall; + external 'kernel32.dll' name 'BeginUpdateResourceA' index 14; + +function BeginUpdateResourceW(pFileName: PWideChar; + bDeleteExistingResources: BOOL): THandle; stdcall; + external 'kernel32.dll' name 'BeginUpdateResourceW' index 15; + +// BindIoCompletionCallback; Index 32; Information not available + +function BuildCommDCB(lpDef: PAnsiChar; var lpDCB: TDCB): BOOL; stdcall; + external 'kernel32.dll' name 'BuildCommDCBA' index 17; + +function BuildCommDCBAndTimeouts(lpDef: PAnsiChar; var lpDCB: TDCB; + var lpCommTimeouts: TCommTimeouts): BOOL; stdcall; + external 'kernel32.dll' name 'BuildCommDCBAndTimeoutsA' index 18; + +function BuildCommDCBAndTimeoutsW(lpDef: PWideChar; var lpDCB: TDCB; + var lpCommTimeouts: TCommTimeouts): BOOL; stdcall; + external 'kernel32.dll' name 'BuildCommDCBAndTimeoutsW' index 19; + +function BuildCommDCBW(lpDef: PWideChar; var lpDCB: TDCB): BOOL; stdcall; + external 'kernel32.dll' name 'BuildCommDCBW' index 20; + +function CallNamedPipe(lpNamedPipeName: PAnsiChar; lpInBuffer: Pointer; + nInBufferSize: DWORD; lpOutBuffer: Pointer; nOutBufferSize: DWORD; + var lpBytesRead: DWORD; nTimeOut: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'CallNamedPipeA' index 21; + +function CallNamedPipeW(lpNamedPipeName: PWideChar; lpInBuffer: Pointer; + nInBufferSize: DWORD; lpOutBuffer: Pointer; nOutBufferSize: DWORD; + var lpBytesRead: DWORD; nTimeOut: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'CallNamedPipeW' index 22; + +// CancelDeviceWakeupRequest; Index 39; Information not available + +function CancelIo(hFile: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'CancelIo' index 24; + +// CancelTimerQueueTimer; Index 41; Information not available + +function CancelWaitableTimer(hTimer: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'CancelWaitableTimer' index 26; + +// ChangeTimerQueueTimer; Index 43; Information not available + +// CheckNameLegalDOS8Dot3A; Index 44; Information not available + +// CheckNameLegalDOS8Dot3W; Index 45; Information not available + +// CheckRemoteDebuggerPresent; Index 46; Information not available + +function ClearCommBreak(hFile: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'ClearCommBreak' index 28; + +function ClearCommError(hFile: THandle; var lpErrors: DWORD; + lpStat: PComStat): BOOL; stdcall; + external 'kernel32.dll' name 'ClearCommError' index 29; + +// CloseConsoleHandle; Index 49; Information not available + +function CloseHandle(hObject: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'CloseHandle' index 31; + +// CloseProfileUserMapping; Index 51; Information not available + +// CmdBatNotification; Index 52; Information not available + +function CommConfigDialog(lpszName: PAnsiChar; hWnd: HWND; + var lpCC: TCommConfig): BOOL; stdcall; + external 'kernel32.dll' name 'CommConfigDialogA' index 34; + +function CommConfigDialogW(lpszName: PWideChar; hWnd: HWND; + var lpCC: TCommConfig): BOOL; stdcall; + external 'kernel32.dll' name 'CommConfigDialogW' index 35; + +function CompareFileTime(const lpFileTime1, lpFileTime2: TFileTime): Longint; + stdcall; external 'kernel32.dll' name 'CompareFileTime' index 36; + +function CompareString(Locale: LCID; dwCmpFlags: DWORD; lpString1: PAnsiChar; + cchCount1: Integer; lpString2: PAnsiChar; cchCount2: Integer): Integer; + stdcall; external 'kernel32.dll' name 'CompareStringA' index 37; + +function CompareStringW(Locale: LCID; dwCmpFlags: DWORD; lpString1: PWideChar; + cchCount1: Integer; lpString2: PWideChar; cchCount2: Integer): Integer; + stdcall; external 'kernel32.dll' name 'CompareStringW' index 38; + +function ConnectNamedPipe(hNamedPipe: THandle; + lpOverlapped: POverlapped): BOOL; stdcall; + external 'kernel32.dll' name 'ConnectNamedPipe' index 39; + +// ConsoleMenuControl; Index 59; Information not available + +function ContinueDebugEvent(dwProcessId, dwThreadId, + dwContinueStatus: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'ContinueDebugEvent' index 41; + +function ConvertDefaultLocale(Locale: LCID): LCID; stdcall; + external 'kernel32.dll' name 'ConvertDefaultLocale' index 42; + +// ConvertFiberToThread; Index 62; Information not available + +function ConvertThreadToFiber(lpParameter: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'ConvertThreadToFiber' index 43; + +function CopyFile(lpExistingFileName, lpNewFileName: PAnsiChar; + bFailIfExists: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'CopyFileA' index 44; + +function CopyFileEx(lpExistingFileName, lpNewFileName: PAnsiChar; + lpProgressRoutine: TFNProgressRoutine; lpData: Pointer; pbCancel: PBool; + dwCopyFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'CopyFileExA' index 45; + +function CopyFileExW(lpExistingFileName, lpNewFileName: PWideChar; + lpProgressRoutine: TFNProgressRoutine; lpData: Pointer; pbCancel: PBool; + dwCopyFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'CopyFileExW' index 46; + +function CopyFileW(lpExistingFileName, lpNewFileName: PWideChar; + bFailIfExists: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'CopyFileW' index 47; + +// CopyLZFile; Index 68; Information not available + +// CreateActCtxA; Index 69; Information not available + +// CreateActCtxW; Index 70; Information not available + +function CreateConsoleScreenBuffer(dwDesiredAccess, dwShareMode: DWORD; + lpSecurityAttributes: PSecurityAttributes; dwFlags: DWORD; + lpScreenBufferData: Pointer): THandle; stdcall; + external 'kernel32.dll' name 'CreateConsoleScreenBuffer' index 48; + +function CreateDirectory(lpPathName: PAnsiChar; + lpSecurityAttributes: PSecurityAttributes): BOOL; stdcall; + external 'kernel32.dll' name 'CreateDirectoryA' index 49; + +function CreateDirectoryEx(lpTemplateDirectory, lpNewDirectory: PAnsiChar; + lpSecurityAttributes: PSecurityAttributes): BOOL; stdcall; + external 'kernel32.dll' name 'CreateDirectoryExA' index 50; + +function CreateDirectoryExW(lpTemplateDirectory, lpNewDirectory: PWideChar; + lpSecurityAttributes: PSecurityAttributes): BOOL; stdcall; + external 'kernel32.dll' name 'CreateDirectoryExW' index 51; + +function CreateDirectoryW(lpPathName: PWideChar; + lpSecurityAttributes: PSecurityAttributes): BOOL; stdcall; + external 'kernel32.dll' name 'CreateDirectoryW' index 52; + +function CreateEvent(lpEventAttributes: PSecurityAttributes; bManualReset, + bInitialState: BOOL; lpName: PAnsiChar): THandle; stdcall; + external 'kernel32.dll' name 'CreateEventA' index 53; + +function CreateEventW(lpEventAttributes: PSecurityAttributes; bManualReset, + bInitialState: BOOL; lpName: PWideChar): THandle; stdcall; + external 'kernel32.dll' name 'CreateEventW' index 54; + +function CreateFiber(dwStackSize: DWORD; lpStartAddress: TFNFiberStartRoutine; + lpParameter: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'CreateFiber' index 55; + +// CreateFiberEx; Index 79; Information not available + +function CreateFile(lpFileName: PAnsiChar; dwDesiredAccess, + dwShareMode: DWORD; lpSecurityAttributes: PSecurityAttributes; + dwCreationDisposition, dwFlagsAndAttributes: DWORD; + hTemplateFile: THandle): THandle; stdcall; + external 'kernel32.dll' name 'CreateFileA' index 56; + +function CreateFileMapping(hFile: THandle; + lpFileMappingAttributes: PSecurityAttributes; flProtect, + dwMaximumSizeHigh, dwMaximumSizeLow: DWORD; lpName: PAnsiChar): THandle; + stdcall; external 'kernel32.dll' name 'CreateFileMappingA' index 57; + +function CreateFileMappingW(hFile: THandle; + lpFileMappingAttributes: PSecurityAttributes; flProtect, + dwMaximumSizeHigh, dwMaximumSizeLow: DWORD; lpName: PWideChar): THandle; + stdcall; external 'kernel32.dll' name 'CreateFileMappingW' index 58; + +function CreateFileW(lpFileName: PWideChar; dwDesiredAccess, + dwShareMode: DWORD; lpSecurityAttributes: PSecurityAttributes; + dwCreationDisposition, dwFlagsAndAttributes: DWORD; + hTemplateFile: THandle): THandle; stdcall; + external 'kernel32.dll' name 'CreateFileW' index 59; + +function CreateHardLink(lpFileName, lpExistingFileName: PAnsiChar; + lpSecurityAttributes: PSecurityAttributes): BOOL; stdcall; + external 'kernel32.dll' name 'CreateHardLinkA' index 60; + +function CreateHardLinkW(lpFileName, lpExistingFileName: PWideChar; + lpSecurityAttributes: PSecurityAttributes): BOOL; stdcall; + external 'kernel32.dll' name 'CreateHardLinkW' index 61; + +function CreateIoCompletionPort(FileHandle, ExistingCompletionPort: THandle; + CompletionKey, NumberOfConcurrentThreads: DWORD): THandle; stdcall; + external 'kernel32.dll' name 'CreateIoCompletionPort' index 62; + +// CreateJobObjectA; Index 87; Information not available + +// CreateJobObjectW; Index 88; Information not available + +// CreateJobSet; Index 89; Information not available + +function CreateMailslot(lpName: PAnsiChar; nMaxMessageSize: DWORD; + lReadTimeout: DWORD; + lpSecurityAttributes: PSecurityAttributes): THandle; stdcall; + external 'kernel32.dll' name 'CreateMailslotA' index 65; + +function CreateMailslotW(lpName: PWideChar; nMaxMessageSize: DWORD; + lReadTimeout: DWORD; + lpSecurityAttributes: PSecurityAttributes): THandle; stdcall; + external 'kernel32.dll' name 'CreateMailslotW' index 66; + +// CreateMemoryResourceNotification; Index 92; Information not available + +function CreateMutex(lpMutexAttributes: PSecurityAttributes; + bInitialOwner: BOOL; lpName: PAnsiChar): THandle; stdcall; + external 'kernel32.dll' name 'CreateMutexA' index 67; + +function CreateMutexW(lpMutexAttributes: PSecurityAttributes; + bInitialOwner: BOOL; lpName: PWideChar): THandle; stdcall; + external 'kernel32.dll' name 'CreateMutexW' index 68; + +function CreateNamedPipe(lpName: PAnsiChar; dwOpenMode, dwPipeMode, + nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut: DWORD; + lpSecurityAttributes: PSecurityAttributes): THandle; stdcall; + external 'kernel32.dll' name 'CreateNamedPipeA' index 69; + +function CreateNamedPipeW(lpName: PWideChar; dwOpenMode, dwPipeMode, + nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut: DWORD; + lpSecurityAttributes: PSecurityAttributes): THandle; stdcall; + external 'kernel32.dll' name 'CreateNamedPipeW' index 70; + +// CreateNlsSecurityDescriptor; Index 97; Information not available + +function CreatePipe(var hReadPipe, hWritePipe: THandle; + lpPipeAttributes: PSecurityAttributes; nSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'CreatePipe' index 71; + +function CreateProcess(lpApplicationName: PAnsiChar; lpCommandLine: PAnsiChar; + lpProcessAttributes, lpThreadAttributes: PSecurityAttributes; + bInheritHandles: BOOL; dwCreationFlags: DWORD; lpEnvironment: Pointer; + lpCurrentDirectory: PAnsiChar; const lpStartupInfo: TStartupInfo; + var lpProcessInformation: TProcessInformation): BOOL; stdcall; + external 'kernel32.dll' name 'CreateProcessA' index 72; + +// CreateProcessInternalA; Index 100; Information not available + +// CreateProcessInternalW; Index 101; Information not available + +// CreateProcessInternalWSecure; Index 102; Information not available + +function CreateProcessW(lpApplicationName: PWideChar; + lpCommandLine: PWideChar; lpProcessAttributes, + lpThreadAttributes: PSecurityAttributes; bInheritHandles: BOOL; + dwCreationFlags: DWORD; lpEnvironment: Pointer; + lpCurrentDirectory: PWideChar; const lpStartupInfo: TStartupInfo; + var lpProcessInformation: TProcessInformation): BOOL; stdcall; + external 'kernel32.dll' name 'CreateProcessW' index 73; + +function CreateRemoteThread(hProcess: THandle; lpThreadAttributes: Pointer; + dwStackSize: DWORD; lpStartAddress: TFNThreadStartRoutine; + lpParameter: Pointer; dwCreationFlags: DWORD; + var lpThreadId: DWORD): THandle; stdcall; + external 'kernel32.dll' name 'CreateRemoteThread' index 74; + +function CreateSemaphore(lpSemaphoreAttributes: PSecurityAttributes; + lInitialCount, lMaximumCount: Longint; lpName: PAnsiChar): THandle; + stdcall; external 'kernel32.dll' name 'CreateSemaphoreA' index 75; + +function CreateSemaphoreW(lpSemaphoreAttributes: PSecurityAttributes; + lInitialCount, lMaximumCount: Longint; lpName: PWideChar): THandle; + stdcall; external 'kernel32.dll' name 'CreateSemaphoreW' index 76; + +// CreateSocketHandle; Index 107; Information not available + +function CreateTapePartition(hDevice: THandle; dwPartitionMethod, dwCount, + dwSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'CreateTapePartition' index 77; + +function CreateThread(lpThreadAttributes: Pointer; dwStackSize: DWORD; + lpStartAddress: TFNThreadStartRoutine; lpParameter: Pointer; + dwCreationFlags: DWORD; var lpThreadId: DWORD): THandle; stdcall; + external 'kernel32.dll' name 'CreateThread' index 78; + +// CreateTimerQueue; Index 110; Information not available + +// CreateTimerQueueTimer; Index 111; Information not available + +function CreateToolhelp32Snapshot(dwFlags, th32ProcessID: DWORD): THandle; + stdcall; + external 'kernel32.dll' name 'CreateToolhelp32Snapshot' index 81; + +// CreateVirtualBuffer; Index 113; Information not available + +function CreateWaitableTimer(lpTimerAttributes: PSecurityAttributes; + bManualReset: BOOL; lpTimerName: PAnsiChar): THandle; stdcall; + external 'kernel32.dll' name 'CreateWaitableTimerA' index 83; + +function CreateWaitableTimerW(lpTimerAttributes: PSecurityAttributes; + bManualReset: BOOL; lpTimerName: PWideChar): THandle; stdcall; + external 'kernel32.dll' name 'CreateWaitableTimerW' index 84; + +// DeactivateActCtx; Index 116; Information not available + +function DebugActiveProcess(dwProcessId: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'DebugActiveProcess' index 85; + +// DebugActiveProcessStop; Index 118; Information not available + +procedure DebugBreak; stdcall; + external 'kernel32.dll' name 'DebugBreak' index 86; + +// DebugBreakProcess; Index 120; Information not available + +// DebugSetProcessKillOnExit; Index 121; Information not available + +// DecodePointer; Index 122; Information not available + +// DecodeSystemPointer; Index 123; Information not available + +function DefineDosDevice(dwFlags: DWORD; lpDeviceName, + lpTargetPath: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'DefineDosDeviceA' index 87; + +function DefineDosDeviceW(dwFlags: DWORD; lpDeviceName, + lpTargetPath: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'DefineDosDeviceW' index 88; + +// DelayLoadFailureHook; Index 126; Information not available + +function DeleteAtom(nAtom: ATOM): ATOM; stdcall; + external 'kernel32.dll' name 'DeleteAtom' index 90; + +procedure DeleteCriticalSection(var lpCriticalSection: TRTLCriticalSection); + stdcall; external 'kernel32.dll' name 'DeleteCriticalSection' index 91; + +function DeleteFiber(lpFiber: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'DeleteFiber' index 92; + +function DeleteFile(lpFileName: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'DeleteFileA' index 93; + +function DeleteFileW(lpFileName: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'DeleteFileW' index 94; + +// DeleteTimerQueue; Index 132; Information not available + +// DeleteTimerQueueEx; Index 133; Information not available + +// DeleteTimerQueueTimer; Index 134; Information not available + +// DeleteVolumeMountPointA; Index 135; Information not available + +// DeleteVolumeMountPointW; Index 136; Information not available + +function DeviceIoControl(hDevice: THandle; dwIoControlCode: DWORD; + lpInBuffer: Pointer; nInBufferSize: DWORD; lpOutBuffer: Pointer; + nOutBufferSize: DWORD; var lpBytesReturned: DWORD; + lpOverlapped: POverlapped): BOOL; stdcall; + external 'kernel32.dll' name 'DeviceIoControl' index 100; + +function DisableThreadLibraryCalls(hLibModule: HMODULE): BOOL; stdcall; + external 'kernel32.dll' name 'DisableThreadLibraryCalls' index 101; + +function DisconnectNamedPipe(hNamedPipe: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'DisconnectNamedPipe' index 102; + +// DnsHostnameToComputerNameA; Index 140; Information not available + +// DnsHostnameToComputerNameW; Index 141; Information not available + +function DosDateTimeToFileTime(wFatDate, wFatTime: Word; + var lpFileTime: TFileTime): BOOL; stdcall; + external 'kernel32.dll' name 'DosDateTimeToFileTime' index 105; + +// DosPathToSessionPathA; Index 143; Information not available + +// DosPathToSessionPathW; Index 144; Information not available + +// DuplicateConsoleHandle; Index 145; Information not available + +function DuplicateHandle(hSourceProcessHandle, hSourceHandle, + hTargetProcessHandle: THandle; lpTargetHandle: PHandle; + dwDesiredAccess: DWORD; bInheritHandle: BOOL; dwOptions: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'DuplicateHandle' index 109; + +// EncodePointer; Index 147; Information not available + +// EncodeSystemPointer; Index 148; Information not available + +function EndUpdateResource(hUpdate: THandle; fDiscard: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'EndUpdateResourceA' index 110; + +function EndUpdateResourceW(hUpdate: THandle; fDiscard: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'EndUpdateResourceW' index 111; + +procedure EnterCriticalSection(var lpCriticalSection: TRTLCriticalSection); + stdcall; external 'kernel32.dll' name 'EnterCriticalSection' index 112; + +function EnumCalendarInfo(lpCalInfoEnumProc: TFNCalInfoEnumProc; Locale: LCID; + Calendar: CALID; CalType: CALTYPE): BOOL; stdcall; + external 'kernel32.dll' name 'EnumCalendarInfoA' index 113; + +// EnumCalendarInfoExA; Index 153; Information not available + +// EnumCalendarInfoExW; Index 154; Information not available + +function EnumCalendarInfoW(lpCalInfoEnumProc: TFNCalInfoEnumProc; + Locale: LCID; Calendar: CALID; CalType: CALTYPE): BOOL; stdcall; + external 'kernel32.dll' name 'EnumCalendarInfoW' index 116; + +function EnumDateFormats(lpDateFmtEnumProc: TFNDateFmtEnumProc; Locale: LCID; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'EnumDateFormatsA' index 117; + +// EnumDateFormatsExA; Index 157; Information not available + +// EnumDateFormatsExW; Index 158; Information not available + +function EnumDateFormatsW(lpDateFmtEnumProc: TFNDateFmtEnumProc; Locale: LCID; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'EnumDateFormatsW' index 120; + +// EnumLanguageGroupLocalesA; Index 160; Information not available + +// EnumLanguageGroupLocalesW; Index 161; Information not available + +function EnumResourceLanguages(hModule: HMODULE; lpType, lpName: PAnsiChar; + lpEnumFunc: ENUMRESLANGPROC; lParam: Longint): BOOL; stdcall; + external 'kernel32.dll' name 'EnumResourceLanguagesA' index 123; + +function EnumResourceLanguagesW(hModule: HMODULE; lpType, lpName: PWideChar; + lpEnumFunc: ENUMRESLANGPROC; lParam: Longint): BOOL; stdcall; + external 'kernel32.dll' name 'EnumResourceLanguagesW' index 124; + +function EnumResourceNames(hModule: HMODULE; lpType: PAnsiChar; + lpEnumFunc: ENUMRESNAMEPROC; lParam: Longint): BOOL; stdcall; + external 'kernel32.dll' name 'EnumResourceNamesA' index 125; + +function EnumResourceNamesW(hModule: HMODULE; lpType: PWideChar; + lpEnumFunc: ENUMRESNAMEPROC; lParam: Longint): BOOL; stdcall; + external 'kernel32.dll' name 'EnumResourceNamesW' index 126; + +function EnumResourceTypes(hModule: HMODULE; lpEnumFunc: ENUMRESTYPEPROC; + lParam: Longint): BOOL; stdcall; + external 'kernel32.dll' name 'EnumResourceTypesA' index 127; + +function EnumResourceTypesW(hModule: HMODULE; lpEnumFunc: ENUMRESTYPEPROC; + lParam: Longint): BOOL; stdcall; + external 'kernel32.dll' name 'EnumResourceTypesW' index 128; + +function EnumSystemCodePages(lpCodePageEnumProc: TFNCodepageEnumProc; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'EnumSystemCodePagesA' index 129; + +function EnumSystemCodePagesW(lpCodePageEnumProc: TFNCodepageEnumProc; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'EnumSystemCodePagesW' index 130; + +// EnumSystemGeoID; Index 170; Information not available + +// EnumSystemLanguageGroupsA; Index 171; Information not available + +// EnumSystemLanguageGroupsW; Index 172; Information not available + +function EnumSystemLocales(lpLocaleEnumProc: TFNLocaleEnumProc; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'EnumSystemLocalesA' index 133; + +function EnumSystemLocalesW(lpLocaleEnumProc: TFNLocaleEnumProc; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'EnumSystemLocalesW' index 134; + +function EnumTimeFormats(lpTimeFmtEnumProc: TFNTimeFmtEnumProc; Locale: LCID; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'EnumTimeFormatsA' index 135; + +function EnumTimeFormatsW(lpTimeFmtEnumProc: TFNTimeFmtEnumProc; Locale: LCID; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'EnumTimeFormatsW' index 136; + +// EnumUILanguagesA; Index 177; Information not available + +// EnumUILanguagesW; Index 178; Information not available + +// EnumerateLocalComputerNamesA; Index 179; Information not available + +// EnumerateLocalComputerNamesW; Index 180; Information not available + +function EraseTape(hDevice: THandle; dwEraseType: DWORD; + bImmediate: BOOL): DWORD; stdcall; + external 'kernel32.dll' name 'EraseTape' index 139; + +function EscapeCommFunction(hFile: THandle; dwFunc: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'EscapeCommFunction' index 140; + +procedure ExitProcess(uExitCode: UINT); stdcall; + external 'kernel32.dll' name 'ExitProcess' index 141; + +procedure ExitThread(dwExitCode: DWORD); stdcall; + external 'kernel32.dll' name 'ExitThread' index 142; + +// ExitVDM; Index 185; Information not available + +function ExpandEnvironmentStrings(lpSrc: PAnsiChar; lpDst: PAnsiChar; + nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'ExpandEnvironmentStringsA' index 144; + +function ExpandEnvironmentStringsW(lpSrc: PWideChar; lpDst: PWideChar; + nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'ExpandEnvironmentStringsW' index 145; + +// ExpungeConsoleCommandHistoryA; Index 188; Information not available + +// ExpungeConsoleCommandHistoryW; Index 189; Information not available + +// ExtendVirtualBuffer; Index 190; Information not available + +procedure FatalAppExit(uAction: UINT; lpMessageText: PAnsiChar); stdcall; + external 'kernel32.dll' name 'FatalAppExitA' index 149; + +procedure FatalAppExitW(uAction: UINT; lpMessageText: PWideChar); stdcall; + external 'kernel32.dll' name 'FatalAppExitW' index 150; + +procedure FatalExit(ExitCode: Integer); stdcall; + external 'kernel32.dll' name 'FatalExit' index 151; + +function FileTimeToDosDateTime(const lpFileTime: TFileTime; var lpFatDate, + lpFatTime: Word): BOOL; stdcall; + external 'kernel32.dll' name 'FileTimeToDosDateTime' index 152; + +function FileTimeToLocalFileTime(const lpFileTime: TFileTime; + var lpLocalFileTime: TFileTime): BOOL; stdcall; + external 'kernel32.dll' name 'FileTimeToLocalFileTime' index 153; + +function FileTimeToSystemTime(const lpFileTime: TFileTime; + var lpSystemTime: TSystemTime): BOOL; stdcall; + external 'kernel32.dll' name 'FileTimeToSystemTime' index 154; + +function FillConsoleOutputAttribute(hConsoleOutput: THandle; wAttribute: Word; + nLength: DWORD; dwWriteCoord: TCoord; + var lpNumberOfAttrsWritten: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'FillConsoleOutputAttribute' index 155; + +function FillConsoleOutputCharacter(hConsoleOutput: THandle; + cCharacter: AnsiChar; nLength: DWORD; dwWriteCoord: TCoord; + var lpNumberOfCharsWritten: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'FillConsoleOutputCharacterA' index 156; + +function FillConsoleOutputCharacterW(hConsoleOutput: THandle; + cCharacter: WideChar; nLength: DWORD; dwWriteCoord: TCoord; + var lpNumberOfCharsWritten: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'FillConsoleOutputCharacterW' index 157; + +// FindActCtxSectionGuid; Index 200; Information not available + +// FindActCtxSectionStringA; Index 201; Information not available + +// FindActCtxSectionStringW; Index 202; Information not available + +function FindAtom(lpString: PAnsiChar): ATOM; stdcall; + external 'kernel32.dll' name 'FindAtomA' index 158; + +function FindAtomW(lpString: PWideChar): ATOM; stdcall; + external 'kernel32.dll' name 'FindAtomW' index 159; + +function FindClose(hFindFile: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'FindClose' index 160; + +function FindCloseChangeNotification(hChangeHandle: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'FindCloseChangeNotification' index 161; + +function FindFirstChangeNotification(lpPathName: PAnsiChar; + bWatchSubtree: BOOL; dwNotifyFilter: DWORD): THandle; stdcall; + external 'kernel32.dll' name 'FindFirstChangeNotificationA' index 162; + +function FindFirstChangeNotificationW(lpPathName: PWideChar; + bWatchSubtree: BOOL; dwNotifyFilter: DWORD): THandle; stdcall; + external 'kernel32.dll' name 'FindFirstChangeNotificationW' index 163; + +function FindFirstFile(lpFileName: PAnsiChar; + var lpFindFileData: TWIN32FindDataA): THandle; stdcall; + external 'kernel32.dll' name 'FindFirstFileA' index 164; + +function FindFirstFileEx(lpFileName: PAnsiChar; + fInfoLevelId: TFindexInfoLevels; lpFindFileData: Pointer; + fSearchOp: TFindexSearchOps; lpSearchFilter: Pointer; + dwAdditionalFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'FindFirstFileExA' index 165; + +function FindFirstFileExW(lpFileName: PWideChar; + fInfoLevelId: TFindexInfoLevels; lpFindFileData: Pointer; + fSearchOp: TFindexSearchOps; lpSearchFilter: Pointer; + dwAdditionalFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'FindFirstFileExW' index 166; + +function FindFirstFileW(lpFileName: PWideChar; + var lpFindFileData: TWIN32FindDataW): THandle; stdcall; + external 'kernel32.dll' name 'FindFirstFileW' index 167; + +// FindFirstVolumeA; Index 213; Information not available + +// FindFirstVolumeMountPointA; Index 214; Information not available + +// FindFirstVolumeMountPointW; Index 215; Information not available + +// FindFirstVolumeW; Index 216; Information not available + +function FindNextChangeNotification(hChangeHandle: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'FindNextChangeNotification' index 172; + +function FindNextFile(hFindFile: THandle; + var lpFindFileData: TWIN32FindDataA): BOOL; stdcall; + external 'kernel32.dll' name 'FindNextFileA' index 173; + +function FindNextFileW(hFindFile: THandle; + var lpFindFileData: TWIN32FindDataW): BOOL; stdcall; + external 'kernel32.dll' name 'FindNextFileW' index 174; + +// FindNextVolumeA; Index 220; Information not available + +// FindNextVolumeMountPointA; Index 221; Information not available + +// FindNextVolumeMountPointW; Index 222; Information not available + +// FindNextVolumeW; Index 223; Information not available + +function FindResource(hModule: HMODULE; lpName, lpType: PAnsiChar): HRSRC; + stdcall; external 'kernel32.dll' name 'FindResourceA' index 179; + +function FindResourceEx(hModule: HMODULE; lpType, lpName: PAnsiChar; + wLanguage: Word): HRSRC; stdcall; + external 'kernel32.dll' name 'FindResourceExA' index 180; + +function FindResourceExW(hModule: HMODULE; lpType, lpName: PWideChar; + wLanguage: Word): HRSRC; stdcall; + external 'kernel32.dll' name 'FindResourceExW' index 181; + +function FindResourceW(hModule: HMODULE; lpName, lpType: PWideChar): HRSRC; + stdcall; external 'kernel32.dll' name 'FindResourceW' index 182; + +// FindVolumeClose; Index 228; Information not available + +// FindVolumeMountPointClose; Index 229; Information not available + +function FlushConsoleInputBuffer(hConsoleInput: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'FlushConsoleInputBuffer' index 185; + +function FlushFileBuffers(hFile: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'FlushFileBuffers' index 186; + +function FlushInstructionCache(hProcess: THandle; + const lpBaseAddress: Pointer; dwSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'FlushInstructionCache' index 187; + +function FlushViewOfFile(const lpBaseAddress: Pointer; + dwNumberOfBytesToFlush: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'FlushViewOfFile' index 188; + +function FoldString(dwMapFlags: DWORD; lpSrcStr: PAnsiChar; cchSrc: Integer; + lpDestStr: PAnsiChar; cchDest: Integer): Integer; stdcall; + external 'kernel32.dll' name 'FoldStringA' index 189; + +function FoldStringW(dwMapFlags: DWORD; lpSrcStr: PWideChar; cchSrc: Integer; + lpDestStr: PWideChar; cchDest: Integer): Integer; stdcall; + external 'kernel32.dll' name 'FoldStringW' index 190; + +function FormatMessage(dwFlags: DWORD; lpSource: Pointer; dwMessageId: DWORD; + dwLanguageId: DWORD; lpBuffer: PAnsiChar; nSize: DWORD; + Arguments: Pointer): DWORD; stdcall; + external 'kernel32.dll' name 'FormatMessageA' index 191; + +function FormatMessageW(dwFlags: DWORD; lpSource: Pointer; dwMessageId: DWORD; + dwLanguageId: DWORD; lpBuffer: PWideChar; nSize: DWORD; + Arguments: Pointer): DWORD; stdcall; + external 'kernel32.dll' name 'FormatMessageW' index 192; + +function FreeConsole: BOOL; stdcall; + external 'kernel32.dll' name 'FreeConsole' index 193; + +function FreeEnvironmentStrings(p1: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'FreeEnvironmentStringsA' index 194; + +function FreeEnvironmentStringsW(p1: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'FreeEnvironmentStringsW' index 195; + +function FreeLibrary(hLibModule: HMODULE): BOOL; stdcall; + external 'kernel32.dll' name 'FreeLibrary' index 196; + +procedure FreeLibraryAndExitThread(hLibModule: HMODULE; dwExitCode: DWORD); + stdcall; + external 'kernel32.dll' name 'FreeLibraryAndExitThread' index 197; + +function FreeResource(hResData: HGLOBAL): BOOL; stdcall; + external 'kernel32.dll' name 'FreeResource' index 198; + +// FreeUserPhysicalPages; Index 244; Information not available + +// FreeVirtualBuffer; Index 245; Information not available + +function GenerateConsoleCtrlEvent(dwCtrlEvent: DWORD; + dwProcessGroupId: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GenerateConsoleCtrlEvent' index 201; + +function GetACP: UINT; stdcall; + external 'kernel32.dll' name 'GetACP' index 202; + +function GetAtomName(nAtom: ATOM; lpBuffer: PAnsiChar; nSize: Integer): UINT; + stdcall; external 'kernel32.dll' name 'GetAtomNameA' index 203; + +function GetAtomNameW(nAtom: ATOM; lpBuffer: PWideChar; nSize: Integer): UINT; + stdcall; external 'kernel32.dll' name 'GetAtomNameW' index 204; + +// GetBinaryType; Index 250; Information not available + +function GetBinaryType(lpApplicationName: PAnsiChar; + var lpBinaryType: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetBinaryTypeA' index 206; + +function GetBinaryTypeW(lpApplicationName: PWideChar; + var lpBinaryType: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetBinaryTypeW' index 207; + +// GetCPFileNameFromRegistry; Index 253; Information not available + +function GetCPInfo(CodePage: UINT; var lpCPInfo: TCPInfo): BOOL; stdcall; + external 'kernel32.dll' name 'GetCPInfo' index 208; + +// GetCPInfoExA; Index 255; Information not available + +// GetCPInfoExW; Index 256; Information not available + +// GetCalendarInfoA; Index 257; Information not available + +// GetCalendarInfoW; Index 258; Information not available + +// GetComPlusPackageInstallStatus; Index 259; Information not available + +function GetCommConfig(hCommDev: THandle; var lpCC: TCommConfig; + var lpdwSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetCommConfig' index 213; + +function GetCommMask(hFile: THandle; var lpEvtMask: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetCommMask' index 214; + +function GetCommModemStatus(hFile: THandle; var lpModemStat: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'GetCommModemStatus' index 215; + +function GetCommProperties(hFile: THandle; var lpCommProp: TCommProp): BOOL; + stdcall; external 'kernel32.dll' name 'GetCommProperties' index 216; + +function GetCommState(hFile: THandle; var lpDCB: TDCB): BOOL; stdcall; + external 'kernel32.dll' name 'GetCommState' index 217; + +function GetCommTimeouts(hFile: THandle; + var lpCommTimeouts: TCommTimeouts): BOOL; stdcall; + external 'kernel32.dll' name 'GetCommTimeouts' index 218; + +function GetCommandLine: PAnsiChar; stdcall; + external 'kernel32.dll' name 'GetCommandLineA' index 219; + +function GetCommandLineW: PWideChar; stdcall; + external 'kernel32.dll' name 'GetCommandLineW' index 220; + +function GetCompressedFileSize(lpFileName: PAnsiChar; + lpFileSizeHigh: PDWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetCompressedFileSizeA' index 221; + +function GetCompressedFileSizeW(lpFileName: PWideChar; + lpFileSizeHigh: PDWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetCompressedFileSizeW' index 222; + +function GetComputerName(lpBuffer: PAnsiChar; var nSize: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'GetComputerNameA' index 223; + +// GetComputerNameExA; Index 271; Information not available + +// GetComputerNameExW; Index 272; Information not available + +function GetComputerNameW(lpBuffer: PWideChar; var nSize: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'GetComputerNameW' index 226; + +// GetConsoleAliasA; Index 274; Information not available + +// GetConsoleAliasExesA; Index 275; Information not available + +// GetConsoleAliasExesLengthA; Index 276; Information not available + +// GetConsoleAliasExesLengthW; Index 277; Information not available + +// GetConsoleAliasExesW; Index 278; Information not available + +// GetConsoleAliasW; Index 279; Information not available + +// GetConsoleAliasesA; Index 280; Information not available + +// GetConsoleAliasesLengthA; Index 281; Information not available + +// GetConsoleAliasesLengthW; Index 282; Information not available + +// GetConsoleAliasesW; Index 283; Information not available + +function GetConsoleCP: UINT; stdcall; + external 'kernel32.dll' name 'GetConsoleCP' index 237; + +// GetConsoleCharType; Index 285; Information not available + +// GetConsoleCommandHistoryA; Index 286; Information not available + +// GetConsoleCommandHistoryLengthA; Index 287; Information not available + +// GetConsoleCommandHistoryLengthW; Index 288; Information not available + +// GetConsoleCommandHistoryW; Index 289; Information not available + +function GetConsoleCursorInfo(hConsoleOutput: THandle; + var lpConsoleCursorInfo: TConsoleCursorInfo): BOOL; stdcall; + external 'kernel32.dll' name 'GetConsoleCursorInfo' index 243; + +// GetConsoleCursorMode; Index 291; Information not available + +// GetConsoleDisplayMode; Index 292; Information not available + +// GetConsoleFontInfo; Index 293; Information not available + +// GetConsoleFontSize; Index 294; Information not available + +// GetConsoleHardwareState; Index 295; Information not available + +// GetConsoleInputExeNameA; Index 296; Information not available + +// GetConsoleInputExeNameW; Index 297; Information not available + +// GetConsoleInputWaitHandle; Index 298; Information not available + +// GetConsoleKeyboardLayoutNameA; Index 299; Information not available + +// GetConsoleKeyboardLayoutNameW; Index 300; Information not available + +function GetConsoleMode(hConsoleHandle: THandle; var lpMode: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'GetConsoleMode' index 254; + +// GetConsoleNlsMode; Index 302; Information not available + +function GetConsoleOutputCP: UINT; stdcall; + external 'kernel32.dll' name 'GetConsoleOutputCP' index 256; + +// GetConsoleProcessList; Index 304; Information not available + +function GetConsoleScreenBufferInfo(hConsoleOutput: THandle; + var lpConsoleScreenBufferInfo: TConsoleScreenBufferInfo): BOOL; stdcall; + external 'kernel32.dll' name 'GetConsoleScreenBufferInfo' index 257; + +// GetConsoleSelectionInfo; Index 306; Information not available + +function GetConsoleTitle(lpConsoleTitle: PAnsiChar; nSize: DWORD): DWORD; + stdcall; external 'kernel32.dll' name 'GetConsoleTitleA' index 258; + +function GetConsoleTitleW(lpConsoleTitle: PWideChar; nSize: DWORD): DWORD; + stdcall; external 'kernel32.dll' name 'GetConsoleTitleW' index 259; + +// GetConsoleWindow; Index 309; Information not available + +function GetCurrencyFormat(Locale: LCID; dwFlags: DWORD; lpValue: PAnsiChar; + lpFormat: PCurrencyFmtA; lpCurrencyStr: PAnsiChar; + cchCurrency: Integer): Integer; stdcall; + external 'kernel32.dll' name 'GetCurrencyFormatA' index 261; + +function GetCurrencyFormatW(Locale: LCID; dwFlags: DWORD; lpValue: PWideChar; + lpFormat: PCurrencyFmtW; lpCurrencyStr: PWideChar; + cchCurrency: Integer): Integer; stdcall; + external 'kernel32.dll' name 'GetCurrencyFormatW' index 262; + +// GetCurrentActCtx; Index 312; Information not available + +// GetCurrentConsoleFont; Index 313; Information not available + +function GetCurrentDirectory(nBufferLength: DWORD; + lpBuffer: PAnsiChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetCurrentDirectoryA' index 264; + +function GetCurrentDirectoryW(nBufferLength: DWORD; + lpBuffer: PWideChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetCurrentDirectoryW' index 265; + +function GetCurrentProcess: THandle; stdcall; + external 'kernel32.dll' name 'GetCurrentProcess' index 266; + +function GetCurrentProcessId: DWORD; stdcall; + external 'kernel32.dll' name 'GetCurrentProcessId' index 267; + +function GetCurrentThread: THandle; stdcall; + external 'kernel32.dll' name 'GetCurrentThread' index 268; + +function GetCurrentThreadId: DWORD; stdcall; + external 'kernel32.dll' name 'GetCurrentThreadId' index 269; + +function GetDateFormat(Locale: LCID; dwFlags: DWORD; lpDate: PSystemTime; + lpFormat: PAnsiChar; lpDateStr: PAnsiChar; cchDate: Integer): Integer; + stdcall; external 'kernel32.dll' name 'GetDateFormatA' index 270; + +function GetDateFormatW(Locale: LCID; dwFlags: DWORD; lpDate: PSystemTime; + lpFormat: PWideChar; lpDateStr: PWideChar; cchDate: Integer): Integer; + stdcall; external 'kernel32.dll' name 'GetDateFormatW' index 271; + +function GetDefaultCommConfig(lpszName: PAnsiChar; var lpCC: TCommConfig; + var lpdwSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetDefaultCommConfigA' index 272; + +function GetDefaultCommConfigW(lpszName: PWideChar; var lpCC: TCommConfig; + var lpdwSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetDefaultCommConfigW' index 273; + +// GetDefaultSortkeySize; Index 324; Information not available + +// GetDevicePowerState; Index 325; Information not available + +function GetDiskFreeSpace(lpRootPathName: PAnsiChar; var lpSectorsPerCluster, + lpBytesPerSector, lpNumberOfFreeClusters, + lpTotalNumberOfClusters: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetDiskFreeSpaceA' index 276; + +function GetDiskFreeSpaceEx(lpDirectoryName: PAnsiChar; + var lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes; + lpTotalNumberOfFreeBytes: PLargeInteger): BOOL; stdcall; + external 'kernel32.dll' name 'GetDiskFreeSpaceExA' index 277; + +function GetDiskFreeSpaceExW(lpDirectoryName: PWideChar; + var lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes; + lpTotalNumberOfFreeBytes: PLargeInteger): BOOL; stdcall; + external 'kernel32.dll' name 'GetDiskFreeSpaceExW' index 278; + +function GetDiskFreeSpaceW(lpRootPathName: PWideChar; var lpSectorsPerCluster, + lpBytesPerSector, lpNumberOfFreeClusters, + lpTotalNumberOfClusters: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetDiskFreeSpaceW' index 279; + +// GetDllDirectoryA; Index 330; Information not available + +// GetDllDirectoryW; Index 331; Information not available + +function GetDriveType(lpRootPathName: PAnsiChar): UINT; stdcall; + external 'kernel32.dll' name 'GetDriveTypeA' index 280; + +function GetDriveTypeW(lpRootPathName: PWideChar): UINT; stdcall; + external 'kernel32.dll' name 'GetDriveTypeW' index 281; + +// GetEnvironmentStrings; Index 334; Information not available + +function GetEnvironmentStrings: PAnsiChar; stdcall; + external 'kernel32.dll' name 'GetEnvironmentStringsA' index 283; + +function GetEnvironmentStringsW: PWideChar; stdcall; + external 'kernel32.dll' name 'GetEnvironmentStringsW' index 284; + +function GetEnvironmentVariable(lpName: PAnsiChar; lpBuffer: PAnsiChar; + nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetEnvironmentVariableA' index 285; + +function GetEnvironmentVariableW(lpName: PWideChar; lpBuffer: PWideChar; + nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetEnvironmentVariableW' index 286; + +function GetExitCodeProcess(hProcess: THandle; var lpExitCode: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'GetExitCodeProcess' index 287; + +function GetExitCodeThread(hThread: THandle; var lpExitCode: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'GetExitCodeThread' index 288; + +// GetExpandedNameA; Index 341; Information not available + +// GetExpandedNameW; Index 342; Information not available + +function GetFileAttributes(lpFileName: PAnsiChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetFileAttributesA' index 289; + +function GetFileAttributesEx(lpFileName: PAnsiChar; + fInfoLevelId: TGetFileExInfoLevels; lpFileInformation: Pointer): BOOL; + stdcall; external 'kernel32.dll' name 'GetFileAttributesExA' index 290; + +function GetFileAttributesExW(lpFileName: PWideChar; + fInfoLevelId: TGetFileExInfoLevels; lpFileInformation: Pointer): BOOL; + stdcall; external 'kernel32.dll' name 'GetFileAttributesExW' index 291; + +function GetFileAttributesW(lpFileName: PWideChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetFileAttributesW' index 292; + +function GetFileInformationByHandle(hFile: THandle; + var lpFileInformation: TByHandleFileInformation): BOOL; stdcall; + external 'kernel32.dll' name 'GetFileInformationByHandle' index 293; + +function GetFileSize(hFile: THandle; lpFileSizeHigh: Pointer): DWORD; stdcall; + external 'kernel32.dll' name 'GetFileSize' index 294; + +// GetFileSizeEx; Index 349; Information not available + +function GetFileTime(hFile: THandle; lpCreationTime, lpLastAccessTime, + lpLastWriteTime: PFileTime): BOOL; stdcall; + external 'kernel32.dll' name 'GetFileTime' index 296; + +function GetFileType(hFile: THandle): DWORD; stdcall; + external 'kernel32.dll' name 'GetFileType' index 297; + +// GetFirmwareEnvironmentVariableA; Index 352; Information not available + +// GetFirmwareEnvironmentVariableW; Index 353; Information not available + +function GetFullPathName(lpFileName: PAnsiChar; nBufferLength: DWORD; + lpBuffer: PAnsiChar; var lpFilePart: PAnsiChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetFullPathNameA' index 298; + +function GetFullPathNameW(lpFileName: PWideChar; nBufferLength: DWORD; + lpBuffer: PWideChar; var lpFilePart: PWideChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetFullPathNameW' index 299; + +// GetGeoInfoA; Index 356; Information not available + +// GetGeoInfoW; Index 357; Information not available + +// GetHandleContext; Index 358; Information not available + +function GetHandleInformation(hObject: THandle; var lpdwFlags: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'GetHandleInformation' index 300; + +function GetLargestConsoleWindowSize(hConsoleOutput: THandle): TCoord; + stdcall; + external 'kernel32.dll' name 'GetLargestConsoleWindowSize' index 301; + +function GetLastError: DWORD; stdcall; + external 'kernel32.dll' name 'GetLastError' index 302; + +// GetLinguistLangSize; Index 362; Information not available + +procedure GetLocalTime(var lpSystemTime: TSystemTime); stdcall; + external 'kernel32.dll' name 'GetLocalTime' index 304; + +function GetLocaleInfo(Locale: LCID; LCType: LCTYPE; lpLCData: PAnsiChar; + cchData: Integer): Integer; stdcall; + external 'kernel32.dll' name 'GetLocaleInfoA' index 305; + +function GetLocaleInfoW(Locale: LCID; LCType: LCTYPE; lpLCData: PWideChar; + cchData: Integer): Integer; stdcall; + external 'kernel32.dll' name 'GetLocaleInfoW' index 306; + +function GetLogicalDriveStrings(nBufferLength: DWORD; + lpBuffer: PAnsiChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetLogicalDriveStringsA' index 307; + +function GetLogicalDriveStringsW(nBufferLength: DWORD; + lpBuffer: PAnsiChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetLogicalDriveStringsW' index 308; + +function GetLogicalDrives: DWORD; stdcall; + external 'kernel32.dll' name 'GetLogicalDrives' index 309; + +// GetLongPathNameA; Index 369; Information not available + +// GetLongPathNameW; Index 370; Information not available + +function GetMailslotInfo(hMailslot: THandle; lpMaxMessageSize: Pointer; + var lpNextSize: DWORD; lpMessageCount, lpReadTimeout: Pointer): BOOL; + stdcall; external 'kernel32.dll' name 'GetMailslotInfo' index 312; + +function GetModuleFileName(hModule: HINST; lpFilename: PAnsiChar; + nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetModuleFileNameA' index 313; + +function GetModuleFileNameW(hModule: HINST; lpFilename: PWideChar; + nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetModuleFileNameW' index 314; + +function GetModuleHandle(lpModuleName: PAnsiChar): HMODULE; stdcall; + external 'kernel32.dll' name 'GetModuleHandleA' index 315; + +// GetModuleHandleExA; Index 375; Information not available + +// GetModuleHandleExW; Index 376; Information not available + +function GetModuleHandleW(lpModuleName: PWideChar): HMODULE; stdcall; + external 'kernel32.dll' name 'GetModuleHandleW' index 316; + +function GetNamedPipeHandleState(hNamedPipe: THandle; lpState, lpCurInstances, + lpMaxCollectionCount, lpCollectDataTimeout: PDWORD; + lpUserName: PAnsiChar; nMaxUserNameSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetNamedPipeHandleStateA' index 317; + +function GetNamedPipeHandleStateW(hNamedPipe: THandle; lpState, + lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout: PDWORD; + lpUserName: PWideChar; nMaxUserNameSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetNamedPipeHandleStateW' index 318; + +function GetNamedPipeInfo(hNamedPipe: THandle; var lpFlags: DWORD; + lpOutBufferSize, lpInBufferSize, lpMaxInstances: Pointer): BOOL; + stdcall; external 'kernel32.dll' name 'GetNamedPipeInfo' index 319; + +// GetNativeSystemInfo; Index 381; Information not available + +// GetNextVDMCommand; Index 382; Information not available + +// GetNlsSectionName; Index 383; Information not available + +// GetNumaAvailableMemory; Index 384; Information not available + +// GetNumaAvailableMemoryNode; Index 385; Information not available + +// GetNumaHighestNodeNumber; Index 386; Information not available + +// GetNumaNodeProcessorMask; Index 387; Information not available + +// GetNumaProcessorMap; Index 388; Information not available + +// GetNumaProcessorNode; Index 389; Information not available + +function GetNumberFormat(Locale: LCID; dwFlags: DWORD; lpValue: PAnsiChar; + lpFormat: PNumberFmtA; lpNumberStr: PAnsiChar; + cchNumber: Integer): Integer; stdcall; + external 'kernel32.dll' name 'GetNumberFormatA' index 322; + +function GetNumberFormatW(Locale: LCID; dwFlags: DWORD; lpValue: PWideChar; + lpFormat: PNumberFmtW; lpNumberStr: PWideChar; + cchNumber: Integer): Integer; stdcall; + external 'kernel32.dll' name 'GetNumberFormatW' index 323; + +// GetNumberOfConsoleFonts; Index 392; Information not available + +function GetNumberOfConsoleInputEvents(hConsoleInput: THandle; + var lpNumberOfEvents: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetNumberOfConsoleInputEvents' index 325; + +function GetNumberOfConsoleMouseButtons(var lpNumberOfMouseButtons: DWORD): + BOOL; stdcall; + external 'kernel32.dll' name 'GetNumberOfConsoleMouseButtons' index 326; + +function GetOEMCP: UINT; stdcall; + external 'kernel32.dll' name 'GetOEMCP' index 327; + +function GetOverlappedResult(hFile: THandle; const lpOverlapped: TOverlapped; + var lpNumberOfBytesTransferred: DWORD; bWait: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'GetOverlappedResult' index 328; + +function GetPriorityClass(hProcess: THandle): DWORD; stdcall; + external 'kernel32.dll' name 'GetPriorityClass' index 329; + +function GetPrivateProfileInt(lpAppName, lpKeyName: PAnsiChar; + nDefault: Integer; lpFileName: PAnsiChar): UINT; stdcall; + external 'kernel32.dll' name 'GetPrivateProfileIntA' index 330; + +function GetPrivateProfileIntW(lpAppName, lpKeyName: PWideChar; + nDefault: Integer; lpFileName: PWideChar): UINT; stdcall; + external 'kernel32.dll' name 'GetPrivateProfileIntW' index 331; + +function GetPrivateProfileSection(lpAppName: PAnsiChar; + lpReturnedString: PAnsiChar; nSize: DWORD; + lpFileName: PAnsiChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetPrivateProfileSectionA' index 332; + +function GetPrivateProfileSectionNames(lpszReturnBuffer: PAnsiChar; + nSize: DWORD; lpFileName: PAnsiChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetPrivateProfileSectionNamesA' index 333; + +function GetPrivateProfileSectionNamesW(lpszReturnBuffer: PWideChar; + nSize: DWORD; lpFileName: PWideChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetPrivateProfileSectionNamesW' index 334; + +function GetPrivateProfileSectionW(lpAppName: PWideChar; + lpReturnedString: PWideChar; nSize: DWORD; + lpFileName: PWideChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetPrivateProfileSectionW' index 335; + +function GetPrivateProfileString(lpAppName, lpKeyName, lpDefault: PAnsiChar; + lpReturnedString: PAnsiChar; nSize: DWORD; + lpFileName: PAnsiChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetPrivateProfileStringA' index 336; + +function GetPrivateProfileStringW(lpAppName, lpKeyName, lpDefault: PWideChar; + lpReturnedString: PWideChar; nSize: DWORD; + lpFileName: PWideChar): DWORD; stdcall; + external 'kernel32.dll' name 'GetPrivateProfileStringW' index 337; + +function GetPrivateProfileStruct(lpszSection, lpszKey: PAnsiChar; + lpStruct: Pointer; uSizeStruct: UINT; szFile: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'GetPrivateProfileStructA' index 338; + +function GetPrivateProfileStructW(lpszSection, lpszKey: PWideChar; + lpStruct: Pointer; uSizeStruct: UINT; szFile: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'GetPrivateProfileStructW' index 339; + +function GetProcAddress(hModule: HMODULE; lpProcName: LPCSTR): FARPROC; + stdcall; external 'kernel32.dll' name 'GetProcAddress' index 340; + +function GetProcessAffinityMask(hProcess: THandle; var lpProcessAffinityMask, + lpSystemAffinityMask: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetProcessAffinityMask' index 341; + +// GetProcessHandleCount; Index 410; Information not available + +function GetProcessHeap: THandle; stdcall; + external 'kernel32.dll' name 'GetProcessHeap' index 342; + +function GetProcessHeaps(NumberOfHeaps: DWORD; + var ProcessHeaps: THandle): DWORD; stdcall; + external 'kernel32.dll' name 'GetProcessHeaps' index 343; + +// GetProcessId; Index 413; Information not available + +// GetProcessIoCounters; Index 414; Information not available + +function GetProcessPriorityBoost(hThread: THandle; + var DisablePriorityBoost: Bool): BOOL; stdcall; + external 'kernel32.dll' name 'GetProcessPriorityBoost' index 345; + +function GetProcessShutdownParameters(var lpdwLevel, lpdwFlags: DWORD): BOOL; + stdcall; + external 'kernel32.dll' name 'GetProcessShutdownParameters' index 346; + +function GetProcessTimes(hProcess: THandle; var lpCreationTime, lpExitTime, + lpKernelTime, lpUserTime: TFileTime): BOOL; stdcall; + external 'kernel32.dll' name 'GetProcessTimes' index 347; + +function GetProcessVersion(ProcessId: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetProcessVersion' index 348; + +function GetProcessWorkingSetSize(hProcess: THandle; + var lpMinimumWorkingSetSize, lpMaximumWorkingSetSize: DWORD): BOOL; + stdcall; + external 'kernel32.dll' name 'GetProcessWorkingSetSize' index 349; + +function GetProfileInt(lpAppName, lpKeyName: PAnsiChar; + nDefault: Integer): UINT; stdcall; + external 'kernel32.dll' name 'GetProfileIntA' index 350; + +function GetProfileIntW(lpAppName, lpKeyName: PWideChar; + nDefault: Integer): UINT; stdcall; + external 'kernel32.dll' name 'GetProfileIntW' index 351; + +function GetProfileSection(lpAppName: PAnsiChar; lpReturnedString: PAnsiChar; + nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetProfileSectionA' index 352; + +function GetProfileSectionW(lpAppName: PWideChar; lpReturnedString: PWideChar; + nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetProfileSectionW' index 353; + +function GetProfileString(lpAppName, lpKeyName, lpDefault: PAnsiChar; + lpReturnedString: PAnsiChar; nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetProfileStringA' index 354; + +function GetProfileStringW(lpAppName, lpKeyName, lpDefault: PWideChar; + lpReturnedString: PWideChar; nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetProfileStringW' index 355; + +function GetQueuedCompletionStatus(CompletionPort: THandle; + var lpNumberOfBytesTransferred, lpCompletionKey: DWORD; + var lpOverlapped: POverlapped; dwMilliseconds: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetQueuedCompletionStatus' index 356; + +function GetShortPathName(lpszLongPath: PAnsiChar; lpszShortPath: PAnsiChar; + cchBuffer: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetShortPathNameA' index 357; + +function GetShortPathNameW(lpszLongPath: PWideChar; lpszShortPath: PWideChar; + cchBuffer: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'GetShortPathNameW' index 358; + +procedure GetStartupInfo(var lpStartupInfo: TStartupInfo); stdcall; + external 'kernel32.dll' name 'GetStartupInfoA' index 359; + +procedure GetStartupInfoW(var lpStartupInfo: TStartupInfo); stdcall; + external 'kernel32.dll' name 'GetStartupInfoW' index 360; + +function GetStdHandle(nStdHandle: DWORD): THandle; stdcall; + external 'kernel32.dll' name 'GetStdHandle' index 361; + +function GetStringTypeA(Locale: LCID; dwInfoType: DWORD; + const lpSrcStr: LPCSTR; cchSrc: BOOL; var lpCharType: Word): BOOL; + external 'kernel32.dll' name 'GetStringTypeA' index 362; + +function GetStringTypeEx(Locale: LCID; dwInfoType: DWORD; lpSrcStr: PAnsiChar; + cchSrc: Integer; var lpCharType): BOOL; stdcall; + external 'kernel32.dll' name 'GetStringTypeExA' index 363; + +function GetStringTypeExW(Locale: LCID; dwInfoType: DWORD; + lpSrcStr: PWideChar; cchSrc: Integer; var lpCharType): BOOL; stdcall; + external 'kernel32.dll' name 'GetStringTypeExW' index 364; + +function GetStringTypeW(dwInfoType: DWORD; const lpSrcStr: WCHAR; + cchSrc: BOOL; var lpCharType: Word): BOOL; + external 'kernel32.dll' name 'GetStringTypeW' index 365; + +function GetSystemDefaultLCID: LCID; stdcall; + external 'kernel32.dll' name 'GetSystemDefaultLCID' index 366; + +function GetSystemDefaultLangID: LANGID; stdcall; + external 'kernel32.dll' name 'GetSystemDefaultLangID' index 367; + +// GetSystemDefaultUILanguage; Index 438; Information not available + +function GetSystemDirectory(lpBuffer: PAnsiChar; uSize: UINT): UINT; stdcall; + external 'kernel32.dll' name 'GetSystemDirectoryA' index 369; + +function GetSystemDirectoryW(lpBuffer: PWideChar; uSize: UINT): UINT; stdcall; + external 'kernel32.dll' name 'GetSystemDirectoryW' index 370; + +procedure GetSystemInfo(var lpSystemInfo: TSystemInfo); stdcall; + external 'kernel32.dll' name 'GetSystemInfo' index 371; + +function GetSystemPowerStatus(var lpSystemPowerStatus: TSystemPowerStatus): + BOOL; stdcall; + external 'kernel32.dll' name 'GetSystemPowerStatus' index 372; + +// GetSystemRegistryQuota; Index 443; Information not available + +procedure GetSystemTime(var lpSystemTime: TSystemTime); stdcall; + external 'kernel32.dll' name 'GetSystemTime' index 373; + +function GetSystemTimeAdjustment(var lpTimeAdjustment, lpTimeIncrement: DWORD; + var lpTimeAdjustmentDisabled: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'GetSystemTimeAdjustment' index 374; + +procedure GetSystemTimeAsFileTime(var lpSystemTimeAsFileTime: TFileTime); + stdcall; + external 'kernel32.dll' name 'GetSystemTimeAsFileTime' index 375; + +// GetSystemTimes; Index 447; Information not available + +// GetSystemWindowsDirectoryA; Index 448; Information not available + +// GetSystemWindowsDirectoryW; Index 449; Information not available + +// GetSystemWow64DirectoryA; Index 450; Information not available + +// GetSystemWow64DirectoryW; Index 451; Information not available + +function GetTapeParameters(hDevice: THandle; dwOperation: DWORD; + var lpdwSize: DWORD; lpTapeInformation: Pointer): DWORD; stdcall; + external 'kernel32.dll' name 'GetTapeParameters' index 378; + +function GetTapePosition(hDevice: THandle; dwPositionType: DWORD; + var lpdwPartition, lpdwOffsetLow: DWORD; + lpdwOffsetHigh: Pointer): DWORD; stdcall; + external 'kernel32.dll' name 'GetTapePosition' index 379; + +function GetTapeStatus(hDevice: THandle): DWORD; stdcall; + external 'kernel32.dll' name 'GetTapeStatus' index 380; + +function GetTempFileName(lpPathName, lpPrefixString: PAnsiChar; uUnique: UINT; + lpTempFileName: PAnsiChar): UINT; stdcall; + external 'kernel32.dll' name 'GetTempFileNameA' index 381; + +function GetTempFileNameW(lpPathName, lpPrefixString: PWideChar; + uUnique: UINT; lpTempFileName: PWideChar): UINT; stdcall; + external 'kernel32.dll' name 'GetTempFileNameW' index 382; + +function GetTempPath(nBufferLength: DWORD; lpBuffer: PAnsiChar): DWORD; + stdcall; external 'kernel32.dll' name 'GetTempPathA' index 383; + +function GetTempPathW(nBufferLength: DWORD; lpBuffer: PWideChar): DWORD; + stdcall; external 'kernel32.dll' name 'GetTempPathW' index 384; + +function GetThreadContext(hThread: THandle; var lpContext: TContext): BOOL; + stdcall; external 'kernel32.dll' name 'GetThreadContext' index 385; + +// GetThreadIOPendingFlag; Index 460; Information not available + +function GetThreadLocale: LCID; stdcall; + external 'kernel32.dll' name 'GetThreadLocale' index 386; + +function GetThreadPriority(hThread: THandle): Integer; stdcall; + external 'kernel32.dll' name 'GetThreadPriority' index 387; + +function GetThreadPriorityBoost(hThread: THandle; + var DisablePriorityBoost: Bool): BOOL; stdcall; + external 'kernel32.dll' name 'GetThreadPriorityBoost' index 388; + +function GetThreadSelectorEntry(hThread: THandle; dwSelector: DWORD; + var lpSelectorEntry: TLDTEntry): BOOL; stdcall; + external 'kernel32.dll' name 'GetThreadSelectorEntry' index 389; + +function GetThreadTimes(hThread: THandle; var lpCreationTime, lpExitTime, + lpKernelTime, lpUserTime: TFileTime): BOOL; stdcall; + external 'kernel32.dll' name 'GetThreadTimes' index 390; + +function GetTickCount: DWORD; stdcall; + external 'kernel32.dll' name 'GetTickCount' index 391; + +function GetTimeFormat(Locale: LCID; dwFlags: DWORD; lpTime: PSystemTime; + lpFormat: PAnsiChar; lpTimeStr: PAnsiChar; cchTime: Integer): Integer; + stdcall; external 'kernel32.dll' name 'GetTimeFormatA' index 392; + +function GetTimeFormatW(Locale: LCID; dwFlags: DWORD; lpTime: PSystemTime; + lpFormat: PWideChar; lpTimeStr: PWideChar; cchTime: Integer): Integer; + stdcall; external 'kernel32.dll' name 'GetTimeFormatW' index 393; + +function GetTimeZoneInformation(var lpTimeZoneInformation: + TTimeZoneInformation): DWORD; stdcall; + external 'kernel32.dll' name 'GetTimeZoneInformation' index 394; + +function GetUserDefaultLCID: LCID; stdcall; + external 'kernel32.dll' name 'GetUserDefaultLCID' index 395; + +function GetUserDefaultLangID: LANGID; stdcall; + external 'kernel32.dll' name 'GetUserDefaultLangID' index 396; + +// GetUserDefaultUILanguage; Index 472; Information not available + +// GetUserGeoID; Index 473; Information not available + +// GetVDMCurrentDirectories; Index 474; Information not available + +function GetVersion: DWORD; stdcall; + external 'kernel32.dll' name 'GetVersion' index 399; + +function GetVersionEx(var lpVersionInformation: TOSVersionInfo): BOOL; + stdcall; external 'kernel32.dll' name 'GetVersionExA' index 400; + +function GetVersionExW(var lpVersionInformation: TOSVersionInfo): BOOL; + stdcall; external 'kernel32.dll' name 'GetVersionExW' index 401; + +function GetVolumeInformation(lpRootPathName: PAnsiChar; + lpVolumeNameBuffer: PAnsiChar; nVolumeNameSize: DWORD; + lpVolumeSerialNumber: PDWORD; var lpMaximumComponentLength, + lpFileSystemFlags: DWORD; lpFileSystemNameBuffer: PAnsiChar; + nFileSystemNameSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetVolumeInformationA' index 402; + +function GetVolumeInformationW(lpRootPathName: PWideChar; + lpVolumeNameBuffer: PWideChar; nVolumeNameSize: DWORD; + lpVolumeSerialNumber: PDWORD; var lpMaximumComponentLength, + lpFileSystemFlags: DWORD; lpFileSystemNameBuffer: PWideChar; + nFileSystemNameSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'GetVolumeInformationW' index 403; + +// GetVolumeNameForVolumeMountPointA; Index 480; Information not available + +// GetVolumeNameForVolumeMountPointW; Index 481; Information not available + +// GetVolumePathNameA; Index 482; Information not available + +// GetVolumePathNameW; Index 483; Information not available + +// GetVolumePathNamesForVolumeNameA; Index 484; Information not available + +// GetVolumePathNamesForVolumeNameW; Index 485; Information not available + +function GetWindowsDirectory(lpBuffer: PAnsiChar; uSize: UINT): UINT; stdcall; + external 'kernel32.dll' name 'GetWindowsDirectoryA' index 408; + +function GetWindowsDirectoryW(lpBuffer: PWideChar; uSize: UINT): UINT; + stdcall; external 'kernel32.dll' name 'GetWindowsDirectoryW' index 409; + +// GetWriteWatch; Index 488; Information not available + +function GlobalAddAtom(lpString: PAnsiChar): ATOM; stdcall; + external 'kernel32.dll' name 'GlobalAddAtomA' index 411; + +function GlobalAddAtomW(lpString: PWideChar): ATOM; stdcall; + external 'kernel32.dll' name 'GlobalAddAtomW' index 412; + +function GlobalAlloc(uFlags: UINT; dwBytes: DWORD): HGLOBAL; stdcall; + external 'kernel32.dll' name 'GlobalAlloc' index 413; + +function GlobalCompact(dwMinFree: DWORD): UINT; stdcall; + external 'kernel32.dll' name 'GlobalCompact' index 414; + +function GlobalDeleteAtom(nAtom: ATOM): ATOM; stdcall; + external 'kernel32.dll' name 'GlobalDeleteAtom' index 415; + +function GlobalFindAtom(lpString: PAnsiChar): ATOM; stdcall; + external 'kernel32.dll' name 'GlobalFindAtomA' index 416; + +function GlobalFindAtomW(lpString: PWideChar): ATOM; stdcall; + external 'kernel32.dll' name 'GlobalFindAtomW' index 417; + +procedure GlobalFix(hMem: HGLOBAL); stdcall; + external 'kernel32.dll' name 'GlobalFix' index 418; + +function GlobalFlags(hMem: HGLOBAL): UINT; stdcall; + external 'kernel32.dll' name 'GlobalFlags' index 419; + +function GlobalFree(hMem: HGLOBAL): HGLOBAL; stdcall; + external 'kernel32.dll' name 'GlobalFree' index 420; + +function GlobalGetAtomName(nAtom: ATOM; lpBuffer: PAnsiChar; + nSize: Integer): UINT; stdcall; + external 'kernel32.dll' name 'GlobalGetAtomNameA' index 421; + +function GlobalGetAtomNameW(nAtom: ATOM; lpBuffer: PWideChar; + nSize: Integer): UINT; stdcall; + external 'kernel32.dll' name 'GlobalGetAtomNameW' index 422; + +function GlobalHandle(Mem: Pointer): HGLOBAL; stdcall; + external 'kernel32.dll' name 'GlobalHandle' index 423; + +function GlobalLock(hMem: HGLOBAL): Pointer; stdcall; + external 'kernel32.dll' name 'GlobalLock' index 424; + +procedure GlobalMemoryStatus(var lpBuffer: TMemoryStatus); stdcall; + external 'kernel32.dll' name 'GlobalMemoryStatus' index 425; + +// GlobalMemoryStatusEx; Index 504; Information not available + +function GlobalReAlloc(hMem: HGLOBAL; dwBytes: DWORD; uFlags: UINT): HGLOBAL; + stdcall; external 'kernel32.dll' name 'GlobalReAlloc' index 427; + +function GlobalSize(hMem: HGLOBAL): DWORD; stdcall; + external 'kernel32.dll' name 'GlobalSize' index 428; + +function GlobalUnWire(hMem: HGLOBAL): BOOL; stdcall; + external 'kernel32.dll' name 'GlobalUnWire' index 429; + +procedure GlobalUnfix(hMem: HGLOBAL); stdcall; + external 'kernel32.dll' name 'GlobalUnfix' index 430; + +function GlobalUnlock(hMem: HGLOBAL): BOOL; stdcall; + external 'kernel32.dll' name 'GlobalUnlock' index 431; + +function GlobalWire(hMem: HGLOBAL): Pointer; stdcall; + external 'kernel32.dll' name 'GlobalWire' index 432; + +function Heap32First(var lphe: THeapEntry32; th32ProcessID, + th32HeapID: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'Heap32First' index 433; + +function Heap32ListFirst(hSnapshot: THandle; var lphl: THeapList32): BOOL; + stdcall; external 'kernel32.dll' name 'Heap32ListFirst' index 434; + +function Heap32ListNext(hSnapshot: THandle; var lphl: THeapList32): BOOL; + stdcall; external 'kernel32.dll' name 'Heap32ListNext' index 435; + +function Heap32Next(var lphe: THeapEntry32): BOOL; stdcall; + external 'kernel32.dll' name 'Heap32Next' index 436; + +function HeapAlloc(hHeap: THandle; dwFlags, dwBytes: DWORD): Pointer; stdcall; + external 'kernel32.dll' name 'HeapAlloc' index 437; + +function HeapCompact(hHeap: THandle; dwFlags: DWORD): UINT; stdcall; + external 'kernel32.dll' name 'HeapCompact' index 438; + +function HeapCreate(flOptions, dwInitialSize, dwMaximumSize: DWORD): THandle; + stdcall; external 'kernel32.dll' name 'HeapCreate' index 439; + +// HeapCreateTagsW; Index 518; Information not available + +function HeapDestroy(hHeap: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'HeapDestroy' index 441; + +// HeapExtend; Index 520; Information not available + +function HeapFree(hHeap: THandle; dwFlags: DWORD; lpMem: Pointer): BOOL; + stdcall; external 'kernel32.dll' name 'HeapFree' index 443; + +function HeapLock(hHeap: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'HeapLock' index 444; + +// HeapQueryInformation; Index 523; Information not available + +// HeapQueryTagW; Index 524; Information not available + +function HeapReAlloc(hHeap: THandle; dwFlags: DWORD; lpMem: Pointer; + dwBytes: DWORD): Pointer; stdcall; + external 'kernel32.dll' name 'HeapReAlloc' index 446; + +// HeapSetInformation; Index 526; Information not available + +function HeapSize(hHeap: THandle; dwFlags: DWORD; lpMem: Pointer): DWORD; + stdcall; external 'kernel32.dll' name 'HeapSize' index 447; + +// HeapSummary; Index 528; Information not available + +function HeapUnlock(hHeap: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'HeapUnlock' index 449; + +// HeapUsage; Index 530; Information not available + +function HeapValidate(hHeap: THandle; dwFlags: DWORD; lpMem: Pointer): BOOL; + stdcall; external 'kernel32.dll' name 'HeapValidate' index 451; + +function HeapWalk(hHeap: THandle; var lpEntry: TProcessHeapEntry): BOOL; + stdcall; external 'kernel32.dll' name 'HeapWalk' index 452; + +function InitAtomTable(nSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'InitAtomTable' index 453; + +procedure InitializeCriticalSection(var lpCriticalSection: + TRTLCriticalSection); stdcall; + external 'kernel32.dll' name 'InitializeCriticalSection' index 454; + +function InitializeCriticalSectionAndSpinCount(var lpCriticalSection: + TRTLCriticalSection; dwSpinCount: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'InitializeCriticalSectionAndSpinCount' + index 455; + +// InitializeSListHead; Index 536; Information not available + +function InterlockedCompareExchange(var Destination: Pointer; + Exchange: Pointer; Comperand: Pointer): Pointer; stdcall; + external 'kernel32.dll' name 'InterlockedCompareExchange' index 456; + +function InterlockedDecrement(var Addend: Integer): Integer; stdcall; + external 'kernel32.dll' name 'InterlockedDecrement' index 457; + +function InterlockedExchange(var Target: Integer; Value: Integer): Integer; + stdcall; external 'kernel32.dll' name 'InterlockedExchange' index 458; + +function InterlockedExchangeAdd(Addend: PLongint; Value: Longint): Longint; + stdcall; + external 'kernel32.dll' name 'InterlockedExchangeAdd' index 459; + +// InterlockedFlushSList; Index 541; Information not available + +function InterlockedIncrement(var Addend: Integer): Integer; stdcall; + external 'kernel32.dll' name 'InterlockedIncrement' index 460; + +// InterlockedPopEntrySList; Index 543; Information not available + +// InterlockedPushEntrySList; Index 544; Information not available + +// InvalidateConsoleDIBits; Index 545; Information not available + +function IsBadCodePtr(lpfn: FARPROC): BOOL; stdcall; + external 'kernel32.dll' name 'IsBadCodePtr' index 462; + +function IsBadHugeReadPtr(lp: Pointer; ucb: UINT): BOOL; stdcall; + external 'kernel32.dll' name 'IsBadHugeReadPtr' index 463; + +function IsBadHugeWritePtr(lp: Pointer; ucb: UINT): BOOL; stdcall; + external 'kernel32.dll' name 'IsBadHugeWritePtr' index 464; + +function IsBadReadPtr(lp: Pointer; ucb: UINT): BOOL; stdcall; + external 'kernel32.dll' name 'IsBadReadPtr' index 465; + +function IsBadStringPtr(lpsz: PAnsiChar; ucchMax: UINT): BOOL; stdcall; + external 'kernel32.dll' name 'IsBadStringPtrA' index 466; + +function IsBadStringPtrW(lpsz: PWideChar; ucchMax: UINT): BOOL; stdcall; + external 'kernel32.dll' name 'IsBadStringPtrW' index 467; + +function IsBadWritePtr(lp: Pointer; ucb: UINT): BOOL; stdcall; + external 'kernel32.dll' name 'IsBadWritePtr' index 468; + +function IsDBCSLeadByte(TestChar: Byte): BOOL; stdcall; + external 'kernel32.dll' name 'IsDBCSLeadByte' index 469; + +function IsDBCSLeadByteEx(CodePage: UINT; TestChar: Byte): BOOL; stdcall; + external 'kernel32.dll' name 'IsDBCSLeadByteEx' index 470; + +// IsDebuggerPresent; Index 555; Information not available + +// IsProcessInJob; Index 556; Information not available + +function IsProcessorFeaturePresent(ProcessorFeature: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'IsProcessorFeaturePresent' index 472; + +// IsSystemResumeAutomatic; Index 558; Information not available + +function IsValidCodePage(CodePage: UINT): BOOL; stdcall; + external 'kernel32.dll' name 'IsValidCodePage' index 474; + +// IsValidLanguageGroup; Index 560; Information not available + +function IsValidLocale(Locale: LCID; dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'IsValidLocale' index 476; + +// IsValidUILanguage; Index 562; Information not available + +// IsWow64Process; Index 563; Information not available + +function LCMapString(Locale: LCID; dwMapFlags: DWORD; lpSrcStr: PAnsiChar; + cchSrc: Integer; lpDestStr: PAnsiChar; cchDest: Integer): Integer; + stdcall; external 'kernel32.dll' name 'LCMapStringA' index 477; + +function LCMapStringW(Locale: LCID; dwMapFlags: DWORD; lpSrcStr: PWideChar; + cchSrc: Integer; lpDestStr: PWideChar; cchDest: Integer): Integer; + stdcall; external 'kernel32.dll' name 'LCMapStringW' index 478; + +// LZClose; Index 566; Information not available + +// LZCloseFile; Index 567; Information not available + +// LZCopy; Index 568; Information not available + +// LZCreateFileW; Index 569; Information not available + +// LZDone; Index 570; Information not available + +// LZInit; Index 571; Information not available + +// LZOpenFileA; Index 572; Information not available + +// LZOpenFileW; Index 573; Information not available + +// LZRead; Index 574; Information not available + +// LZSeek; Index 575; Information not available + +// LZStart; Index 576; Information not available + +procedure LeaveCriticalSection(var lpCriticalSection: TRTLCriticalSection); + stdcall; external 'kernel32.dll' name 'LeaveCriticalSection' index 479; + +function LoadLibrary(lpLibFileName: PAnsiChar): HMODULE; stdcall; + external 'kernel32.dll' name 'LoadLibraryA' index 480; + +function LoadLibraryEx(lpLibFileName: PAnsiChar; hFile: THandle; + dwFlags: DWORD): HMODULE; stdcall; + external 'kernel32.dll' name 'LoadLibraryExA' index 481; + +function LoadLibraryExW(lpLibFileName: PWideChar; hFile: THandle; + dwFlags: DWORD): HMODULE; stdcall; + external 'kernel32.dll' name 'LoadLibraryExW' index 482; + +function LoadLibraryW(lpLibFileName: PWideChar): HMODULE; stdcall; + external 'kernel32.dll' name 'LoadLibraryW' index 483; + +function LoadModule(lpModuleName: LPCSTR; lpParameterBlock: Pointer): DWORD; + stdcall; external 'kernel32.dll' name 'LoadModule' index 484; + +function LoadResource(hModule: HINST; hResInfo: HRSRC): HGLOBAL; stdcall; + external 'kernel32.dll' name 'LoadResource' index 485; + +function LocalAlloc(uFlags, uBytes: UINT): HLOCAL; stdcall; + external 'kernel32.dll' name 'LocalAlloc' index 486; + +function LocalCompact(uMinFree: UINT): UINT; stdcall; + external 'kernel32.dll' name 'LocalCompact' index 487; + +function LocalFileTimeToFileTime(const lpLocalFileTime: TFileTime; + var lpFileTime: TFileTime): BOOL; stdcall; + external 'kernel32.dll' name 'LocalFileTimeToFileTime' index 488; + +function LocalFlags(hMem: HLOCAL): UINT; stdcall; + external 'kernel32.dll' name 'LocalFlags' index 489; + +function LocalFree(hMem: HLOCAL): HLOCAL; stdcall; + external 'kernel32.dll' name 'LocalFree' index 490; + +// LocalHandle; Index 589; Information not available + +function LocalLock(hMem: HLOCAL): Pointer; stdcall; + external 'kernel32.dll' name 'LocalLock' index 492; + +function LocalReAlloc(hMem: HLOCAL; uBytes, uFlags: UINT): HLOCAL; stdcall; + external 'kernel32.dll' name 'LocalReAlloc' index 493; + +function LocalShrink(hMem: HLOCAL; cbNewSize: UINT): UINT; stdcall; + external 'kernel32.dll' name 'LocalShrink' index 494; + +function LocalSize(hMem: HLOCAL): UINT; stdcall; + external 'kernel32.dll' name 'LocalSize' index 495; + +function LocalUnlock(hMem: HLOCAL): BOOL; stdcall; + external 'kernel32.dll' name 'LocalUnlock' index 496; + +function LockFile(hFile: THandle; dwFileOffsetLow, dwFileOffsetHigh: DWORD; + nNumberOfBytesToLockLow, nNumberOfBytesToLockHigh: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'LockFile' index 497; + +function LockFileEx(hFile: THandle; dwFlags, dwReserved: DWORD; + nNumberOfBytesToLockLow, nNumberOfBytesToLockHigh: DWORD; + const lpOverlapped: TOverlapped): BOOL; stdcall; + external 'kernel32.dll' name 'LockFileEx' index 498; + +function LockResource(hResData: HGLOBAL): Pointer; stdcall; + external 'kernel32.dll' name 'LockResource' index 499; + +// MapUserPhysicalPages; Index 598; Information not available + +// MapUserPhysicalPagesScatter; Index 599; Information not available + +function MapViewOfFile(hFileMappingObject: THandle; dwDesiredAccess: DWORD; + dwFileOffsetHigh, dwFileOffsetLow, + dwNumberOfBytesToMap: DWORD): Pointer; stdcall; + external 'kernel32.dll' name 'MapViewOfFile' index 502; + +function MapViewOfFileEx(hFileMappingObject: THandle; dwDesiredAccess, + dwFileOffsetHigh, dwFileOffsetLow, dwNumberOfBytesToMap: DWORD; + lpBaseAddress: Pointer): Pointer; stdcall; + external 'kernel32.dll' name 'MapViewOfFileEx' index 503; + +function Module32First(hSnapshot: THandle; var lpme: TModuleEntry32): BOOL; + stdcall; external 'kernel32.dll' name 'Module32First' index 504; + +// Module32FirstW; Index 603; Information not available + +function Module32Next(hSnapshot: THandle; var lpme: TModuleEntry32): BOOL; + stdcall; external 'kernel32.dll' name 'Module32Next' index 506; + +// Module32NextW; Index 605; Information not available + +function MoveFile(lpExistingFileName, lpNewFileName: PAnsiChar): BOOL; + stdcall; external 'kernel32.dll' name 'MoveFileA' index 508; + +function MoveFileEx(lpExistingFileName, lpNewFileName: PAnsiChar; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'MoveFileExA' index 509; + +function MoveFileExW(lpExistingFileName, lpNewFileName: PWideChar; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'MoveFileExW' index 510; + +function MoveFileW(lpExistingFileName, lpNewFileName: PWideChar): BOOL; + stdcall; external 'kernel32.dll' name 'MoveFileW' index 511; + +function MoveFileWithProgress(lpExistingFileName, lpNewFileName: PAnsiChar; + lpProgressRoutine: TFNProgressRoutine; lpData: Pointer; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'MoveFileWithProgressA' index 512; + +function MoveFileWithProgressW(lpExistingFileName, lpNewFileName: PWideChar; + lpProgressRoutine: TFNProgressRoutine; lpData: Pointer; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'MoveFileWithProgressW' index 513; + +function MulDiv(nNumber, nNumerator, nDenominator: Integer): Integer; stdcall; + external 'kernel32.dll' name 'MulDiv' index 514; + +function MultiByteToWideChar(CodePage: UINT; dwFlags: DWORD; + const lpMultiByteStr: LPCSTR; cchMultiByte: Integer; + lpWideCharStr: LPWSTR; cchWideChar: Integer): Integer; stdcall; + external 'kernel32.dll' name 'MultiByteToWideChar' index 515; + +// NlsConvertIntegerToString; Index 614; Information not available + +// NlsGetCacheUpdateCount; Index 615; Information not available + +// NlsResetProcessLocale; Index 616; Information not available + +// NumaVirtualQueryNode; Index 617; Information not available + +// OpenConsoleW; Index 618; Information not available + +// OpenDataFile; Index 619; Information not available + +function OpenEvent(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + lpName: PAnsiChar): THandle; stdcall; + external 'kernel32.dll' name 'OpenEventA' index 521; + +function OpenEventW(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + lpName: PWideChar): THandle; stdcall; + external 'kernel32.dll' name 'OpenEventW' index 522; + +function OpenFile(const lpFileName: LPCSTR; var lpReOpenBuff: TOFStruct; + uStyle: UINT): HFILE; stdcall; + external 'kernel32.dll' name 'OpenFile' index 523; + +function OpenFileMapping(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + lpName: PAnsiChar): THandle; stdcall; + external 'kernel32.dll' name 'OpenFileMappingA' index 524; + +function OpenFileMappingW(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + lpName: PWideChar): THandle; stdcall; + external 'kernel32.dll' name 'OpenFileMappingW' index 525; + +// OpenJobObjectA; Index 625; Information not available + +// OpenJobObjectW; Index 626; Information not available + +function OpenMutex(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + lpName: PAnsiChar): THandle; stdcall; + external 'kernel32.dll' name 'OpenMutexA' index 528; + +function OpenMutexW(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + lpName: PWideChar): THandle; stdcall; + external 'kernel32.dll' name 'OpenMutexW' index 529; + +function OpenProcess(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + dwProcessId: DWORD): THandle; stdcall; + external 'kernel32.dll' name 'OpenProcess' index 530; + +// OpenProfileUserMapping; Index 630; Information not available + +function OpenSemaphore(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + lpName: PAnsiChar): THandle; stdcall; + external 'kernel32.dll' name 'OpenSemaphoreA' index 532; + +function OpenSemaphoreW(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + lpName: PWideChar): THandle; stdcall; + external 'kernel32.dll' name 'OpenSemaphoreW' index 533; + +// OpenThread; Index 633; Information not available + +function OpenWaitableTimer(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + lpTimerName: PAnsiChar): THandle; stdcall; + external 'kernel32.dll' name 'OpenWaitableTimerA' index 535; + +function OpenWaitableTimerW(dwDesiredAccess: DWORD; bInheritHandle: BOOL; + lpTimerName: PWideChar): THandle; stdcall; + external 'kernel32.dll' name 'OpenWaitableTimerW' index 536; + +procedure OutputDebugString(lpOutputString: PAnsiChar); stdcall; + external 'kernel32.dll' name 'OutputDebugStringA' index 537; + +procedure OutputDebugStringW(lpOutputString: PWideChar); stdcall; + external 'kernel32.dll' name 'OutputDebugStringW' index 538; + +function PeekConsoleInput(hConsoleInput: THandle; var lpBuffer: TInputRecord; + nLength: DWORD; var lpNumberOfEventsRead: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'PeekConsoleInputA' index 539; + +function PeekConsoleInputW(hConsoleInput: THandle; var lpBuffer: TInputRecord; + nLength: DWORD; var lpNumberOfEventsRead: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'PeekConsoleInputW' index 540; + +function PeekNamedPipe(hNamedPipe: THandle; lpBuffer: Pointer; + nBufferSize: DWORD; lpBytesRead, lpTotalBytesAvail, + lpBytesLeftThisMessage: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'PeekNamedPipe' index 541; + +function PostQueuedCompletionStatus(CompletionPort: THandle; + dwNumberOfBytesTransferred: DWORD; dwCompletionKey: DWORD; + lpOverlapped: POverlapped): BOOL; stdcall; + external 'kernel32.dll' name 'PostQueuedCompletionStatus' index 542; + +function PrepareTape(hDevice: THandle; dwOperation: DWORD; + bImmediate: BOOL): DWORD; stdcall; + external 'kernel32.dll' name 'PrepareTape' index 543; + +// PrivCopyFileExW; Index 643; Information not available + +// PrivMoveFileIdentityW; Index 644; Information not available + +function Process32First(hSnapshot: THandle; var lppe: TProcessEntry32): BOOL; + stdcall; external 'kernel32.dll' name 'Process32First' index 546; + +// Process32FirstW; Index 646; Information not available + +function Process32Next(hSnapshot: THandle; var lppe: TProcessEntry32): BOOL; + stdcall; external 'kernel32.dll' name 'Process32Next' index 548; + +// Process32NextW; Index 648; Information not available + +// ProcessIdToSessionId; Index 649; Information not available + +function PulseEvent(hEvent: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'PulseEvent' index 551; + +function PurgeComm(hFile: THandle; dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'PurgeComm' index 552; + +// QueryActCtxW; Index 652; Information not available + +// QueryDepthSList; Index 653; Information not available + +function QueryDosDevice(lpDeviceName: PAnsiChar; lpTargetPath: PAnsiChar; + ucchMax: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'QueryDosDeviceA' index 553; + +function QueryDosDeviceW(lpDeviceName: PWideChar; lpTargetPath: PWideChar; + ucchMax: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'QueryDosDeviceW' index 554; + +// QueryInformationJobObject; Index 656; Information not available + +// QueryMemoryResourceNotification; Index 657; Information not available + +function QueryPerformanceCounter(var lpPerformanceCount: TLargeInteger): BOOL; + stdcall; + external 'kernel32.dll' name 'QueryPerformanceCounter' index 556; + +function QueryPerformanceFrequency(var lpFrequency: TLargeInteger): BOOL; + stdcall; + external 'kernel32.dll' name 'QueryPerformanceFrequency' index 557; + +// QueryWin31IniFilesMappedToRegistry; Index 660; Information not available + +function QueueUserAPC(pfnAPC: TFNAPCProc; hThread: THandle; + dwData: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'QueueUserAPC' index 559; + +// QueueUserWorkItem; Index 662; Information not available + +procedure RaiseException(dwExceptionCode, dwExceptionFlags, + nNumberOfArguments: DWORD; lpArguments: PDWORD); stdcall; + external 'kernel32.dll' name 'RaiseException' index 561; + +function ReadConsole(hConsoleInput: THandle; lpBuffer: Pointer; + nNumberOfCharsToRead: DWORD; var lpNumberOfCharsRead: DWORD; + lpReserved: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'ReadConsoleA' index 562; + +function ReadConsoleInput(hConsoleInput: THandle; var lpBuffer: TInputRecord; + nLength: DWORD; var lpNumberOfEventsRead: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'ReadConsoleInputA' index 563; + +// ReadConsoleInputExA; Index 666; Information not available + +// ReadConsoleInputExW; Index 667; Information not available + +function ReadConsoleInputW(hConsoleInput: THandle; var lpBuffer: TInputRecord; + nLength: DWORD; var lpNumberOfEventsRead: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'ReadConsoleInputW' index 566; + +function ReadConsoleOutput(hConsoleOutput: THandle; lpBuffer: Pointer; + dwBufferSize, dwBufferCoord: TCoord; + var lpReadRegion: TSmallRect): BOOL; stdcall; + external 'kernel32.dll' name 'ReadConsoleOutputA' index 567; + +function ReadConsoleOutputAttribute(hConsoleOutput: THandle; + lpAttribute: Pointer; nLength: DWORD; dwReadCoord: TCoord; + var lpNumberOfAttrsRead: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'ReadConsoleOutputAttribute' index 568; + +function ReadConsoleOutputCharacter(hConsoleOutput: THandle; + lpCharacter: PAnsiChar; nLength: DWORD; dwReadCoord: TCoord; + var lpNumberOfCharsRead: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'ReadConsoleOutputCharacterA' index 569; + +function ReadConsoleOutputCharacterW(hConsoleOutput: THandle; + lpCharacter: PAnsiChar; nLength: DWORD; dwReadCoord: TCoord; + var lpNumberOfCharsRead: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'ReadConsoleOutputCharacterW' index 570; + +function ReadConsoleOutputW(hConsoleOutput: THandle; lpBuffer: Pointer; + dwBufferSize, dwBufferCoord: TCoord; + var lpReadRegion: TSmallRect): BOOL; stdcall; + external 'kernel32.dll' name 'ReadConsoleOutputW' index 571; + +function ReadConsoleW(hConsoleInput: THandle; lpBuffer: Pointer; + nNumberOfCharsToRead: DWORD; var lpNumberOfCharsRead: DWORD; + lpReserved: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'ReadConsoleW' index 572; + +function ReadDirectoryChangesW(hDirectory: THandle; lpBuffer: Pointer; + nBufferLength: DWORD; bWatchSubtree: Bool; dwNotifyFilter: DWORD; + lpBytesReturned: LPDWORD; lpOverlapped: POverlapped; + lpCompletionRoutine: FARPROC): BOOL; stdcall; + external 'kernel32.dll' name 'ReadDirectoryChangesW' index 573; + +function ReadFile(hFile: THandle; var Buffer; nNumberOfBytesToRead: DWORD; + var lpNumberOfBytesRead: DWORD; lpOverlapped: POverlapped): BOOL; + stdcall; external 'kernel32.dll' name 'ReadFile' index 574; + +function ReadFileEx(hFile: THandle; lpBuffer: Pointer; + nNumberOfBytesToRead: DWORD; lpOverlapped: POverlapped; + lpCompletionRoutine: TPROverlappedCompletionRoutine): BOOL; stdcall; + external 'kernel32.dll' name 'ReadFileEx' index 575; + +// ReadFileScatter; Index 678; Information not available + +function ReadProcessMemory(hProcess: THandle; const lpBaseAddress: Pointer; + lpBuffer: Pointer; nSize: DWORD; var lpNumberOfBytesRead: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'ReadProcessMemory' index 577; + +// RegisterConsoleIME; Index 680; Information not available + +// RegisterConsoleOS2; Index 681; Information not available + +// RegisterConsoleVDM; Index 682; Information not available + +// RegisterWaitForInputIdle; Index 683; Information not available + +// RegisterWaitForSingleObject; Index 684; Information not available + +// RegisterWaitForSingleObjectEx; Index 685; Information not available + +// RegisterWowBaseHandlers; Index 686; Information not available + +// RegisterWowExec; Index 687; Information not available + +// ReleaseActCtx; Index 688; Information not available + +function ReleaseMutex(hMutex: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'ReleaseMutex' index 586; + +function ReleaseSemaphore(hSemaphore: THandle; lReleaseCount: Longint; + lpPreviousCount: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'ReleaseSemaphore' index 587; + +function RemoveDirectory(lpPathName: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'RemoveDirectoryA' index 588; + +function RemoveDirectoryW(lpPathName: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'RemoveDirectoryW' index 589; + +// RemoveLocalAlternateComputerNameA; Index 693; Information not available + +// RemoveLocalAlternateComputerNameW; Index 694; Information not available + +// RemoveVectoredExceptionHandler; Index 695; Information not available + +// ReplaceFile; Index 696; Information not available + +// ReplaceFileA; Index 697; Information not available + +// ReplaceFileW; Index 698; Information not available + +// RequestDeviceWakeup; Index 699; Information not available + +// RequestWakeupLatency; Index 700; Information not available + +function ResetEvent(hEvent: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'ResetEvent' index 595; + +// ResetWriteWatch; Index 702; Information not available + +// RestoreLastError; Index 703; Information not available + +function ResumeThread(hThread: THandle): DWORD; stdcall; + external 'kernel32.dll' name 'ResumeThread' index 597; + +// RtlCaptureContext; Index 705; Information not available + +// RtlCaptureStackBackTrace; Index 706; Information not available + +// RtlFillMemory; Index 707; Information not available + +// RtlMoveMemory; Index 708; Information not available + +// RtlUnwind; Index 709; Information not available + +// RtlZeroMemory; Index 710; Information not available + +function ScrollConsoleScreenBuffer(hConsoleOutput: THandle; + const lpScrollRectangle: TSmallRect; lpClipRectangle: PSmallRect; + dwDestinationOrigin: TCoord; var lpFill: TCharInfo): BOOL; stdcall; + external 'kernel32.dll' name 'ScrollConsoleScreenBufferA' index 602; + +function ScrollConsoleScreenBufferW(hConsoleOutput: THandle; + const lpScrollRectangle: TSmallRect; lpClipRectangle: PSmallRect; + dwDestinationOrigin: TCoord; var lpFill: TCharInfo): BOOL; stdcall; + external 'kernel32.dll' name 'ScrollConsoleScreenBufferW' index 603; + +function SearchPath(lpPath, lpFileName, lpExtension: PAnsiChar; + nBufferLength: DWORD; lpBuffer: PAnsiChar; + var lpFilePart: PAnsiChar): DWORD; stdcall; + external 'kernel32.dll' name 'SearchPathA' index 604; + +function SearchPathW(lpPath, lpFileName, lpExtension: PWideChar; + nBufferLength: DWORD; lpBuffer: PWideChar; + var lpFilePart: PWideChar): DWORD; stdcall; + external 'kernel32.dll' name 'SearchPathW' index 605; + +// SetCPGlobal; Index 715; Information not available + +// SetCalendarInfoA; Index 716; Information not available + +// SetCalendarInfoW; Index 717; Information not available + +// SetClientTimeZoneInformation; Index 718; Information not available + +// SetComPlusPackageInstallStatus; Index 719; Information not available + +function SetCommBreak(hFile: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'SetCommBreak' index 609; + +function SetCommConfig(hCommDev: THandle; const lpCC: TCommConfig; + dwSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetCommConfig' index 610; + +function SetCommMask(hFile: THandle; dwEvtMask: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetCommMask' index 611; + +function SetCommState(hFile: THandle; const lpDCB: TDCB): BOOL; stdcall; + external 'kernel32.dll' name 'SetCommState' index 612; + +function SetCommTimeouts(hFile: THandle; + const lpCommTimeouts: TCommTimeouts): BOOL; stdcall; + external 'kernel32.dll' name 'SetCommTimeouts' index 613; + +function SetComputerName(lpComputerName: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetComputerNameA' index 614; + +// SetComputerNameExA; Index 726; Information not available + +// SetComputerNameExW; Index 727; Information not available + +function SetComputerNameW(lpComputerName: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetComputerNameW' index 617; + +function SetConsoleActiveScreenBuffer(hConsoleOutput: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleActiveScreenBuffer' index 618; + +function SetConsoleCP(wCodePageID: UINT): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleCP' index 619; + +// SetConsoleCommandHistoryMode; Index 731; Information not available + +function SetConsoleCtrlHandler(HandlerRoutine: TFNHandlerRoutine; + Add: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleCtrlHandler' index 621; + +// SetConsoleCursor; Index 733; Information not available + +function SetConsoleCursorInfo(hConsoleOutput: THandle; + const lpConsoleCursorInfo: TConsoleCursorInfo): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleCursorInfo' index 623; + +// SetConsoleCursorMode; Index 735; Information not available + +function SetConsoleCursorPosition(hConsoleOutput: THandle; + dwCursorPosition: TCoord): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleCursorPosition' index 625; + +// SetConsoleDisplayMode; Index 737; Information not available + +// SetConsoleFont; Index 738; Information not available + +// SetConsoleHardwareState; Index 739; Information not available + +// SetConsoleIcon; Index 740; Information not available + +// SetConsoleInputExeNameA; Index 741; Information not available + +// SetConsoleInputExeNameW; Index 742; Information not available + +// SetConsoleKeyShortcuts; Index 743; Information not available + +// SetConsoleLocalEUDC; Index 744; Information not available + +// SetConsoleMaximumWindowSize; Index 745; Information not available + +// SetConsoleMenuClose; Index 746; Information not available + +function SetConsoleMode(hConsoleHandle: THandle; dwMode: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'SetConsoleMode' index 636; + +// SetConsoleNlsMode; Index 748; Information not available + +// SetConsoleNumberOfCommandsA; Index 749; Information not available + +// SetConsoleNumberOfCommandsW; Index 750; Information not available + +// SetConsoleOS2OemFormat; Index 751; Information not available + +function SetConsoleOutputCP(wCodePageID: UINT): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleOutputCP' index 641; + +// SetConsolePalette; Index 753; Information not available + +function SetConsoleScreenBufferSize(hConsoleOutput: THandle; + dwSize: TCoord): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleScreenBufferSize' index 643; + +function SetConsoleTextAttribute(hConsoleOutput: THandle; + wAttributes: Word): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleTextAttribute' index 644; + +function SetConsoleTitle(lpConsoleTitle: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleTitleA' index 645; + +function SetConsoleTitleW(lpConsoleTitle: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleTitleW' index 646; + +function SetConsoleWindowInfo(hConsoleOutput: THandle; bAbsolute: BOOL; + const lpConsoleWindow: TSmallRect): BOOL; stdcall; + external 'kernel32.dll' name 'SetConsoleWindowInfo' index 647; + +function SetCriticalSectionSpinCount(var lpCriticalSection: + TRTLCriticalSection; dwSpinCount: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'SetCriticalSectionSpinCount' index 648; + +function SetCurrentDirectory(lpPathName: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetCurrentDirectoryA' index 649; + +function SetCurrentDirectoryW(lpPathName: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetCurrentDirectoryW' index 650; + +function SetDefaultCommConfig(lpszName: PAnsiChar; lpCC: PCommConfig; + dwSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetDefaultCommConfigA' index 651; + +function SetDefaultCommConfigW(lpszName: PWideChar; lpCC: PCommConfig; + dwSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetDefaultCommConfigW' index 652; + +// SetDllDirectoryA; Index 764; Information not available + +// SetDllDirectoryW; Index 765; Information not available + +function SetEndOfFile(hFile: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'SetEndOfFile' index 653; + +function SetEnvironmentVariable(lpName, lpValue: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetEnvironmentVariableA' index 654; + +function SetEnvironmentVariableW(lpName, lpValue: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetEnvironmentVariableW' index 655; + +function SetErrorMode(uMode: UINT): UINT; stdcall; + external 'kernel32.dll' name 'SetErrorMode' index 656; + +function SetEvent(hEvent: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'SetEvent' index 657; + +procedure SetFileApisToANSI; stdcall; + external 'kernel32.dll' name 'SetFileApisToANSI' index 658; + +procedure SetFileApisToOEM; stdcall; + external 'kernel32.dll' name 'SetFileApisToOEM' index 659; + +function SetFileAttributes(lpFileName: PAnsiChar; + dwFileAttributes: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetFileAttributesA' index 660; + +function SetFileAttributesW(lpFileName: PWideChar; + dwFileAttributes: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetFileAttributesW' index 661; + +function SetFilePointer(hFile: THandle; lDistanceToMove: Longint; + lpDistanceToMoveHigh: Pointer; dwMoveMethod: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'SetFilePointer' index 662; + +// SetFilePointerEx; Index 776; Information not available + +// SetFileShortNameA; Index 777; Information not available + +// SetFileShortNameW; Index 778; Information not available + +function SetFileTime(hFile: THandle; lpCreationTime, lpLastAccessTime, + lpLastWriteTime: PFileTime): BOOL; stdcall; + external 'kernel32.dll' name 'SetFileTime' index 664; + +// SetFileValidData; Index 780; Information not available + +// SetFirmwareEnvironmentVariableA; Index 781; Information not available + +// SetFirmwareEnvironmentVariableW; Index 782; Information not available + +// SetHandleContext; Index 783; Information not available + +function SetHandleCount(uNumber: UINT): UINT; stdcall; + external 'kernel32.dll' name 'SetHandleCount' index 665; + +function SetHandleInformation(hObject: THandle; dwMask: DWORD; + dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetHandleInformation' index 666; + +// SetInformationJobObject; Index 786; Information not available + +// SetLastConsoleEventActive; Index 787; Information not available + +procedure SetLastError(dwErrCode: DWORD); stdcall; + external 'kernel32.dll' name 'SetLastError' index 669; + +// SetLocalPrimaryComputerNameA; Index 789; Information not available + +// SetLocalPrimaryComputerNameW; Index 790; Information not available + +function SetLocalTime(const lpSystemTime: TSystemTime): BOOL; stdcall; + external 'kernel32.dll' name 'SetLocalTime' index 670; + +function SetLocaleInfo(Locale: LCID; LCType: LCTYPE; + lpLCData: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetLocaleInfoA' index 671; + +function SetLocaleInfoW(Locale: LCID; LCType: LCTYPE; + lpLCData: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetLocaleInfoW' index 672; + +function SetMailslotInfo(hMailslot: THandle; lReadTimeout: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'SetMailslotInfo' index 673; + +// SetMessageWaitingIndicator; Index 795; Information not available + +function SetNamedPipeHandleState(hNamedPipe: THandle; var lpMode: DWORD; + lpMaxCollectionCount, lpCollectDataTimeout: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'SetNamedPipeHandleState' index 675; + +function SetPriorityClass(hProcess: THandle; dwPriorityClass: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'SetPriorityClass' index 676; + +function SetProcessAffinityMask(hProcess: THandle; + dwProcessAffinityMask: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetProcessAffinityMask' index 677; + +function SetProcessPriorityBoost(hThread: THandle; + DisablePriorityBoost: Bool): BOOL; stdcall; + external 'kernel32.dll' name 'SetProcessPriorityBoost' index 678; + +function SetProcessShutdownParameters(dwLevel, dwFlags: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetProcessShutdownParameters' index 679; + +function SetProcessWorkingSetSize(hProcess: THandle; dwMinimumWorkingSetSize, + dwMaximumWorkingSetSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetProcessWorkingSetSize' index 680; + +function SetStdHandle(nStdHandle: DWORD; hHandle: THandle): BOOL; stdcall; + external 'kernel32.dll' name 'SetStdHandle' index 681; + +function SetSystemPowerState(fSuspend, fForce: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'SetSystemPowerState' index 682; + +function SetSystemTime(const lpSystemTime: TSystemTime): BOOL; stdcall; + external 'kernel32.dll' name 'SetSystemTime' index 683; + +function SetSystemTimeAdjustment(dwTimeAdjustment: DWORD; + bTimeAdjustmentDisabled: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'SetSystemTimeAdjustment' index 684; + +function SetTapeParameters(hDevice: THandle; dwOperation: DWORD; + lpTapeInformation: Pointer): DWORD; stdcall; + external 'kernel32.dll' name 'SetTapeParameters' index 685; + +function SetTapePosition(hDevice: THandle; dwPositionMethod, + dwPartition: DWORD; dwOffsetLow, dwOffsetHigh: DWORD; + bImmediate: BOOL): DWORD; stdcall; + external 'kernel32.dll' name 'SetTapePosition' index 686; + +// SetTermsrvAppInstallMode; Index 808; Information not available + +function SetThreadAffinityMask(hThread: THandle; + dwThreadAffinityMask: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'SetThreadAffinityMask' index 688; + +function SetThreadContext(hThread: THandle; const lpContext: TContext): BOOL; + stdcall; external 'kernel32.dll' name 'SetThreadContext' index 689; + +// SetThreadExecutionState; Index 811; Information not available + +function SetThreadIdealProcessor(hThread: THandle; + dwIdealProcessor: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'SetThreadIdealProcessor' index 691; + +function SetThreadLocale(Locale: LCID): BOOL; stdcall; + external 'kernel32.dll' name 'SetThreadLocale' index 692; + +function SetThreadPriority(hThread: THandle; nPriority: Integer): BOOL; + stdcall; external 'kernel32.dll' name 'SetThreadPriority' index 693; + +function SetThreadPriorityBoost(hThread: THandle; + DisablePriorityBoost: Bool): BOOL; stdcall; + external 'kernel32.dll' name 'SetThreadPriorityBoost' index 694; + +// SetThreadUILanguage; Index 816; Information not available + +function SetTimeZoneInformation(const lpTimeZoneInformation: + TTimeZoneInformation): BOOL; stdcall; + external 'kernel32.dll' name 'SetTimeZoneInformation' index 695; + +// SetTimerQueueTimer; Index 818; Information not available + +function SetUnhandledExceptionFilter(lpTopLevelExceptionFilter: + TFNTopLevelExceptionFilter): TFNTopLevelExceptionFilter; stdcall; + external 'kernel32.dll' name 'SetUnhandledExceptionFilter' index 697; + +// SetUserGeoID; Index 820; Information not available + +// SetVDMCurrentDirectories; Index 821; Information not available + +function SetVolumeLabel(lpRootPathName: PAnsiChar; + lpVolumeName: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetVolumeLabelA' index 699; + +function SetVolumeLabelW(lpRootPathName: PWideChar; + lpVolumeName: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'SetVolumeLabelW' index 700; + +// SetVolumeMountPointA; Index 824; Information not available + +// SetVolumeMountPointW; Index 825; Information not available + +function SetWaitableTimer(hTimer: THandle; var lpDueTime: TLargeInteger; + lPeriod: Longint; pfnCompletionRoutine: TFNTimerAPCRoutine; + lpArgToCompletionRoutine: Pointer; fResume: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'SetWaitableTimer' index 703; + +function SetupComm(hFile: THandle; dwInQueue, dwOutQueue: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'SetupComm' index 704; + +// ShowConsoleCursor; Index 828; Information not available + +function SignalObjectAndWait(hObjectToSignal: THandle; + hObjectToWaitOn: THandle; dwMilliseconds: DWORD; + bAlertable: BOOL): BOOL; stdcall; + external 'kernel32.dll' name 'SignalObjectAndWait' index 706; + +function SizeofResource(hModule: HINST; hResInfo: HRSRC): DWORD; stdcall; + external 'kernel32.dll' name 'SizeofResource' index 707; + +procedure Sleep(dwMilliseconds: DWORD); stdcall; + external 'kernel32.dll' name 'Sleep' index 708; + +function SleepEx(dwMilliseconds: DWORD; bAlertable: BOOL): DWORD; stdcall; + external 'kernel32.dll' name 'SleepEx' index 709; + +function SuspendThread(hThread: THandle): DWORD; stdcall; + external 'kernel32.dll' name 'SuspendThread' index 710; + +function SwitchToFiber(lpFiber: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'SwitchToFiber' index 711; + +function SwitchToThread: BOOL; stdcall; + external 'kernel32.dll' name 'SwitchToThread' index 712; + +function SystemTimeToFileTime(const lpSystemTime: TSystemTime; + var lpFileTime: TFileTime): BOOL; stdcall; + external 'kernel32.dll' name 'SystemTimeToFileTime' index 713; + +function SystemTimeToTzSpecificLocalTime(lpTimeZoneInformation: + PTimeZoneInformation; var lpUniversalTime, + lpLocalTime: TSystemTime): BOOL; stdcall; + external 'kernel32.dll' name 'SystemTimeToTzSpecificLocalTime' index + 714; + +// TerminateJobObject; Index 838; Information not available + +function TerminateProcess(hProcess: THandle; uExitCode: UINT): BOOL; stdcall; + external 'kernel32.dll' name 'TerminateProcess' index 716; + +function TerminateThread(hThread: THandle; dwExitCode: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'TerminateThread' index 717; + +// TermsrvAppInstallMode; Index 841; Information not available + +function Thread32First(hSnapshot: THandle; var lpte: TThreadEntry32): BOOL; + stdcall; external 'kernel32.dll' name 'Thread32First' index 719; + +function Thread32Next(hSnapshot: THandle; var lpte: TThreadENtry32): BOOL; + stdcall; external 'kernel32.dll' name 'Thread32Next' index 720; + +function TlsAlloc: DWORD; stdcall; + external 'kernel32.dll' name 'TlsAlloc' index 721; + +function TlsFree(dwTlsIndex: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'TlsFree' index 722; + +function TlsGetValue(dwTlsIndex: DWORD): Pointer; stdcall; + external 'kernel32.dll' name 'TlsGetValue' index 723; + +function TlsSetValue(dwTlsIndex: DWORD; lpTlsValue: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'TlsSetValue' index 724; + +function Toolhelp32ReadProcessMemory(th32ProcessID: DWORD; + lpBaseAddress: Pointer; var lpBuffer; cbRead: DWORD; + var lpNumberOfBytesRead: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'Toolhelp32ReadProcessMemory' index 725; + +function TransactNamedPipe(hNamedPipe: THandle; lpInBuffer: Pointer; + nInBufferSize: DWORD; lpOutBuffer: Pointer; nOutBufferSize: DWORD; + var lpBytesRead: DWORD; lpOverlapped: POverlapped): BOOL; stdcall; + external 'kernel32.dll' name 'TransactNamedPipe' index 726; + +function TransmitCommChar(hFile: THandle; cChar: CHAR): BOOL; stdcall; + external 'kernel32.dll' name 'TransmitCommChar' index 727; + +// TrimVirtualBuffer; Index 851; Information not available + +function TryEnterCriticalSection(var lpCriticalSection: TRTLCriticalSection): + BOOL; stdcall; + external 'kernel32.dll' name 'TryEnterCriticalSection' index 729; + +// TzSpecificLocalTimeToSystemTime; Index 853; Information not available + +// UTRegister; Index 854; Information not available + +// UTUnRegister; Index 855; Information not available + +function UnhandledExceptionFilter(const ExceptionInfo: TExceptionPointers): + Longint; stdcall; + external 'kernel32.dll' name 'UnhandledExceptionFilter' index 732; + +function UnlockFile(hFile: THandle; dwFileOffsetLow, dwFileOffsetHigh: DWORD; + nNumberOfBytesToUnlockLow, nNumberOfBytesToUnlockHigh: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'UnlockFile' index 733; + +function UnlockFileEx(hFile: THandle; dwReserved, + nNumberOfBytesToUnlockLow: DWORD; nNumberOfBytesToUnlockHigh: DWORD; + const lpOverlapped: TOverlapped): BOOL; stdcall; + external 'kernel32.dll' name 'UnlockFileEx' index 734; + +function UnmapViewOfFile(lpBaseAddress: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'UnmapViewOfFile' index 735; + +// UnregisterConsoleIME; Index 860; Information not available + +// UnregisterWait; Index 861; Information not available + +// UnregisterWaitEx; Index 862; Information not available + +function UpdateResource(hUpdate: THandle; lpType, lpName: PAnsiChar; + wLanguage: Word; lpData: Pointer; cbData: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'UpdateResourceA' index 739; + +function UpdateResourceW(hUpdate: THandle; lpType, lpName: PWideChar; + wLanguage: Word; lpData: Pointer; cbData: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'UpdateResourceW' index 740; + +// VDMConsoleOperation; Index 865; Information not available + +// VDMOperationStarted; Index 866; Information not available + +// ValidateLCType; Index 867; Information not available + +// ValidateLocale; Index 868; Information not available + +function VerLanguageName(wLang: DWORD; szLang: PAnsiChar; + nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'VerLanguageNameA' index 745; + +function VerLanguageNameW(wLang: DWORD; szLang: PWideChar; + nSize: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'VerLanguageNameW' index 746; + +// VerSetConditionMask; Index 871; Information not available + +// VerifyConsoleIoHandle; Index 872; Information not available + +// VerifyVersionInfoA; Index 873; Information not available + +// VerifyVersionInfoW; Index 874; Information not available + +function VirtualAlloc(lpvAddress: Pointer; dwSize, flAllocationType, + flProtect: DWORD): Pointer; stdcall; + external 'kernel32.dll' name 'VirtualAlloc' index 751; + +function VirtualAllocEx(hProcess: THandle; lpAddress: Pointer; dwSize, + flAllocationType: DWORD; flProtect: DWORD): Pointer; stdcall; + external 'kernel32.dll' name 'VirtualAllocEx' index 752; + +// VirtualBufferExceptionHandler; Index 877; Information not available + +function VirtualFree(lpAddress: Pointer; dwSize, dwFreeType: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'VirtualFree' index 754; + +function VirtualFreeEx(hProcess: THandle; lpAddress: Pointer; dwSize, + dwFreeType: DWORD): Pointer; stdcall; + external 'kernel32.dll' name 'VirtualFreeEx' index 755; + +function VirtualLock(lpAddress: Pointer; dwSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'VirtualLock' index 756; + +function VirtualProtect(lpAddress: Pointer; dwSize, flNewProtect: DWORD; + lpflOldProtect: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'VirtualProtect' index 757; + +function VirtualProtectEx(hProcess: THandle; lpAddress: Pointer; dwSize, + flNewProtect: DWORD; lpflOldProtect: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'VirtualProtectEx' index 758; + +function VirtualQuery(lpAddress: Pointer; + var lpBuffer: TMemoryBasicInformation; dwLength: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'VirtualQuery' index 759; + +function VirtualQueryEx(hProcess: THandle; lpAddress: Pointer; + var lpBuffer: TMemoryBasicInformation; dwLength: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'VirtualQueryEx' index 760; + +function VirtualUnlock(lpAddress: Pointer; dwSize: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'VirtualUnlock' index 761; + +// WTSGetActiveConsoleSessionId; Index 886; Information not available + +function WaitCommEvent(hFile: THandle; var lpEvtMask: DWORD; + lpOverlapped: POverlapped): BOOL; stdcall; + external 'kernel32.dll' name 'WaitCommEvent' index 762; + +function WaitForDebugEvent(var lpDebugEvent: TDebugEvent; + dwMilliseconds: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'WaitForDebugEvent' index 763; + +function WaitForMultipleObjects(nCount: DWORD; lpHandles: PWOHandleArray; + bWaitAll: BOOL; dwMilliseconds: DWORD): DWORD; stdcall; + external 'kernel32.dll' name 'WaitForMultipleObjects' index 764; + +function WaitForMultipleObjectsEx(nCount: DWORD; lpHandles: PWOHandleArray; + bWaitAll: BOOL; dwMilliseconds: DWORD; bAlertable: BOOL): DWORD; + stdcall; + external 'kernel32.dll' name 'WaitForMultipleObjectsEx' index 765; + +function WaitForSingleObject(hHandle: THandle; dwMilliseconds: DWORD): DWORD; + stdcall; external 'kernel32.dll' name 'WaitForSingleObject' index 766; + +function WaitForSingleObjectEx(hHandle: THandle; dwMilliseconds: DWORD; + bAlertable: BOOL): DWORD; stdcall; + external 'kernel32.dll' name 'WaitForSingleObjectEx' index 767; + +function WaitNamedPipe(lpNamedPipeName: PAnsiChar; nTimeOut: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'WaitNamedPipeA' index 768; + +function WaitNamedPipeW(lpNamedPipeName: PWideChar; nTimeOut: DWORD): BOOL; + stdcall; external 'kernel32.dll' name 'WaitNamedPipeW' index 769; + +function WideCharToMultiByte(CodePage: UINT; dwFlags: DWORD; + lpWideCharStr: LPWSTR; cchWideChar: Integer; lpMultiByteStr: LPSTR; + cchMultiByte: Integer; lpDefaultChar: LPCSTR; + lpUsedDefaultChar: PBOOL): Integer; stdcall; + external 'kernel32.dll' name 'WideCharToMultiByte' index 770; + +function WinExec(lpCmdLine: LPCSTR; uCmdShow: UINT): UINT; stdcall; + external 'kernel32.dll' name 'WinExec' index 771; + +function WriteConsole(hConsoleOutput: THandle; const lpBuffer: Pointer; + nNumberOfCharsToWrite: DWORD; var lpNumberOfCharsWritten: DWORD; + lpReserved: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'WriteConsoleA' index 772; + +function WriteConsoleInput(hConsoleInput: THandle; + const lpBuffer: TInputRecord; nLength: DWORD; + var lpNumberOfEventsWritten: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'WriteConsoleInputA' index 773; + +// WriteConsoleInputVDMA; Index 899; Information not available + +// WriteConsoleInputVDMW; Index 900; Information not available + +function WriteConsoleInputW(hConsoleInput: THandle; + const lpBuffer: TInputRecord; nLength: DWORD; + var lpNumberOfEventsWritten: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'WriteConsoleInputW' index 776; + +function WriteConsoleOutput(hConsoleOutput: THandle; lpBuffer: Pointer; + dwBufferSize, dwBufferCoord: TCoord; + var lpWriteRegion: TSmallRect): BOOL; stdcall; + external 'kernel32.dll' name 'WriteConsoleOutputA' index 777; + +function WriteConsoleOutputAttribute(hConsoleOutput: THandle; + lpAttribute: Pointer; nLength: DWORD; dwWriteCoord: TCoord; + var lpNumberOfAttrsWritten: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'WriteConsoleOutputAttribute' index 778; + +function WriteConsoleOutputCharacter(hConsoleOutput: THandle; + lpCharacter: PAnsiChar; nLength: DWORD; dwWriteCoord: TCoord; + var lpNumberOfCharsWritten: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'WriteConsoleOutputCharacterA' index 779; + +function WriteConsoleOutputCharacterW(hConsoleOutput: THandle; + lpCharacter: PWideChar; nLength: DWORD; dwWriteCoord: TCoord; + var lpNumberOfCharsWritten: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'WriteConsoleOutputCharacterW' index 780; + +function WriteConsoleOutputW(hConsoleOutput: THandle; lpBuffer: Pointer; + dwBufferSize, dwBufferCoord: TCoord; + var lpWriteRegion: TSmallRect): BOOL; stdcall; + external 'kernel32.dll' name 'WriteConsoleOutputW' index 781; + +function WriteConsoleW(hConsoleOutput: THandle; const lpBuffer: Pointer; + nNumberOfCharsToWrite: DWORD; var lpNumberOfCharsWritten: DWORD; + lpReserved: Pointer): BOOL; stdcall; + external 'kernel32.dll' name 'WriteConsoleW' index 782; + +function WriteFile(hFile: THandle; const Buffer; nNumberOfBytesToWrite: DWORD; + var lpNumberOfBytesWritten: DWORD; lpOverlapped: POverlapped): BOOL; + stdcall; external 'kernel32.dll' name 'WriteFile' index 783; + +function WriteFileEx(hFile: THandle; lpBuffer: Pointer; + nNumberOfBytesToWrite: DWORD; const lpOverlapped: TOverlapped; + lpCompletionRoutine: FARPROC): BOOL; stdcall; + external 'kernel32.dll' name 'WriteFileEx' index 784; + +// WriteFileGather; Index 910; Information not available + +function WritePrivateProfileSection(lpAppName, lpString, + lpFileName: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'WritePrivateProfileSectionA' index 786; + +function WritePrivateProfileSectionW(lpAppName, lpString, + lpFileName: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'WritePrivateProfileSectionW' index 787; + +function WritePrivateProfileString(lpAppName, lpKeyName, lpString, + lpFileName: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'WritePrivateProfileStringA' index 788; + +function WritePrivateProfileStringW(lpAppName, lpKeyName, lpString, + lpFileName: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'WritePrivateProfileStringW' index 789; + +function WritePrivateProfileStruct(lpszSection, lpszKey: PAnsiChar; + lpStruct: Pointer; uSizeStruct: UINT; szFile: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'WritePrivateProfileStructA' index 790; + +function WritePrivateProfileStructW(lpszSection, lpszKey: PWideChar; + lpStruct: Pointer; uSizeStruct: UINT; szFile: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'WritePrivateProfileStructW' index 791; + +function WriteProcessMemory(hProcess: THandle; const lpBaseAddress: Pointer; + lpBuffer: Pointer; nSize: DWORD; + var lpNumberOfBytesWritten: DWORD): BOOL; stdcall; + external 'kernel32.dll' name 'WriteProcessMemory' index 792; + +function WriteProfileSection(lpAppName, lpString: PAnsiChar): BOOL; stdcall; + external 'kernel32.dll' name 'WriteProfileSectionA' index 793; + +function WriteProfileSectionW(lpAppName, lpString: PWideChar): BOOL; stdcall; + external 'kernel32.dll' name 'WriteProfileSectionW' index 794; + +function WriteProfileString(lpAppName, lpKeyName, lpString: PAnsiChar): BOOL; + stdcall; external 'kernel32.dll' name 'WriteProfileStringA' index 795; + +function WriteProfileStringW(lpAppName, lpKeyName, lpString: PWideChar): BOOL; + stdcall; external 'kernel32.dll' name 'WriteProfileStringW' index 796; + +function WriteTapemark(hDevice: THandle; dwTapemarkType, + dwTapemarkCount: DWORD; bImmediate: BOOL): DWORD; stdcall; + external 'kernel32.dll' name 'WriteTapemark' index 797; + +// ZombifyActCtx; Index 923; Information not available + +function _hread(hFile: HFILE; lpBuffer: Pointer; lBytes: Longint): Longint; + stdcall; external 'kernel32.dll' name '_hread' index 798; + +function _hwrite(hFile: HFILE; lpBuffer: LPCSTR; lBytes: Longint): Longint; + stdcall; external 'kernel32.dll' name '_hwrite' index 799; + +function _lclose(hFile: HFILE): HFILE; stdcall; + external 'kernel32.dll' name '_lclose' index 800; + +function _lcreat(const lpPathName: LPCSTR; iAttribute: Integer): HFILE; + stdcall; external 'kernel32.dll' name '_lcreat' index 801; + +function _llseek(hFile: HFILE; lOffset: Longint; iOrigin: Integer): Longint; + stdcall; external 'kernel32.dll' name '_llseek' index 802; + +function _lopen(const lpPathName: LPCSTR; iReadWrite: Integer): HFILE; + stdcall; external 'kernel32.dll' name '_lopen' index 803; + +function _lread(hFile: HFILE; lpBuffer: Pointer; uBytes: UINT): UINT; stdcall; + external 'kernel32.dll' name '_lread' index 804; + +function _lwrite(hFile: HFILE; const lpBuffer: LPCSTR; uBytes: UINT): UINT; + stdcall; external 'kernel32.dll' name '_lwrite' index 805; + +// lstrcat; Index 932; Information not available + +function lstrcat(lpString1, lpString2: PAnsiChar): PAnsiChar; stdcall; + external 'kernel32.dll' name 'lstrcatA' index 807; + +function lstrcatW(lpString1, lpString2: PWideChar): PWideChar; stdcall; + external 'kernel32.dll' name 'lstrcatW' index 808; + +// lstrcmp; Index 935; Information not available + +function lstrcmp(lpString1, lpString2: PAnsiChar): Integer; stdcall; + external 'kernel32.dll' name 'lstrcmpA' index 810; + +function lstrcmpW(lpString1, lpString2: PWideChar): Integer; stdcall; + external 'kernel32.dll' name 'lstrcmpW' index 811; + +// lstrcmpi; Index 938; Information not available + +function lstrcmpi(lpString1, lpString2: PAnsiChar): Integer; stdcall; + external 'kernel32.dll' name 'lstrcmpiA' index 813; + +function lstrcmpiW(lpString1, lpString2: PWideChar): Integer; stdcall; + external 'kernel32.dll' name 'lstrcmpiW' index 814; + +// lstrcpy; Index 941; Information not available + +function lstrcpy(lpString1, lpString2: PAnsiChar): PAnsiChar; stdcall; + external 'kernel32.dll' name 'lstrcpyA' index 816; + +function lstrcpyW(lpString1, lpString2: PWideChar): PWideChar; stdcall; + external 'kernel32.dll' name 'lstrcpyW' index 817; + +// lstrcpyn; Index 944; Information not available + +function lstrcpyn(lpString1, lpString2: PAnsiChar; + iMaxLength: Integer): PAnsiChar; stdcall; + external 'kernel32.dll' name 'lstrcpynA' index 819; + +function lstrcpynW(lpString1, lpString2: PWideChar; + iMaxLength: Integer): PWideChar; stdcall; + external 'kernel32.dll' name 'lstrcpynW' index 820; + +// lstrlen; Index 947; Information not available + +function lstrlen(lpString: PAnsiChar): Integer; stdcall; + external 'kernel32.dll' name 'lstrlenA' index 822; + +function lstrlenW(lpString: PWideChar): Integer; stdcall; + external 'kernel32.dll' name 'lstrlenW' index 823; + +