You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

KOL_unicode.inc 77KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160
  1. {*******************************************************************************
  2. KOL_unicode.inc
  3. Some redeclarations from Windows.pas for case, when UNICODE_CTRLS symbol is on.
  4. *******************************************************************************}
  5. {$IFDEF interface_part} ////////////////////////////////////////////////////////
  6. {$IFDEF FPC}{$I fpc_unicode_add.inc}{$ENDIF}
  7. MakeIntAtom = MakeIntAtomW;
  8. PRecoveryAgentInformation = PRecoveryAgentInformationW;
  9. TRecoveryAgentInformation = TRecoveryAgentInformationW;
  10. RECOVERY_AGENT_INFORMATION = RECOVERY_AGENT_INFORMATIONW;
  11. PWin32FindData = PWin32FindDataW;
  12. TWin32FindData = TWin32FindDataW;
  13. PHWProfileInfo = PHWProfileInfoW;
  14. THWProfileInfo = THWProfileInfoW;
  15. POSVersionInfo = POSVersionInfoW;
  16. TOSVersionInfo = TOSVersionInfoW;
  17. PLogColorSpace = PLogColorSpaceW;
  18. TLogColorSpace = TLogColorSpaceW;
  19. PTextMetric = PTextMetricW;
  20. tagTEXTMETRIC = tagTEXTMETRICW;
  21. TTextMetric = TTextMetricW;
  22. TEXTMETRIC = TEXTMETRICW;
  23. PNewTextMetric = PNewTextMetricW;
  24. TNewTextMetric = TNewTextMetricW;
  25. NEWTEXTMETRIC = NEWTEXTMETRICW;
  26. PNewTextMetricEx = PNewTextMetricExW;
  27. PLogFont = PLogFontW;
  28. TLogFont = TLogFontW;
  29. PEnumLogFont = PEnumLogFontW;
  30. TEnumLogFont = TEnumLogFontW;
  31. ENUMLOGFONT = ENUMLOGFONTW;
  32. PEnumLogFontEx = PEnumLogFontExW;
  33. TEnumLogFontEx = TEnumLogFontExW;
  34. ENUMLOGFONTEX = ENUMLOGFONTEXW;
  35. PExtLogFont = PExtLogFontW;
  36. tagEXTLOGFONT = tagEXTLOGFONTW;
  37. TExtLogFont = TExtLogFontW;
  38. EXTLOGFONT = EXTLOGFONTW;
  39. PDeviceMode = PDeviceModeW;
  40. TDeviceMode = TDeviceModeW;
  41. DEVMODE = DEVMODEW;
  42. PDisplayDevice = PDisplayDeviceW;
  43. TDisplayDevice = TDisplayDeviceW;
  44. POutlineTextmetric = POutlineTextmetricW;
  45. TOutlineTextmetric = TOutlineTextmetricW;
  46. OUTLINETEXTMETRIC = OUTLINETEXTMETRICW;
  47. PPolyText = PPolyTextW;
  48. tagPOLYTEXT = tagPOLYTEXTW;
  49. TPolyText = TPolyTextW;
  50. POLYTEXT = POLYTEXTW;
  51. PGCPResults = PGCPResultsW;
  52. TGCPResults = TGCPResultsW;
  53. GCP_RESULTS = GCP_RESULTSW;
  54. TFNOldFontEnumProc = TFNOldFontEnumProcW;
  55. TFNFontEnumProc = TFNFontEnumProcW;
  56. PAxisInfo = PAxisInfoW;
  57. PAxesList = PAxesListW;
  58. PEnumLogFontExDV = PEnumLogFontExDVW;
  59. PEnumTextMetric = PEnumTextMetricW;
  60. PDocInfo = PDocInfoW;
  61. TDocInfo = TDocInfoW;
  62. DOCINFO = DOCINFOW;
  63. MakeIntResource = MakeIntResourceW;
  64. PCreateStruct = PCreateStructW;
  65. TCreateStruct = TCreateStructW;
  66. CREATESTRUCT = CREATESTRUCTW;
  67. PWndClassEx = PWndClassExW;
  68. TWndClassEx = TWndClassExW;
  69. WNDCLASSEX = WNDCLASSEXW;
  70. PWndClass = PWndClassW;
  71. TWndClass = TWndClassW;
  72. WNDCLASS = WNDCLASSW;
  73. // PMenuItemInfo = PMenuItemInfoW;
  74. // TMenuItemInfo = TMenuItemInfoW;
  75. // MENUITEMINFO = MENUITEMINFOW;
  76. PMsgBoxParams = PMsgBoxParamsW;
  77. TMsgBoxParams = TMsgBoxParamsW;
  78. MSGBOXPARAMS = MSGBOXPARAMSW;
  79. PMDICreateStruct = PMDICreateStructW;
  80. TMDICreateStruct = TMDICreateStructW;
  81. PMultiKeyHelp = PMultiKeyHelpW;
  82. TMultiKeyHelp = TMultiKeyHelpW;
  83. MULTIKEYHELP = MULTIKEYHELPW;
  84. PHelpWinInfo = PHelpWinInfoW;
  85. THelpWinInfo = THelpWinInfoW;
  86. HELPWININFO = HELPWININFOW;
  87. PNonClientMetrics = PNonClientMetricsW;
  88. TNonClientMetrics = TNonClientMetricsW;
  89. NONCLIENTMETRICS = NONCLIENTMETRICSW;
  90. PIconMetrics = PIconMetricsW;
  91. TIconMetrics = TIconMetricsW;
  92. ICONMETRICS = ICONMETRICSW;
  93. PSerialKeys = PSerialKeysW;
  94. TSerialKeys = TSerialKeysW;
  95. SERIALKEYS = SERIALKEYSW;
  96. PHighContrast = PHighContrastW;
  97. THighContrast = THighContrastW;
  98. HIGHCONTRAST = HIGHCONTRASTW;
  99. PSoundsEntry = PSoundsEntryW;
  100. TSoundsEntry = TSoundsEntryW;
  101. SOUNDSENTRY = SOUNDSENTRYW;
  102. PNumberFmt = PNumberFmtW;
  103. TNumberFmt = TNumberFmtW;
  104. NUMBERFMT = NUMBERFMTW;
  105. PCurrencyFmt = PCurrencyFmtW;
  106. _currencyfmt = _currencyfmtW;
  107. TCurrencyFmt = TCurrencyFmtW;
  108. CURRENCYFMT = CURRENCYFMTW;
  109. PPValue = PPValueW;
  110. pvalue = pvalueW;
  111. TPValue = TPValueW;
  112. PValueEnt = PValueEntW;
  113. TValueEnt = TValueEntW;
  114. VALENT = VALENTW;
  115. PNetResource = PNetResourceW;
  116. TNetResource = TNetResourceW;
  117. NETRESOURCE = NETRESOURCEW;
  118. PDiscDlgStruct = PDiscDlgStructW;
  119. _DISCDLGSTRUCT = _DISCDLGSTRUCTW;
  120. TDiscDlgStruct = TDiscDlgStructW;
  121. DISCDLGSTRUCT = DISCDLGSTRUCTW;
  122. PUniversalNameInfo = PUniversalNameInfoW;
  123. TUniversalNameInfo = TUniversalNameInfoW;
  124. UNIVERSAL_NAME_INFO = UNIVERSAL_NAME_INFOW;
  125. PRemoteNameInfo = PRemoteNameInfoW;
  126. TRemoteNameInfo = TRemoteNameInfoW;
  127. REMOTE_NAME_INFO = REMOTE_NAME_INFOW;
  128. function AbortSystemShutdown(lpMachineName: PKOLChar): BOOL; stdcall;
  129. function AccessCheckAndAuditAlarm(SubsystemName: PKOLChar;
  130. HandleId: Pointer; ObjectTypeName, ObjectName: PKOLChar;
  131. SecurityDescriptor: PSecurityDescriptor; DesiredAccess: DWORD;
  132. const GenericMapping: TGenericMapping; ObjectCreation: BOOL;
  133. var GrantedAccess: DWORD; var AccessStatus, pfGenerateOnClose: BOOL): BOOL; stdcall;
  134. function AccessCheckByTypeAndAuditAlarm(SubsystemName: PKOLChar;
  135. HandleId: Pointer; ObjectTypeName, ObjectName: PKOLChar;
  136. SecurityDescriptor: PSecurityDescriptor; PrincipalSelfSid: PSID; DesiredAccess: DWORD;
  137. AuditType: AUDIT_EVENT_TYPE; Flags: DWORD; ObjectTypeList: PObjectTypeList;
  138. ObjectTypeListLength: DWORD; const GenericMapping: TGenericMapping; ObjectCreation: BOOL;
  139. var GrantedAccess: DWORD; var AccessStatus, pfGenerateOnClose: BOOL): BOOL; stdcall;
  140. function AccessCheckByTypeResultListAndAuditAlarm(SubsystemName: PKOLChar;
  141. HandleId: Pointer; ObjectTypeName, ObjectName: PKOLChar;
  142. SecurityDescriptor: PSecurityDescriptor; PrincipalSelfSid: PSID; DesiredAccess: DWORD;
  143. AuditType: AUDIT_EVENT_TYPE; Flags: DWORD; ObjectTypeList: PObjectTypeList;
  144. ObjectTypeListLength: DWORD; const GenericMapping: TGenericMapping; ObjectCreation: BOOL;
  145. var GrantedAccess: DWORD; var AccessStatusList: DWORD; var pfGenerateOnClose: BOOL): BOOL; stdcall;
  146. function BackupEventLog(hEventLog: THandle; lpBackupFileName: PKOLChar): BOOL; stdcall;
  147. function ClearEventLog(hEventLog: THandle; lpBackupFileName: PKOLChar): BOOL; stdcall;
  148. function CreateProcessAsUser(hToken: THandle; lpApplicationName: PKOLChar;
  149. lpCommandLine: PKOLChar; lpProcessAttributes: PSecurityAttributes;
  150. lpThreadAttributes: PSecurityAttributes; bInheritHandles: BOOL;
  151. dwCreationFlags: DWORD; lpEnvironment: Pointer; lpCurrentDirectory: PKOLChar;
  152. const lpStartupInfo: TStartupInfo; var lpProcessInformation: TProcessInformation): BOOL; stdcall;
  153. function GetCurrentHwProfile(var lpHwProfileInfo: THWProfileInfo): BOOL; stdcall;
  154. function GetFileSecurity(lpFileName: PKOLChar; RequestedInformation: SECURITY_INFORMATION;
  155. pSecurityDescriptor: PSecurityDescriptor; nLength: DWORD; var lpnLengthNeeded: DWORD): BOOL; stdcall;
  156. function GetUserName(lpBuffer: PKOLChar; var nSize: DWORD): BOOL; stdcall;
  157. function InitiateSystemShutdown(lpMachineName, lpMessage: PKOLChar;
  158. dwTimeout: DWORD; bForceAppsClosed, bRebootAfterShutdown: BOOL): BOOL; stdcall;
  159. function LogonUser(lpszUsername, lpszDomain, lpszPassword: PKOLChar;
  160. dwLogonType, dwLogonProvider: DWORD; var phToken: THandle): BOOL; stdcall;
  161. function LookupAccountName(lpSystemName, lpAccountName: PKOLChar;
  162. Sid: PSID; var cbSid: DWORD; ReferencedDomainName: PKOLChar;
  163. var cbReferencedDomainName: DWORD; var peUse: SID_NAME_USE): BOOL; stdcall;
  164. function LookupAccountSid(lpSystemName: PKOLChar; Sid: PSID;
  165. Name: PKOLChar; var cbName: DWORD; ReferencedDomainName: PKOLChar;
  166. var cbReferencedDomainName: DWORD; var peUse: SID_NAME_USE): BOOL; stdcall;
  167. function LookupPrivilegeDisplayName(lpSystemName, lpName: PKOLChar;
  168. lpDisplayName: PKOLChar; var cbDisplayName, lpLanguageId: DWORD): BOOL; stdcall;
  169. function LookupPrivilegeName(lpSystemName: PKOLChar;
  170. var lpLuid: TLargeInteger; lpName: PKOLChar; var cbName: DWORD): BOOL; stdcall;
  171. function LookupPrivilegeValue(lpSystemName, lpName: PKOLChar;
  172. var lpLuid: TLargeInteger): BOOL; stdcall;
  173. function ObjectCloseAuditAlarm(SubsystemName: PKOLChar;
  174. HandleId: Pointer; GenerateOnClose: BOOL): BOOL; stdcall;
  175. function ObjectDeleteAuditAlarm(SubsystemName: PKOLChar;
  176. HandleId: Pointer; GenerateOnClose: BOOL): BOOL; stdcall;
  177. function ObjectOpenAuditAlarm(SubsystemName: PKOLChar; HandleId: Pointer;
  178. ObjectTypeName: PKOLChar; ObjectName: PKOLChar; pSecurityDescriptor: PSecurityDescriptor;
  179. ClientToken: THandle; DesiredAccess, GrantedAccess: DWORD;
  180. var Privileges: TPrivilegeSet; ObjectCreation, AccessGranted: BOOL;
  181. var GenerateOnClose: BOOL): BOOL; stdcall;
  182. function ObjectPrivilegeAuditAlarm(SubsystemName: PKOLChar;
  183. HandleId: Pointer; ClientToken: THandle; DesiredAccess: DWORD;
  184. var Privileges: TPrivilegeSet; AccessGranted: BOOL): BOOL; stdcall;
  185. function OpenBackupEventLog(lpUNCServerName, lpFileName: PKOLChar): THandle; stdcall;
  186. function OpenEventLog(lpUNCServerName, lpSourceName: PKOLChar): THandle; stdcall;
  187. function PrivilegedServiceAuditAlarm(SubsystemName, ServiceName: PKOLChar;
  188. ClientToken: THandle; var Privileges: TPrivilegeSet; AccessGranted: BOOL): BOOL; stdcall;
  189. function ReadEventLog(hEventLog: THandle; dwReadFlags, dwRecordOffset: DWORD;
  190. lpBuffer: Pointer; nNumberOfBytesToRead: DWORD;
  191. var pnBytesRead, pnMinNumberOfBytesNeeded: DWORD): BOOL; stdcall;
  192. function RegConnectRegistry(lpMachineName: PKOLChar; hKey: HKEY;
  193. var phkResult: HKEY): Longint; stdcall;
  194. function RegCreateKey(hKey: HKEY; lpSubKey: PKOLChar;
  195. var phkResult: HKEY): Longint; stdcall;
  196. function RegCreateKeyEx(hKey: HKEY; lpSubKey: PKOLChar;
  197. Reserved: DWORD; lpClass: PKOLChar; dwOptions: DWORD; samDesired: REGSAM;
  198. lpSecurityAttributes: PSecurityAttributes; var phkResult: HKEY;
  199. lpdwDisposition: PDWORD): Longint; stdcall;
  200. function RegDeleteKey(hKey: HKEY; lpSubKey: PKOLChar): Longint; stdcall;
  201. function RegDeleteValue(hKey: HKEY; lpValueName: PKOLChar): Longint; stdcall;
  202. function RegEnumKeyEx(hKey: HKEY; dwIndex: DWORD; lpName: PKOLChar;
  203. var lpcbName: DWORD; lpReserved: Pointer; lpClass: PKOLChar;
  204. lpcbClass: PDWORD; lpftLastWriteTime: PFileTime): Longint; stdcall;
  205. function RegEnumKey(hKey: HKEY; dwIndex: DWORD; lpName: PKOLChar; cbName: DWORD): Longint; stdcall;
  206. function RegEnumValue(hKey: HKEY; dwIndex: DWORD; lpValueName: PKOLChar;
  207. var lpcbValueName: DWORD; lpReserved: Pointer; lpType: PDWORD;
  208. lpData: PByte; lpcbData: PDWORD): Longint; stdcall;
  209. function RegLoadKey(hKey: HKEY; lpSubKey, lpFile: PKOLChar): Longint; stdcall;
  210. function RegOpenKey(hKey: HKEY; lpSubKey: PKOLChar; var phkResult: HKEY): Longint; stdcall;
  211. function RegOpenKeyEx(hKey: HKEY; lpSubKey: PKOLChar;
  212. ulOptions: DWORD; samDesired: REGSAM; var phkResult: HKEY): Longint; stdcall;
  213. function RegQueryInfoKey(hKey: HKEY; lpClass: PKOLChar;
  214. lpcbClass: PDWORD; lpReserved: Pointer;
  215. lpcSubKeys, lpcbMaxSubKeyLen, lpcbMaxClassLen, lpcValues,
  216. lpcbMaxValueNameLen, lpcbMaxValueLen, lpcbSecurityDescriptor: PDWORD;
  217. lpftLastWriteTime: PFileTime): Longint; stdcall;
  218. function RegQueryMultipleValues(hKey: HKEY; var ValList;
  219. NumVals: DWORD; lpValueBuf: PKOLChar; var ldwTotsize: DWORD): Longint; stdcall;
  220. function RegQueryValue(hKey: HKEY; lpSubKey: PKOLChar;
  221. lpValue: PKOLChar; var lpcbValue: Longint): Longint; stdcall;
  222. function RegQueryValueEx(hKey: HKEY; lpValueName: PKOLChar;
  223. lpReserved: Pointer; lpType: PDWORD; lpData: PByte; lpcbData: PDWORD): Longint; stdcall;
  224. function RegReplaceKey(hKey: HKEY; lpSubKey: PKOLChar;
  225. lpNewFile: PKOLChar; lpOldFile: PKOLChar): Longint; stdcall;
  226. function RegRestoreKey(hKey: HKEY; lpFile: PKOLChar; dwFlags: DWORD): Longint; stdcall;
  227. function RegSaveKey(hKey: HKEY; lpFile: PKOLChar;
  228. lpSecurityAttributes: PSecurityAttributes): Longint; stdcall;
  229. function RegSetValue(hKey: HKEY; lpSubKey: PKOLChar;
  230. dwType: DWORD; lpData: PKOLChar; cbData: DWORD): Longint; stdcall;
  231. function RegSetValueEx(hKey: HKEY; lpValueName: PKOLChar;
  232. Reserved: DWORD; dwType: DWORD; lpData: Pointer; cbData: DWORD): Longint; stdcall;
  233. function RegUnLoadKey(hKey: HKEY; lpSubKey: PKOLChar): Longint; stdcall;
  234. function RegisterEventSource(lpUNCServerName, lpSourceName: PKOLChar): THandle; stdcall;
  235. function ReportEvent(hEventLog: THandle; wType, wCategory: Word;
  236. dwEventID: DWORD; lpUserSid: Pointer; wNumStrings: Word;
  237. dwDataSize: DWORD; lpStrings, lpRawData: Pointer): BOOL; stdcall;
  238. function SetFileSecurity(lpFileName: PKOLChar; SecurityInformation: SECURITY_INFORMATION;
  239. pSecurityDescriptor: PSecurityDescriptor): BOOL; stdcall;
  240. function AddAtom(lpString: PKOLChar): ATOM; stdcall;
  241. function BeginUpdateResource(pFileName: PKOLChar; bDeleteExistingResources: BOOL): THandle; stdcall;
  242. function BuildCommDCB(lpDef: PKOLChar; var lpDCB: TDCB): BOOL; stdcall;
  243. function BuildCommDCBAndTimeouts(lpDef: PKOLChar; var lpDCB: TDCB;
  244. var lpCommTimeouts: TCommTimeouts): BOOL; stdcall;
  245. function CallNamedPipe(lpNamedPipeName: PKOLChar; lpInBuffer: Pointer;
  246. nInBufferSize: DWORD; lpOutBuffer: Pointer; nOutBufferSize: DWORD;
  247. var lpBytesRead: DWORD; nTimeOut: DWORD): BOOL; stdcall;
  248. function CommConfigDialog(lpszName: PKOLChar; hWnd: HWND; var lpCC: TCommConfig): BOOL; stdcall;
  249. function CompareString(Locale: LCID; dwCmpFlags: DWORD; lpString1: PKOLChar;
  250. cchCount1: Integer; lpString2: PKOLChar; cchCount2: Integer): Integer; stdcall;
  251. function CopyFile(lpExistingFileName, lpNewFileName: PKOLChar; bFailIfExists: BOOL): BOOL; stdcall;
  252. function CopyFileEx(lpExistingFileName, lpNewFileName: PKOLChar;
  253. lpProgressRoutine: TFNProgressRoutine; lpData: Pointer; pbCancel: PBool;
  254. dwCopyFlags: DWORD): BOOL; stdcall;
  255. function CreateDirectory(lpPathName: PKOLChar;
  256. lpSecurityAttributes: PSecurityAttributes): BOOL; stdcall;
  257. function CreateDirectoryEx(lpTemplateDirectory, lpNewDirectory: PKOLChar;
  258. lpSecurityAttributes: PSecurityAttributes): BOOL; stdcall;
  259. function CreateEvent(lpEventAttributes: PSecurityAttributes;
  260. bManualReset, bInitialState: BOOL; lpName: PKOLChar): THandle; stdcall;
  261. function CreateFile(lpFileName: PKOLChar; dwDesiredAccess, dwShareMode: DWORD;
  262. lpSecurityAttributes: PSecurityAttributes; dwCreationDisposition, dwFlagsAndAttributes: DWORD;
  263. hTemplateFile: THandle): THandle; stdcall;
  264. function CreateFileMapping(hFile: THandle; lpFileMappingAttributes: PSecurityAttributes;
  265. flProtect, dwMaximumSizeHigh, dwMaximumSizeLow: DWORD; lpName: PKOLChar): THandle; stdcall;
  266. function CreateHardLink(lpFileName, lpExistingFileName: PKOLChar;
  267. lpSecurityAttributes: PSecurityAttributes): BOOL; stdcall;
  268. function CreateMailslot(lpName: PKOLChar; nMaxMessageSize: DWORD;
  269. lReadTimeout: DWORD; lpSecurityAttributes: PSecurityAttributes): THandle; stdcall;
  270. function CreateNamedPipe(lpName: PKOLChar;
  271. dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut: DWORD;
  272. lpSecurityAttributes: PSecurityAttributes): THandle; stdcall;
  273. function CreateProcess(lpApplicationName: PKOLChar; lpCommandLine: PKOLChar;
  274. lpProcessAttributes, lpThreadAttributes: PSecurityAttributes;
  275. bInheritHandles: BOOL; dwCreationFlags: DWORD; lpEnvironment: Pointer;
  276. lpCurrentDirectory: PKOLChar; const lpStartupInfo: TStartupInfo;
  277. var lpProcessInformation: TProcessInformation): BOOL; stdcall;
  278. function CreateSemaphore(lpSemaphoreAttributes: PSecurityAttributes;
  279. lInitialCount, lMaximumCount: Longint; lpName: PKOLChar): THandle; stdcall;
  280. function CreateWaitableTimer(lpTimerAttributes: PSecurityAttributes; bManualReset: BOOL; lpTimerName: PKOLChar): THandle; stdcall;
  281. function DefineDosDevice(dwFlags: DWORD; lpDeviceName, lpTargetPath: PKOLChar): BOOL; stdcall;
  282. function DeleteFile(lpFileName: PKOLChar): BOOL; stdcall;
  283. function EndUpdateResource(hUpdate: THandle; fDiscard: BOOL): BOOL; stdcall;
  284. function EnumCalendarInfo(lpCalInfoEnumProc: TFNCalInfoEnumProc; Locale: LCID;
  285. Calendar: CALID; CalType: CALTYPE): BOOL; stdcall;
  286. function EnumDateFormats(lpDateFmtEnumProc: TFNDateFmtEnumProc;
  287. Locale: LCID; dwFlags: DWORD): BOOL; stdcall;
  288. function EnumResourceLanguages(hModule: HMODULE; lpType, lpName: PKOLChar;
  289. lpEnumFunc: ENUMRESLANGPROC; lParam: Longint): BOOL; stdcall;
  290. function EnumResourceNames(hModule: HMODULE; lpType: PKOLChar;
  291. lpEnumFunc: ENUMRESNAMEPROC; lParam: Longint): BOOL; stdcall;
  292. function EnumResourceTypes(hModule: HMODULE; lpEnumFunc: ENUMRESTYPEPROC;
  293. lParam: Longint): BOOL; stdcall;
  294. function EnumSystemCodePages(lpCodePageEnumProc: TFNCodepageEnumProc; dwFlags: DWORD): BOOL; stdcall;
  295. function EnumSystemLocales(lpLocaleEnumProc: TFNLocaleEnumProc; dwFlags: DWORD): BOOL; stdcall;
  296. function EnumTimeFormats(lpTimeFmtEnumProc: TFNTimeFmtEnumProc;
  297. Locale: LCID; dwFlags: DWORD): BOOL; stdcall;
  298. function ExpandEnvironmentStrings(lpSrc: PKOLChar; lpDst: PKOLChar; nSize: DWORD): DWORD; stdcall;
  299. procedure FatalAppExit(uAction: UINT; lpMessageText: PKOLChar); stdcall;
  300. function FillConsoleOutputCharacter(hConsoleOutput: THandle; cCharacter: KOLChar;
  301. nLength: DWORD; dwWriteCoord: TCoord; var lpNumberOfCharsWritten: DWORD): BOOL; stdcall;
  302. function FindAtom(lpString: PKOLChar): ATOM; stdcall;
  303. function FindFirstChangeNotification(lpPathName: PKOLChar;
  304. bWatchSubtree: BOOL; dwNotifyFilter: DWORD): THandle; stdcall;
  305. function FindFirstFile(lpFileName: PKOLChar; var lpFindFileData: TWIN32FindData): THandle; stdcall;
  306. function FindFirstFileEx(lpFileName: PKOLChar; fInfoLevelId: TFindexInfoLevels;
  307. lpFindFileData: Pointer; fSearchOp: TFindexSearchOps; lpSearchFilter: Pointer;
  308. dwAdditionalFlags: DWORD): BOOL; stdcall;
  309. function FindNextFile(hFindFile: THandle; var lpFindFileData: TWIN32FindData): BOOL; stdcall;
  310. function FindResource(hModule: HMODULE; lpName, lpType: PKOLChar): HRSRC; stdcall;
  311. function FindResourceEx(hModule: HMODULE; lpType, lpName: PKOLChar; wLanguage: Word): HRSRC; stdcall;
  312. function FoldString(dwMapFlags: DWORD; lpSrcStr: PKOLChar; cchSrc: Integer;
  313. lpDestStr: PKOLChar; cchDest: Integer): Integer; stdcall;
  314. function FormatMessage(dwFlags: DWORD; lpSource: Pointer; dwMessageId: DWORD; dwLanguageId: DWORD;
  315. lpBuffer: PKOLChar; nSize: DWORD; Arguments: Pointer): DWORD; stdcall;
  316. function FreeEnvironmentStrings(EnvBlock: PKOLChar): BOOL; stdcall;
  317. function GetAtomName(nAtom: ATOM; lpBuffer: PKOLChar; nSize: Integer): UINT; stdcall;
  318. function GetBinaryType(lpApplicationName: PKOLChar; var lpBinaryType: DWORD): BOOL; stdcall;
  319. function GetCommandLine: PKOLChar; stdcall;
  320. function GetCompressedFileSize(lpFileName: PKOLChar; lpFileSizeHigh: PDWORD): DWORD; stdcall;
  321. function GetComputerName(lpBuffer: PKOLChar; var nSize: DWORD): BOOL; stdcall;
  322. function GetConsoleTitle(lpConsoleTitle: PKOLChar; nSize: DWORD): DWORD; stdcall;
  323. function GetCurrencyFormat(Locale: LCID; dwFlags: DWORD; lpValue: PKOLChar;
  324. lpFormat: PCurrencyFmt; lpCurrencyStr: PKOLChar; cchCurrency: Integer): Integer; stdcall;
  325. function GetCurrentDirectory(nBufferLength: DWORD; lpBuffer: PKOLChar): DWORD; stdcall;
  326. function GetDateFormat(Locale: LCID; dwFlags: DWORD; lpDate: PSystemTime;
  327. lpFormat: PKOLChar; lpDateStr: PKOLChar; cchDate: Integer): Integer; stdcall;
  328. function GetDefaultCommConfig(lpszName: PKOLChar;
  329. var lpCC: TCommConfig; var lpdwSize: DWORD): BOOL; stdcall;
  330. function GetDiskFreeSpace(lpRootPathName: PKOLChar;
  331. var lpSectorsPerCluster, lpBytesPerSector, lpNumberOfFreeClusters, lpTotalNumberOfClusters: DWORD): BOOL; stdcall;
  332. function GetDiskFreeSpaceEx(lpDirectoryName: PKOLChar;
  333. var lpFreeBytesAvailableToCaller, lpTotalNumberOfBytes; lpTotalNumberOfFreeBytes: PLargeInteger): BOOL; stdcall;
  334. function GetDriveType(lpRootPathName: PKOLChar): UINT; stdcall;
  335. function GetEnvironmentStrings: PKOLChar; stdcall;
  336. function GetEnvironmentVariable(lpName: PKOLChar; lpBuffer: PKOLChar; nSize: DWORD): DWORD; stdcall; overload;
  337. function GetFileAttributes(lpFileName: PKOLChar): DWORD; stdcall;
  338. function GetFileAttributesEx(lpFileName: PKOLChar;
  339. fInfoLevelId: TGetFileExInfoLevels; lpFileInformation: Pointer): BOOL; stdcall;
  340. function GetFullPathName(lpFileName: PKOLChar; nBufferLength: DWORD;
  341. lpBuffer: PKOLChar; var lpFilePart: PKOLChar): DWORD; stdcall;
  342. function GetLocaleInfo(Locale: LCID; LCType: LCTYPE; lpLCData: PKOLChar; cchData: Integer): Integer; stdcall;
  343. function GetLogicalDriveStrings(nBufferLength: DWORD; lpBuffer: PKOLChar): DWORD; stdcall;
  344. function GetModuleFileName(hModule: HINST; lpFilename: PKOLChar; nSize: DWORD): DWORD; stdcall;
  345. function GetModuleHandle(lpModuleName: PKOLChar): HMODULE; stdcall;
  346. function GetNamedPipeHandleState(hNamedPipe: THandle;
  347. lpState, lpCurInstances, lpMaxCollectionCount, lpCollectDataTimeout: PDWORD;
  348. lpUserName: PKOLChar; nMaxUserNameSize: DWORD): BOOL; stdcall;
  349. function GetNumberFormat(Locale: LCID; dwFlags: DWORD; lpValue: PKOLChar;
  350. lpFormat: PNumberFmt; lpNumberStr: PKOLChar; cchNumber: Integer): Integer; stdcall;
  351. function GetPrivateProfileInt(lpAppName, lpKeyName: PKOLChar; nDefault: Integer; lpFileName: PKOLChar): UINT; stdcall;
  352. function GetPrivateProfileSection(lpAppName: PKOLChar; lpReturnedString: PKOLChar; nSize: DWORD; lpFileName: PKOLChar): DWORD; stdcall;
  353. function GetPrivateProfileSectionNames(lpszReturnBuffer: PKOLChar; nSize: DWORD; lpFileName: PKOLChar): DWORD; stdcall;
  354. function GetPrivateProfileString(lpAppName, lpKeyName, lpDefault: PKOLChar;
  355. lpReturnedString: PKOLChar; nSize: DWORD; lpFileName: PKOLChar): DWORD; stdcall;
  356. function GetProfileInt(lpAppName, lpKeyName: PKOLChar; nDefault: Integer): UINT; stdcall;
  357. function GetProfileSection(lpAppName: PKOLChar; lpReturnedString: PKOLChar; nSize: DWORD): DWORD; stdcall;
  358. function GetProfileString(lpAppName, lpKeyName, lpDefault: PKOLChar;
  359. lpReturnedString: PKOLChar; nSize: DWORD): DWORD; stdcall;
  360. function GetShortPathName(lpszLongPath: PKOLChar; lpszShortPath: PKOLChar;
  361. cchBuffer: DWORD): DWORD; stdcall;
  362. procedure GetStartupInfo(var lpStartupInfo: TStartupInfo); stdcall;
  363. function GetStringTypeEx(Locale: LCID; dwInfoType: DWORD;
  364. lpSrcStr: PKOLChar; cchSrc: Integer; var lpCharType): BOOL; stdcall;
  365. function GetSystemDirectory(lpBuffer: PKOLChar; uSize: UINT): UINT; stdcall;
  366. function GetTempFileName(lpPathName, lpPrefixString: PKOLChar;
  367. uUnique: UINT; lpTempFileName: PKOLChar): UINT; stdcall;
  368. function GetTempPath(nBufferLength: DWORD; lpBuffer: PKOLChar): DWORD; stdcall;
  369. function GetTimeFormat(Locale: LCID; dwFlags: DWORD; lpTime: PSystemTime;
  370. lpFormat: PKOLChar; lpTimeStr: PKOLChar; cchTime: Integer): Integer; stdcall;
  371. function GetVersionEx(var lpVersionInformation: TOSVersionInfo): BOOL; stdcall;
  372. function GetVolumeInformation(lpRootPathName: PKOLChar;
  373. lpVolumeNameBuffer: PKOLChar; nVolumeNameSize: DWORD; lpVolumeSerialNumber: PDWORD;
  374. var lpMaximumComponentLength, lpFileSystemFlags: DWORD;
  375. lpFileSystemNameBuffer: PKOLChar; nFileSystemNameSize: DWORD): BOOL; stdcall;
  376. function GetWindowsDirectory(lpBuffer: PKOLChar; uSize: UINT): UINT; stdcall;
  377. function GlobalAddAtom(lpString: PKOLChar): ATOM; stdcall;
  378. function GlobalFindAtom(lpString: PKOLChar): ATOM; stdcall;
  379. function GlobalGetAtomName(nAtom: ATOM; lpBuffer: PKOLChar; nSize: Integer): UINT; stdcall;
  380. function IsBadStringPtr(lpsz: PKOLChar; ucchMax: UINT): BOOL; stdcall;
  381. function LCMapString(Locale: LCID; dwMapFlags: DWORD; lpSrcStr: PKOLChar;
  382. cchSrc: Integer; lpDestStr: PKOLChar; cchDest: Integer): Integer; stdcall;
  383. function LoadLibrary(lpLibFileName: PKOLChar): HMODULE; stdcall;
  384. function LoadLibraryEx(lpLibFileName: PKOLChar; hFile: THandle; dwFlags: DWORD): HMODULE; stdcall;
  385. function MoveFile(lpExistingFileName, lpNewFileName: PKOLChar): BOOL; stdcall;
  386. function MoveFileEx(lpExistingFileName, lpNewFileName: PKOLChar; dwFlags: DWORD): BOOL; stdcall;
  387. function MoveFileWithProgress(lpExistingFileName, lpNewFileName: PKOLChar; lpProgressRoutine: TFNProgressRoutine;
  388. lpData: Pointer; dwFlags: DWORD): BOOL; stdcall;
  389. function OpenEvent(dwDesiredAccess: DWORD; bInheritHandle: BOOL; lpName: PKOLChar): THandle; stdcall;
  390. function OpenFileMapping(dwDesiredAccess: DWORD; bInheritHandle: BOOL; lpName: PKOLChar): THandle; stdcall;
  391. function OpenMutex(dwDesiredAccess: DWORD; bInheritHandle: BOOL; lpName: PKOLChar): THandle; stdcall;
  392. function OpenSemaphore(dwDesiredAccess: DWORD; bInheritHandle: BOOL; lpName: PKOLChar): THandle; stdcall;
  393. function OpenWaitableTimer(dwDesiredAccess: DWORD; bInheritHandle: BOOL;
  394. lpTimerName: PKOLChar): THandle; stdcall;
  395. procedure OutputDebugString(lpOutputString: PKOLChar); stdcall;
  396. function PeekConsoleInput(hConsoleInput: THandle; var lpBuffer: TInputRecord;
  397. nLength: DWORD; var lpNumberOfEventsRead: DWORD): BOOL; stdcall;
  398. function QueryDosDevice(lpDeviceName: PKOLChar; lpTargetPath: PKOLChar; ucchMax: DWORD): DWORD; stdcall;
  399. function QueryRecoveryAgents(p1: PKOLChar; var p2: Pointer; var p3: TRecoveryAgentInformation): DWORD; stdcall;
  400. function ReadConsole(hConsoleInput: THandle; lpBuffer: Pointer;
  401. nNumberOfCharsToRead: DWORD; var lpNumberOfCharsRead: DWORD; lpReserved: Pointer): BOOL; stdcall;
  402. function ReadConsoleInput(hConsoleInput: THandle; var lpBuffer: TInputRecord;
  403. nLength: DWORD; var lpNumberOfEventsRead: DWORD): BOOL; stdcall;
  404. function ReadConsoleOutput(hConsoleOutput: THandle; lpBuffer: Pointer;
  405. dwBufferSize, dwBufferCoord: TCoord; var lpReadRegion: TSmallRect): BOOL; stdcall;
  406. function ReadConsoleOutputCharacter(hConsoleOutput: THandle; lpCharacter: PKOLChar;
  407. nLength: DWORD; dwReadCoord: TCoord; var lpNumberOfCharsRead: DWORD): BOOL; stdcall;
  408. function RemoveDirectory(lpPathName: PKOLChar): BOOL; stdcall;
  409. function ScrollConsoleScreenBuffer(hConsoleOutput: THandle;
  410. const lpScrollRectangle: TSmallRect; lpClipRectangle: PSmallRect;
  411. dwDestinationOrigin: TCoord; var lpFill: TCharInfo): BOOL; stdcall;
  412. function SearchPath(lpPath, lpFileName, lpExtension: PKOLChar;
  413. nBufferLength: DWORD; lpBuffer: PKOLChar; var lpFilePart: PKOLChar): DWORD; stdcall;
  414. function SetComputerName(lpComputerName: PKOLChar): BOOL; stdcall;
  415. function SetConsoleTitle(lpConsoleTitle: PKOLChar): BOOL; stdcall;
  416. function SetCurrentDirectory(lpPathName: PKOLChar): BOOL; stdcall;
  417. function SetDefaultCommConfig(lpszName: PKOLChar; lpCC: PCommConfig; dwSize: DWORD): BOOL; stdcall;
  418. function SetEnvironmentVariable(lpName, lpValue: PKOLChar): BOOL; stdcall;
  419. function SetFileAttributes(lpFileName: PKOLChar; dwFileAttributes: DWORD): BOOL; stdcall;
  420. function SetLocaleInfo(Locale: LCID; LCType: LCTYPE; lpLCData: PKOLChar): BOOL; stdcall;
  421. function SetVolumeLabel(lpRootPathName: PKOLChar; lpVolumeName: PKOLChar): BOOL; stdcall;
  422. function UpdateResource(hUpdate: THandle; lpType, lpName: PKOLChar;
  423. wLanguage: Word; lpData: Pointer; cbData: DWORD): BOOL; stdcall;
  424. function VerLanguageName(wLang: DWORD; szLang: PKOLChar; nSize: DWORD): DWORD; stdcall;
  425. function WaitNamedPipe(lpNamedPipeName: PKOLChar; nTimeOut: DWORD): BOOL; stdcall;
  426. function WriteConsole(hConsoleOutput: THandle; const lpBuffer: Pointer;
  427. nNumberOfCharsToWrite: DWORD; var lpNumberOfCharsWritten: DWORD; lpReserved: Pointer): BOOL; stdcall;
  428. function WriteConsoleInput(hConsoleInput: THandle; const lpBuffer: TInputRecord;
  429. nLength: DWORD; var lpNumberOfEventsWritten: DWORD): BOOL; stdcall;
  430. function WriteConsoleOutput(hConsoleOutput: THandle; lpBuffer: Pointer;
  431. dwBufferSize, dwBufferCoord: TCoord; var lpWriteRegion: TSmallRect): BOOL; stdcall;
  432. function WriteConsoleOutputCharacter(hConsoleOutput: THandle;lpCharacter: PKOLChar;
  433. nLength: DWORD; dwWriteCoord: TCoord; var lpNumberOfCharsWritten: DWORD): BOOL; stdcall;
  434. function WritePrivateProfileSection(lpAppName, lpString, lpFileName: PKOLChar): BOOL; stdcall;
  435. function WritePrivateProfileString(lpAppName, lpKeyName, lpString, lpFileName: PKOLChar): BOOL; stdcall;
  436. function WriteProfileSection(lpAppName, lpString: PKOLChar): BOOL; stdcall;
  437. function WriteProfileString(lpAppName, lpKeyName, lpString: PKOLChar): BOOL; stdcall;
  438. function lstrcat(lpString1, lpString2: PKOLChar): PKOLChar; stdcall;
  439. function lstrcmp(lpString1, lpString2: PKOLChar): Integer; stdcall;
  440. function lstrcmpi(lpString1, lpString2: PKOLChar): Integer; stdcall;
  441. function lstrcpy(lpString1, lpString2: PKOLChar): PKOLChar; stdcall;
  442. function lstrcpyn(lpString1, lpString2: PKOLChar; iMaxLength: Integer): PKOLChar; stdcall;
  443. function lstrlen(lpString: PKOLChar): Integer; stdcall;
  444. function MultinetGetConnectionPerformance(lpNetResource: PNetResource;
  445. lpNetConnectInfoStruc: PNetConnectInfoStruct): DWORD; stdcall;
  446. function WNetAddConnection2(var lpNetResource: TNetResource;
  447. lpPassword, lpUserName: PKOLChar; dwFlags: DWORD): DWORD; stdcall;
  448. function WNetAddConnection3(hwndOwner: HWND; var lpNetResource: TNetResource;
  449. lpPassword, lpUserName: PKOLChar; dwFlags: DWORD): DWORD; stdcall;
  450. function WNetAddConnection(lpRemoteName, lpPassword, lpLocalName: PKOLChar): DWORD; stdcall;
  451. function WNetCancelConnection2(lpName: PKOLChar; dwFlags: DWORD; fForce: BOOL): DWORD; stdcall;
  452. function WNetCancelConnection(lpName: PKOLChar; fForce: BOOL): DWORD; stdcall;
  453. function WNetConnectionDialog1(var lpConnDlgStruct: TConnectDlgStruct): DWORD; stdcall;
  454. function WNetDisconnectDialog1(var lpConnDlgStruct: TDiscDlgStruct): DWORD; stdcall;
  455. function WNetEnumResource(hEnum: THandle; var lpcCount: DWORD;
  456. lpBuffer: Pointer; var lpBufferSize: DWORD): DWORD; stdcall;
  457. function WNetGetConnection(lpLocalName: PKOLChar;
  458. lpRemoteName: PKOLChar; var lpnLength: DWORD): DWORD; stdcall;
  459. function WNetGetLastError(var lpError: DWORD; lpErrorBuf: PKOLChar;
  460. nErrorBufSize: DWORD; lpNameBuf: PKOLChar; nNameBufSize: DWORD): DWORD; stdcall;
  461. function WNetGetNetworkInformation(lpProvider: PKOLChar;
  462. var lpNetInfoStruct: TNetInfoStruct): DWORD; stdcall;
  463. function WNetGetProviderName(dwNetType: DWORD; lpProviderName: PKOLChar;
  464. var lpBufferSize: DWORD): DWORD; stdcall;
  465. function WNetGetResourceParent(lpNetResource: PNetResource;
  466. lpBuffer: Pointer; var cbBuffer: DWORD): DWORD; stdcall;
  467. function WNetGetUniversalName(lpLocalPath: PKOLChar; dwInfoLevel: DWORD;
  468. lpBuffer: Pointer; var lpBufferSize: DWORD): DWORD; stdcall;
  469. function WNetGetUser(lpName: PKOLChar; lpUserName: PKOLChar; var lpnLength: DWORD): DWORD; stdcall;
  470. function WNetOpenEnum(dwScope, dwType, dwUsage: DWORD;
  471. lpNetResource: PNetResource; var lphEnum: THandle): DWORD; stdcall;
  472. function WNetSetConnection(lpName: PKOLChar; dwProperties: DWORD; pvValues: Pointer): DWORD; stdcall;
  473. function WNetUseConnection(hwndOwner: HWND;
  474. var lpNetResource: TNetResource; lpUserID: PKOLChar;
  475. lpPassword: PKOLChar; dwFlags: DWORD; lpAccessName: PKOLChar;
  476. var lpBufferSize: DWORD; var lpResult: DWORD): DWORD; stdcall;
  477. function GetFileVersionInfo(lptstrFilename: PKOLChar; dwHandle, dwLen: DWORD;
  478. lpData: Pointer): BOOL; stdcall;
  479. function GetFileVersionInfoSize(lptstrFilename: PKOLChar; var lpdwHandle: DWORD): DWORD; stdcall;
  480. function VerFindFile(uFlags: DWORD; szFileName, szWinDir, szAppDir, szCurDir: PKOLChar;
  481. var lpuCurDirLen: UINT; szDestDir: PKOLChar; var lpuDestDirLen: UINT): DWORD; stdcall;
  482. function VerInstallFile(uFlags: DWORD;
  483. szSrcFileName, szDestFileName, szSrcDir, szDestDir, szCurDir, szTmpFile: PKOLChar;
  484. var lpuTmpFileLen: UINT): DWORD; stdcall;
  485. function VerQueryValue(pBlock: Pointer; lpSubBlock: PKOLChar;
  486. var lplpBuffer: Pointer; var puLen: UINT): BOOL; stdcall;
  487. function GetPrivateProfileStruct(lpszSection, lpszKey: PKOLChar;
  488. lpStruct: Pointer; uSizeStruct: UINT; szFile: PKOLChar): BOOL; stdcall;
  489. function WritePrivateProfileStruct(lpszSection, lpszKey: PKOLChar;
  490. lpStruct: Pointer; uSizeStruct: UINT; szFile: PKOLChar): BOOL; stdcall;
  491. function AddFontResource(FileName: PKOLChar): Integer; stdcall;
  492. function AddFontResourceEx(p1: PKOLChar; p2: DWORD; p3: PDesignVector): Integer; stdcall;
  493. function CopyEnhMetaFile(p1: HENHMETAFILE; p2: PKOLChar): HENHMETAFILE; stdcall;
  494. function CopyMetaFile(p1: HMETAFILE; p2: PKOLChar): HMETAFILE; stdcall;
  495. function CreateColorSpace(var ColorSpace: TLogColorSpace): HCOLORSPACE; stdcall;
  496. function CreateDC(lpszDriver, lpszDevice, lpszOutput: PKOLChar;
  497. lpdvmInit: PDeviceMode): HDC; stdcall;
  498. function CreateEnhMetaFile(DC: HDC; FileName: PKOLChar; Rect: PRect; Desc: PKOLChar): HDC; stdcall;
  499. function CreateFont(nHeight, nWidth, nEscapement, nOrientaion, fnWeight: Integer;
  500. fdwItalic, fdwUnderline, fdwStrikeOut, fdwCharSet, fdwOutputPrecision,
  501. fdwClipPrecision, fdwQuality, fdwPitchAndFamily: DWORD; lpszFace: PKOLChar): HFONT; stdcall;
  502. function CreateFontIndirect(const p1: TLogFont): HFONT; stdcall;
  503. function CreateFontIndirectEx(const p1: PEnumLogFontExDV): HFONT; stdcall;
  504. function CreateIC(lpszDriver, lpszDevice, lpszOutput: PKOLChar; lpdvmInit: PDeviceMode): HDC; stdcall;
  505. function CreateMetaFile(p1: PKOLChar): HDC; stdcall;
  506. function CreateScalableFontResource(p1: DWORD; p2, p3, p4: PKOLChar): BOOL; stdcall;
  507. function DeviceCapabilities(pDriverName, pDeviceName, pPort: PKOLChar;
  508. iIndex: Integer; pOutput: PKOLChar; DevMode: PDeviceMode): Integer; stdcall;
  509. function EnumFontFamilies(DC: HDC; p2: PKOLChar; p3: TFNFontEnumProc; p4: LPARAM): BOOL; stdcall;
  510. function EnumFontFamiliesEx(DC: HDC; var p2: TLogFont;
  511. p3: TFNFontEnumProc; p4: LPARAM; p5: DWORD): BOOL; stdcall;
  512. function EnumFonts(DC: HDC; lpszFace: PKOLChar; fntenmprc: TFNFontEnumProc;
  513. lpszData: PKOLChar): Integer; stdcall;
  514. function EnumICMProfiles(DC: HDC; ICMProc: TFNICMEnumProc; p3: LPARAM): Integer; stdcall;
  515. function ExtTextOut(DC: HDC; X, Y: Integer; Options: Longint;
  516. Rect: PRect; Str: PKOLChar; Count: Longint; Dx: PInteger): BOOL; stdcall;
  517. function GetCharABCWidths(DC: HDC; FirstChar, LastChar: UINT; const ABCStructs): BOOL; stdcall;
  518. function GetCharABCWidthsFloat(DC: HDC; FirstChar, LastChar: UINT; const ABCFloatSturcts): BOOL; stdcall;
  519. function GetCharWidth32(DC: HDC; FirstChar, LastChar: UINT; const Widths): BOOL; stdcall;
  520. function GetCharWidth(DC: HDC; FirstChar, LastChar: UINT; const Widths): BOOL; stdcall;
  521. function GetCharWidthFloat(DC: HDC; FirstChar, LastChar: UINT; const Widths): BOOL; stdcall;
  522. function GetCharacterPlacement(DC: HDC; p2: PKOLChar; p3, p4: BOOL;
  523. var p5: TGCPResults; p6: DWORD): DWORD; stdcall;
  524. function GetEnhMetaFile(p1: PKOLChar): HENHMETAFILE; stdcall;
  525. function GetEnhMetaFileDescription(p1: HENHMETAFILE; p2: UINT; p3: PKOLChar): UINT; stdcall;
  526. function GetGlyphIndices(DC: HDC; p2: PKOLChar; p3: Integer; p4: PWORD; p5: DWORD): DWORD; stdcall;
  527. function GetGlyphOutline(DC: HDC; uChar, uFormat: UINT;
  528. const lpgm: TGlyphMetrics; cbBuffer: DWORD; lpvBuffer: Pointer; const lpmat2: TMat2): DWORD; stdcall;
  529. function GetICMProfile(DC: HDC; var Size: DWORD; Name: PKOLChar): BOOL; stdcall;
  530. function GetLogColorSpace(p1: HCOLORSPACE; var ColorSpace: TLogColorSpace; Size: DWORD): BOOL; stdcall;
  531. function GetMetaFile(p1: PKOLChar): HMETAFILE; stdcall;
  532. function GetObject(p1: HGDIOBJ; p2: Integer; p3: Pointer): Integer; stdcall;
  533. function GetOutlineTextMetrics(DC: HDC; p2: UINT; OTMetricStructs: Pointer): UINT; stdcall;
  534. function GetTextExtentExPoint(DC: HDC; p2: PKOLChar;
  535. p3, p4: Integer; p5, p6: PInteger; var p7: TSize): BOOL; stdcall;
  536. function GetTextExtentPoint32(DC: HDC; Str: PKOLChar; Count: Integer;
  537. var Size: TSize): BOOL; stdcall;
  538. function GetTextExtentPoint(DC: HDC; Str: PKOLChar; Count: Integer;
  539. var Size: TSize): BOOL; stdcall;
  540. function GetTextFace(DC: HDC; Count: Integer; Buffer: PKOLChar): Integer; stdcall;
  541. function GetTextMetrics(DC: HDC; var TM: TTextMetric): BOOL; stdcall;
  542. function PolyTextOut(DC: HDC; const PolyTextArray; Strings: Integer): BOOL; stdcall;
  543. function RemoveFontResource(FileName: PKOLChar): BOOL; stdcall;
  544. function RemoveFontResourceEx(p1: PKOLChar; p2: DWORD; p3: PDesignVector): BOOL; stdcall;
  545. function ResetDC(DC: HDC; const InitData: TDeviceMode): HDC; stdcall;
  546. function SetICMProfile(DC: HDC; Name: PKOLChar): BOOL; stdcall;
  547. function StartDoc(DC: HDC; const p2: TDocInfo): Integer; stdcall;
  548. function TextOut(DC: HDC; X, Y: Integer; Str: PKOLChar; Count: Integer): BOOL; stdcall;
  549. function UpdateICMRegKey(p1: DWORD; p2, p3: PKOLChar; p4: UINT): BOOL; stdcall;
  550. function wglUseFontBitmaps(DC: HDC; p2, p3, p4: DWORD): BOOL; stdcall;
  551. function wglUseFontOutlines(p1: HDC; p2, p3, p4: DWORD;
  552. p5, p6: Single; p7: Integer; p8: PGlyphMetricsFloat): BOOL; stdcall;
  553. function AnsiToOem(const lpszSrc: LPCSTR; lpszDst: LPSTR): BOOL; stdcall;
  554. function AnsiToOemBuff(lpszSrc: LPCSTR; lpszDst: LPSTR; cchDstLength: DWORD): BOOL; stdcall;
  555. function AnsiUpper(lpsz: LPSTR): LPSTR; stdcall;
  556. function AnsiUpperBuff(lpsz: LPSTR; cchLength: DWORD): DWORD; stdcall;
  557. function AnsiLower(lpsz: LPSTR): LPSTR; stdcall;
  558. function AnsiLowerBuff(lpsz: LPSTR; cchLength: DWORD): DWORD; stdcall;
  559. function AnsiNext(const lpsz: LPCSTR): LPSTR; stdcall;
  560. function AnsiPrev(const lpszStart: LPCSTR; const lpszCurrent: LPCSTR): LPSTR; stdcall;
  561. function AppendMenu(hMenu: HMENU; uFlags, uIDNewItem: UINT;
  562. lpNewItem: PKOLChar): BOOL; stdcall;
  563. //function BroadcastSystemMessage(Flags: DWORD; Recipients: PDWORD;
  564. // uiMessage: UINT; wParam: WPARAM; lParam: LPARAM): Longint; stdcall;
  565. //function BroadcastSystemMessageW(Flags: DWORD; Recipients: PDWORD;
  566. // uiMessage: UINT; wParam: WPARAM; lParam: LPARAM): Longint; stdcall;
  567. function CallMsgFilter(var lpMsg: TMsg; nCode: Integer): BOOL; stdcall;
  568. function CallWindowProc(lpPrevWndFunc: TFNWndProc; hWnd: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
  569. function ChangeDisplaySettings(var lpDevMode: TDeviceMode; dwFlags: DWORD): Longint; stdcall;
  570. function ChangeDisplaySettingsEx(lpszDeviceName: PKOLChar; var lpDevMode: TDeviceMode;
  571. wnd: HWND; dwFlags: DWORD; lParam: Pointer): Longint; stdcall;
  572. function ChangeMenu(hMenu: HMENU; cmd: UINT; lpszNewItem: PKOLChar;
  573. cmdInsert: UINT; flags: UINT): BOOL; stdcall;
  574. function CharLower(lpsz: PKOLChar): PKOLChar; stdcall;
  575. function CharLowerBuff(lpsz: PKOLChar; cchLength: DWORD): DWORD; stdcall;
  576. function CharNext(lpsz: PKOLChar): PKOLChar; stdcall;
  577. function CharNextEx(CodePage: Word; lpCurrentChar: LPCSTR; dwFlags: DWORD): LPSTR; stdcall;
  578. function CharPrev(lpszStart: PKOLChar; lpszCurrent: PKOLChar): PKOLChar; stdcall;
  579. function CharPrevEx(CodePage: Word; lpStart, lpCurrentChar: LPCSTR; dwFlags: DWORD): LPSTR; stdcall;
  580. function CharToOem(lpszSrc: PKOLChar; lpszDst: PKOLChar): BOOL; stdcall;
  581. function CharToOemBuff(lpszSrc: PKOLChar; lpszDst: PKOLChar; cchDstLength: DWORD): BOOL; stdcall;
  582. function CharUpper(lpsz: PKOLChar): PKOLChar; stdcall;
  583. function CharUpperBuff(lpsz: PKOLChar; cchLength: DWORD): DWORD; stdcall;
  584. function CopyAcceleratorTable(hAccelSrc: HACCEL; var lpAccelDst; cAccelEntries: Integer): Integer; stdcall;
  585. function CreateAcceleratorTable(var Accel; Count: Integer): HACCEL; stdcall;
  586. function CreateDesktop(lpszDesktop, lpszDevice: PKOLChar;
  587. pDevmode: PDeviceMode; dwFlags: DWORD; dwDesiredAccess:
  588. DWORD; lpsa: PSecurityAttributes): HDESK; stdcall;
  589. function CreateDialogIndirectParam(hInstance: HINST; const lpTemplate: TDlgTemplate;
  590. hWndParent: HWND; lpDialogFunc: TFNDlgProc; dwInitParam: LPARAM): HWND; stdcall;
  591. function CreateDialogParam(hInstance: HINST; lpTemplateName: PKOLChar;
  592. hWndParent: HWND; lpDialogFunc: TFNDlgProc; dwInitParam: LPARAM): HWND; stdcall;
  593. function CreateMDIWindow(lpClassName, lpWindowName: PKOLChar;
  594. dwStyle: DWORD; X, Y, nWidth, nHeight: Integer;
  595. hWndParent: HWND; hInstance: HINST; lParam: LPARAM): HWND; stdcall;
  596. function CreateWindowEx(dwExStyle: DWORD; lpClassName: PKOLChar;
  597. lpWindowName: PKOLChar; dwStyle: DWORD; X, Y, nWidth, nHeight: Integer;
  598. hWndParent: HWND; hMenu: HMENU; hInstance: HINST; lpParam: Pointer): HWND; stdcall;
  599. function CreateWindowStation(lpwinsta: PKOLChar; dwReserved, dwDesiredAccess: DWORD;
  600. lpsa: PSecurityAttributes): HWINSTA; stdcall;
  601. function DefDlgProc(hDlg: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
  602. function DefFrameProc(hWnd, hWndMDIClient: HWND; uMsg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
  603. function DefMDIChildProc(hWnd: HWND; uMsg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
  604. function DefWindowProc(hWnd: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
  605. function DialogBoxIndirectParam(hInstance: HINST; const lpDialogTemplate: TDlgTemplate;
  606. hWndParent: HWND; lpDialogFunc: TFNDlgProc; dwInitParam: LPARAM): Integer; stdcall;
  607. function DialogBoxParam(hInstance: HINST; lpTemplateName: PKOLChar;
  608. hWndParent: HWND; lpDialogFunc: TFNDlgProc; dwInitParam: LPARAM): Integer; stdcall;
  609. function DispatchMessage(const lpMsg: TMsg): Longint; stdcall;
  610. function DlgDirList(hDlg: HWND; lpPathSpec: PKOLChar;
  611. nIDListBox, nIDStaticPath: Integer; uFileType: UINT): Integer; stdcall;
  612. function DlgDirListComboBox(hDlg: HWND; lpPathSpec: PKOLChar;
  613. nIDComboBox, nIDStaticPath: Integer; uFiletype: UINT): Integer; stdcall;
  614. function DlgDirSelectComboBoxEx(hDlg: HWND; lpString: PKOLChar;
  615. nCount, nIDComboBox: Integer): BOOL; stdcall;
  616. function DlgDirSelectEx(hDlg: HWND; lpString: PKOLChar; nCount, nIDListBox: Integer): BOOL; stdcall;
  617. function DrawState(DC: HDC; Brush: HBRUSH; CBFunc: TFNDrawStateProc;
  618. lData: LPARAM; wData: WPARAM; x, y, cx, cy: Integer; Flags: UINT): BOOL; stdcall;
  619. function DrawText(hDC: HDC; lpString: PKOLChar; nCount: Integer;
  620. var lpRect: TRect; uFormat: UINT): Integer; stdcall;
  621. function DrawTextEx(DC: HDC; lpchText: PKOLChar; cchText: Integer; var p4: TRect;
  622. dwDTFormat: UINT; DTParams: PDrawTextParams): Integer; stdcall;
  623. function EnumDesktops(hwinsta: HWINSTA; lpEnumFunc: TFNDeskTopEnumProc; lParam: LPARAM): BOOL; stdcall;
  624. function EnumDisplaySettings(lpszDeviceName: PKOLChar; iModeNum: DWORD;
  625. var lpDevMode: TDeviceMode): BOOL; stdcall;
  626. function EnumDisplayDevices(Unused: Pointer; iDevNum: DWORD;
  627. var lpDisplayDevice: TDisplayDevice; dwFlags: DWORD): BOOL; stdcall;
  628. function EnumProps(hWnd: HWND; lpEnumFunc: TFNPropEnumProc): Integer; stdcall;
  629. function EnumPropsEx(hWnd: HWND; lpEnumFunc: TFNPropEnumProcEx; lParam: LPARAM): Integer; stdcall;
  630. function EnumWindowStations(lpEnumFunc: TFNWinStaEnumProc; lParam: LPARAM): BOOL; stdcall;
  631. function FindWindow(lpClassName, lpWindowName: PKOLChar): HWND; stdcall;
  632. function FindWindowEx(Parent, Child: HWND; ClassName, WindowName: PKOLChar): HWND; stdcall;
  633. function GetAltTabInfo(hwnd: HWND; iItem: Integer; var pati: TAltTabInfo;
  634. pszItemText: PKOLChar; cchItemText: UINT): BOOL; stdcall;
  635. function GetClassInfo(hInstance: HINST; lpClassName: PKOLChar;
  636. var lpWndClass: TWndClass): BOOL; stdcall;
  637. function GetClassInfoEx(Instance: HINST; Classname: PKOLChar; var WndClass: TWndClassEx): BOOL; stdcall;
  638. function GetClassLong(hWnd: HWND; nIndex: Integer): DWORD; stdcall;
  639. function GetClassName(hWnd: HWND; lpClassName: PKOLChar; nMaxCount: Integer): Integer; stdcall;
  640. function GetClipboardFormatName(format: UINT; lpszFormatName: PKOLChar;
  641. cchMaxCount: Integer): Integer; stdcall;
  642. function GetDlgItemText(hDlg: HWND; nIDDlgItem: Integer;
  643. lpString: PKOLChar; nMaxCount: Integer): UINT; stdcall;
  644. function GetKeyNameText(lParam: Longint; lpString: PKOLChar; nSize: Integer): Integer; stdcall;
  645. function GetKeyboardLayoutName(pwszKLID: PKOLChar): BOOL; stdcall;
  646. function GetMenuItemInfo(p1: HMENU; p2: UINT; p3: BOOL; var p4: TMenuItemInfo): BOOL; stdcall;
  647. function GetMenuString(hMenu: HMENU; uIDItem: UINT; lpString: PKOLChar;
  648. nMaxCount: Integer; uFlag: UINT): Integer; stdcall;
  649. function GetMessage(var lpMsg: TMsg; hWnd: HWND;
  650. wMsgFilterMin, wMsgFilterMax: UINT): BOOL; stdcall;
  651. function GetProp(hWnd: HWND; lpString: PKOLChar): THandle; stdcall;
  652. function GetTabbedTextExtent(hDC: HDC; lpString: PKOLChar;
  653. nCount, nTabPositions: Integer; var lpnTabStopPositions): DWORD; stdcall;
  654. function GetUserObjectInformation(hObj: THandle; nIndex: Integer; pvInfo: Pointer;
  655. nLength: DWORD; var lpnLengthNeeded: DWORD): BOOL; stdcall;
  656. function GetWindowLong(hWnd: HWND; nIndex: Integer): Longint; stdcall;
  657. function GetWindowModuleFileName(hwnd: HWND; pszFileName: PKOLChar; cchFileNameMax: UINT): UINT; stdcall;
  658. function GetWindowText(hWnd: HWND; lpString: PKOLChar; nMaxCount: Integer): Integer; stdcall;
  659. function GetWindowTextLength(hWnd: HWND): Integer; stdcall;
  660. function GrayString(hDC: HDC; hBrush: HBRUSH; lpOutputFunc: TFNGrayStringProc;
  661. lpData: LPARAM; nCount, X, Y, nWidth, nHeight: Integer): BOOL; stdcall;
  662. function InsertMenu(hMenu: HMENU; uPosition, uFlags, uIDNewItem: UINT;
  663. lpNewItem: PKOLChar): BOOL; stdcall;
  664. function InsertMenuItem(p1: HMENU; p2: UINT; p3: BOOL; const p4: TMenuItemInfo): BOOL; stdcall;
  665. function IsCharAlpha(ch: KOLChar): BOOL; stdcall;
  666. function IsCharAlphaNumeric(ch: KOLChar): BOOL; stdcall;
  667. function IsCharLower(ch: KOLChar): BOOL; stdcall;
  668. function IsCharUpper(ch: KOLChar): BOOL; stdcall;
  669. function IsDialogMessage(hDlg: HWND; var lpMsg: TMsg): BOOL; stdcall;
  670. function LoadAccelerators(hInstance: HINST; lpTableName: PKOLChar): HACCEL; stdcall;
  671. function LoadBitmap(hInstance: HINST; lpBitmapName: PKOLChar): HBITMAP; stdcall;
  672. function LoadCursor(hInstance: HINST; lpCursorName: PKOLChar): HCURSOR; stdcall;
  673. function LoadCursorFromFile(lpFileName: PKOLChar): HCURSOR; stdcall;
  674. function LoadIcon(hInstance: HINST; lpIconName: PKOLChar): HICON; stdcall;
  675. function LoadImage(hInst: HINST; ImageName: PKOLChar; ImageType: UINT; X, Y: Integer; Flags: UINT): THandle; stdcall;
  676. function LoadKeyboardLayout(pwszKLID: PKOLChar; Flags: UINT): HKL; stdcall;
  677. function LoadMenu(hInstance: HINST; lpMenuName: PKOLChar): HMENU; stdcall;
  678. function LoadMenuIndirect(lpMenuTemplate: Pointer): HMENU; stdcall;
  679. function LoadString(hInstance: HINST; uID: UINT; lpBuffer: PKOLChar; nBufferMax: Integer): Integer; stdcall;
  680. function MapVirtualKey(uCode, uMapType: UINT): UINT; stdcall;
  681. function MapVirtualKeyEx(uCode, uMapType: UINT; dwhkl: HKL): UINT; stdcall;
  682. function MessageBox(hWnd: HWND; lpText, lpCaption: PKOLChar; uType: UINT): Integer; stdcall;
  683. function MessageBoxEx(hWnd: HWND; lpText, lpCaption: PKOLChar;
  684. uType: UINT; wLanguageId: Word): Integer; stdcall;
  685. function MessageBoxIndirect(const MsgBoxParams: TMsgBoxParams): BOOL; stdcall;
  686. function ModifyMenu(hMnu: HMENU; uPosition, uFlags, uIDNewItem: UINT;
  687. lpNewItem: PKOLChar): BOOL; stdcall;
  688. function OemToAnsi(const lpszSrc: LPCSTR; lpszDst: LPSTR): BOOL; stdcall;
  689. function OemToAnsiBuff(lpszSrc: LPCSTR; lpszDst: LPSTR; cchDstLength: DWORD): BOOL; stdcall;
  690. function OemToChar(lpszSrc: PKOLChar; lpszDst: PKOLChar): BOOL; stdcall;
  691. function OemToCharBuff(lpszSrc: PKOLChar; lpszDst: PKOLChar; cchDstLength: DWORD): BOOL; stdcall;
  692. function OpenDesktop(lpszDesktop: PKOLChar; dwFlags: DWORD; fInherit: BOOL;
  693. dwDesiredAccess: DWORD): HDESK; stdcall;
  694. function OpenWindowStation(lpszWinSta: PKOLChar; fInherit: BOOL;
  695. dwDesiredAccess: DWORD): HWINSTA; stdcall;
  696. function PeekMessage(var lpMsg: TMsg; hWnd: HWND;
  697. wMsgFilterMin, wMsgFilterMax, wRemoveMsg: UINT): BOOL; stdcall;
  698. function PostMessage(hWnd: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): BOOL; stdcall;
  699. function PostThreadMessage(idThread: DWORD; Msg: UINT; wParam: WPARAM; lParam: LPARAM): BOOL; stdcall;
  700. function RealGetWindowClass(hwnd: HWND; pszType: PKOLChar; cchType: UINT): UINT; stdcall;
  701. function RegisterClass(const lpWndClass: TWndClass): ATOM; stdcall;
  702. function RegisterClassEx(const WndClass: TWndClassEx): ATOM; stdcall;
  703. function RegisterClipboardFormat(lpszFormat: PKOLChar): UINT; stdcall;
  704. function RegisterDeviceNotification(hRecipient: THandle; NotificationFilter: Pointer; Flags: DWORD): HDEVNOTIFY; stdcall;
  705. function RegisterWindowMessage(lpString: PKOLChar): UINT; stdcall;
  706. function RemoveProp(hWnd: HWND; lpString: PKOLChar): THandle; stdcall;
  707. function SendDlgItemMessage(hDlg: HWND; nIDDlgItem: Integer;
  708. Msg: UINT; wParam: WPARAM; lParam: LPARAM): Longint; stdcall;
  709. function SendMessage(hWnd: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall;
  710. function SendMessageCallback(hWnd: HWND; Msg: UINT; wParam: WPARAM;
  711. lParam: LPARAM; lpResultCallBack: TFNSendAsyncProc; dwData: DWORD): BOOL; stdcall;
  712. function SendMessageTimeout(hWnd: HWND; Msg: UINT; wParam: WPARAM;
  713. lParam: LPARAM; fuFlags, uTimeout: UINT; var lpdwResult: DWORD): LRESULT; stdcall;
  714. function SendNotifyMessage(hWnd: HWND; Msg: UINT; wParam: WPARAM;
  715. lParam: LPARAM): BOOL; stdcall;
  716. function SetClassLong(hWnd: HWND; nIndex: Integer; dwNewLong: Longint): DWORD; stdcall;
  717. function SetDlgItemText(hDlg: HWND; nIDDlgItem: Integer; lpString: PKOLChar): BOOL; stdcall;
  718. function SetMenuItemInfo(p1: HMENU; p2: UINT; p3: BOOL; const p4: TMenuItemInfo): BOOL; stdcall;
  719. function SetProp(hWnd: HWND; lpString: PKOLChar; hData: THandle): BOOL; stdcall;
  720. function SetUserObjectInformation(hObj: THandle; nIndex: Integer;
  721. pvInfo: Pointer; nLength: DWORD): BOOL; stdcall;
  722. function SetWindowLong(hWnd: HWND; nIndex: Integer; dwNewLong: Longint): Longint; stdcall;
  723. function SetWindowText(hWnd: HWND; lpString: PKOLChar): BOOL; stdcall;
  724. function SetWindowsHook(nFilterType: Integer; pfnFilterProc: TFNHookProc): HHOOK; stdcall;
  725. function SetWindowsHookEx(idHook: Integer; lpfn: TFNHookProc; hmod: HINST; dwThreadId: DWORD): HHOOK; stdcall;
  726. function SystemParametersInfo(uiAction, uiParam: UINT;
  727. pvParam: Pointer; fWinIni: UINT): BOOL; stdcall;
  728. function TabbedTextOut(hDC: HDC; X, Y: Integer; lpString: PKOLChar; nCount, nTabPositions: Integer;
  729. var lpnTabStopPositions; nTabOrigin: Integer): Longint; stdcall;
  730. function TranslateAccelerator(hWnd: HWND; hAccTable: HACCEL; var lpMsg: TMsg): Integer; stdcall;
  731. function UnregisterClass(lpClassName: PKOLChar; hInstance: HINST): BOOL; stdcall;
  732. function VkKeyScan(ch: KOLChar): SHORT; stdcall;
  733. function VkKeyScanEx(ch: KOLChar; dwhkl: HKL): SHORT; stdcall;
  734. function WinHelp(hWndMain: HWND; lpszHelp: PKOLChar; uCommand: UINT; dwData: DWORD): BOOL; stdcall;
  735. function wsprintf(Output: PKOLChar; Format: PKOLChar): Integer; stdcall;
  736. function wvsprintf(Output: PKOLChar; Format: PKOLChar; arglist: va_list): Integer; stdcall;
  737. const
  738. IDC_ARROW = MakeIntResource(32512);
  739. IDC_IBEAM = MakeIntResource(32513);
  740. IDC_WAIT = MakeIntResource(32514);
  741. IDC_CROSS = MakeIntResource(32515);
  742. IDC_UPARROW = MakeIntResource(32516);
  743. IDC_SIZE = MakeIntResource(32640);
  744. IDC_ICON = MakeIntResource(32641);
  745. IDC_SIZENWSE = MakeIntResource(32642);
  746. IDC_SIZENESW = MakeIntResource(32643);
  747. IDC_SIZEWE = MakeIntResource(32644);
  748. IDC_SIZENS = MakeIntResource(32645);
  749. IDC_SIZEALL = MakeIntResource(32646);
  750. IDC_NO = MakeIntResource(32648);
  751. IDC_HAND = MakeIntResource(32649);
  752. IDC_APPSTARTING = MakeIntResource(32650);
  753. IDC_HELP = MakeIntResource(32651);
  754. {$ENDIF interface_part} ////////////////////////////////////////////////////////
  755. {$IFDEF implementation_part} ///////////////////////////////////////////////////
  756. function AbortSystemShutdown; external advapi32 name 'AbortSystemShutdownW';
  757. function AccessCheckAndAuditAlarm; external advapi32 name 'AccessCheckAndAuditAlarmW';
  758. function AccessCheckByTypeAndAuditAlarm; external advapi32 name 'AccessCheckByTypeAndAuditAlarmW';
  759. function AccessCheckByTypeResultListAndAuditAlarm; external advapi32 name 'AccessCheckByTypeResultListAndAuditAlarmW';
  760. function BackupEventLog; external advapi32 name 'BackupEventLogW';
  761. function ClearEventLog; external advapi32 name 'ClearEventLogW';
  762. function CreateProcessAsUser; external advapi32 name 'CreateProcessAsUserW';
  763. function GetCurrentHwProfile; external advapi32 name 'GetCurrentHwProfileW';
  764. function GetFileSecurity; external advapi32 name 'GetFileSecurityW';
  765. function GetUserName; external advapi32 name 'GetUserNameW';
  766. function InitiateSystemShutdown; external advapi32 name 'InitiateSystemShutdownW';
  767. function LogonUser; external advapi32 name 'LogonUserW';
  768. function LookupAccountName; external advapi32 name 'LookupAccountNameW';
  769. function LookupAccountSid; external advapi32 name 'LookupAccountSidW';
  770. function LookupPrivilegeDisplayName; external advapi32 name 'LookupPrivilegeDisplayNameW';
  771. function LookupPrivilegeName; external advapi32 name 'LookupPrivilegeNameW';
  772. function LookupPrivilegeValue; external advapi32 name 'LookupPrivilegeValueW';
  773. function ObjectCloseAuditAlarm; external advapi32 name 'ObjectCloseAuditAlarmW';
  774. function ObjectDeleteAuditAlarm; external advapi32 name 'ObjectDeleteAuditAlarmW';
  775. function ObjectOpenAuditAlarm; external advapi32 name 'ObjectOpenAuditAlarmW';
  776. function ObjectPrivilegeAuditAlarm; external advapi32 name 'ObjectPrivilegeAuditAlarmW';
  777. function OpenBackupEventLog; external advapi32 name 'OpenBackupEventLogW';
  778. function OpenEventLog; external advapi32 name 'OpenEventLogW';
  779. function PrivilegedServiceAuditAlarm; external advapi32 name 'PrivilegedServiceAuditAlarmW';
  780. function ReadEventLog; external advapi32 name 'ReadEventLogW';
  781. function RegConnectRegistry; external advapi32 name 'RegConnectRegistryW';
  782. function RegCreateKey; external advapi32 name 'RegCreateKeyW';
  783. function RegCreateKeyEx; external advapi32 name 'RegCreateKeyExW';
  784. function RegDeleteKey; external advapi32 name 'RegDeleteKeyW';
  785. function RegDeleteValue; external advapi32 name 'RegDeleteValueW';
  786. function RegEnumKeyEx; external advapi32 name 'RegEnumKeyExW';
  787. function RegEnumKey; external advapi32 name 'RegEnumKeyW';
  788. function RegEnumValue; external advapi32 name 'RegEnumValueW';
  789. function RegLoadKey; external advapi32 name 'RegLoadKeyW';
  790. function RegOpenKey; external advapi32 name 'RegOpenKeyW';
  791. function RegOpenKeyEx; external advapi32 name 'RegOpenKeyExW';
  792. function RegQueryInfoKey; external advapi32 name 'RegQueryInfoKeyW';
  793. function RegQueryMultipleValues; external advapi32 name 'RegQueryMultipleValuesW';
  794. function RegQueryValue; external advapi32 name 'RegQueryValueW';
  795. function RegQueryValueEx; external advapi32 name 'RegQueryValueExW';
  796. function RegReplaceKey; external advapi32 name 'RegReplaceKeyW';
  797. function RegRestoreKey; external advapi32 name 'RegRestoreKeyW';
  798. function RegSaveKey; external advapi32 name 'RegSaveKeyW';
  799. function RegSetValue; external advapi32 name 'RegSetValueW';
  800. function RegSetValueEx; external advapi32 name 'RegSetValueExW';
  801. function RegUnLoadKey; external advapi32 name 'RegUnLoadKeyW';
  802. function RegisterEventSource; external advapi32 name 'RegisterEventSourceW';
  803. function ReportEvent; external advapi32 name 'ReportEventW';
  804. function SetFileSecurity; external advapi32 name 'SetFileSecurityW';
  805. function AddAtom; external kernel32 name 'AddAtomW';
  806. function BeginUpdateResource; external kernel32 name 'BeginUpdateResourceW';
  807. function BuildCommDCB; external kernel32 name 'BuildCommDCBW';
  808. function BuildCommDCBAndTimeouts; external kernel32 name 'BuildCommDCBAndTimeoutsW';
  809. function CallNamedPipe; external kernel32 name 'CallNamedPipeW';
  810. function CommConfigDialog; external kernel32 name 'CommConfigDialogW';
  811. function CompareString; external kernel32 name 'CompareStringW';
  812. function CopyFile; external kernel32 name 'CopyFileW';
  813. function CopyFileEx; external kernel32 name 'CopyFileExW';
  814. function CreateDirectory; external kernel32 name 'CreateDirectoryW';
  815. function CreateDirectoryEx; external kernel32 name 'CreateDirectoryExW';
  816. function CreateEvent; external kernel32 name 'CreateEventW';
  817. function CreateFile; external kernel32 name 'CreateFileW';
  818. function CreateFileMapping; external kernel32 name 'CreateFileMappingW';
  819. function CreateHardLink; external kernel32 name 'CreateHardLinkW';
  820. function CreateMailslot; external kernel32 name 'CreateMailslotW';
  821. function CreateNamedPipe; external kernel32 name 'CreateNamedPipeW';
  822. function CreateProcess; external kernel32 name 'CreateProcessW';
  823. function CreateSemaphore; external kernel32 name 'CreateSemaphoreW';
  824. function CreateWaitableTimer; external kernel32 name 'CreateWaitableTimerW';
  825. function DefineDosDevice; external kernel32 name 'DefineDosDeviceW';
  826. function DeleteFile; external kernel32 name 'DeleteFileW';
  827. function EndUpdateResource; external kernel32 name 'EndUpdateResourceW';
  828. function EnumCalendarInfo; external kernel32 name 'EnumCalendarInfoW';
  829. function EnumDateFormats; external kernel32 name 'EnumDateFormatsW';
  830. function EnumResourceLanguages; external kernel32 name 'EnumResourceLanguagesW';
  831. function EnumResourceNames; external kernel32 name 'EnumResourceNamesW';
  832. function EnumResourceTypes; external kernel32 name 'EnumResourceTypesW';
  833. function EnumSystemCodePages; external kernel32 name 'EnumSystemCodePagesW';
  834. function EnumSystemLocales; external kernel32 name 'EnumSystemLocalesW';
  835. function EnumTimeFormats; external kernel32 name 'EnumTimeFormatsW';
  836. function ExpandEnvironmentStrings; external kernel32 name 'ExpandEnvironmentStringsW';
  837. procedure FatalAppExit; external kernel32 name 'FatalAppExitW';
  838. function FillConsoleOutputCharacter; external kernel32 name 'FillConsoleOutputCharacterW';
  839. function FindAtom; external kernel32 name 'FindAtomW';
  840. function FindFirstChangeNotification; external kernel32 name 'FindFirstChangeNotificationW';
  841. function FindFirstFile; external kernel32 name 'FindFirstFileW';
  842. function FindFirstFileEx; external kernel32 name 'FindFirstFileExW';
  843. function FindNextFile; external kernel32 name 'FindNextFileW';
  844. function FindResource; external kernel32 name 'FindResourceW';
  845. function FindResourceEx; external kernel32 name 'FindResourceExW';
  846. function FoldString; external kernel32 name 'FoldStringW';
  847. function FormatMessage; external kernel32 name 'FormatMessageW';
  848. function FreeEnvironmentStrings; external kernel32 name 'FreeEnvironmentStringsW';
  849. function GetAtomName; external kernel32 name 'GetAtomNameW';
  850. function GetBinaryType; external kernel32 name 'GetBinaryTypeW';
  851. function GetCommandLine; external kernel32 name 'GetCommandLineW';
  852. function GetCompressedFileSize; external kernel32 name 'GetCompressedFileSizeW';
  853. function GetComputerName; external kernel32 name 'GetComputerNameW';
  854. function GetConsoleTitle; external kernel32 name 'GetConsoleTitleW';
  855. function GetCurrencyFormat; external kernel32 name 'GetCurrencyFormatW';
  856. function GetCurrentDirectory; external kernel32 name 'GetCurrentDirectoryW';
  857. function GetDateFormat; external kernel32 name 'GetDateFormatW';
  858. function GetDefaultCommConfig; external kernel32 name 'GetDefaultCommConfigW';
  859. function GetDiskFreeSpace; external kernel32 name 'GetDiskFreeSpaceW';
  860. function GetDiskFreeSpaceEx; external kernel32 name 'GetDiskFreeSpaceExW';
  861. function GetDriveType; external kernel32 name 'GetDriveTypeW';
  862. function GetEnvironmentStrings; external kernel32 name 'GetEnvironmentStringsW';
  863. function GetEnvironmentVariable(lpName: PKOLChar; lpBuffer: PKOLChar;
  864. nSize: DWORD): DWORD; external kernel32 name 'GetEnvironmentVariableW';
  865. function GetFileAttributes; external kernel32 name 'GetFileAttributesW';
  866. function GetFileAttributesEx; external kernel32 name 'GetFileAttributesExW';
  867. function GetFullPathName; external kernel32 name 'GetFullPathNameW';
  868. function GetLocaleInfo; external kernel32 name 'GetLocaleInfoW';
  869. function GetLogicalDriveStrings; external kernel32 name 'GetLogicalDriveStringsW';
  870. function GetModuleFileName; external kernel32 name 'GetModuleFileNameW';
  871. function GetModuleHandle; external kernel32 name 'GetModuleHandleW';
  872. function GetNamedPipeHandleState; external kernel32 name 'GetNamedPipeHandleStateW';
  873. function GetNumberFormat; external kernel32 name 'GetNumberFormatW';
  874. function GetPrivateProfileInt; external kernel32 name 'GetPrivateProfileIntW';
  875. function GetPrivateProfileSection; external kernel32 name 'GetPrivateProfileSectionW';
  876. function GetPrivateProfileSectionNames; external kernel32 name 'GetPrivateProfileSectionNamesW';
  877. function GetPrivateProfileString; external kernel32 name 'GetPrivateProfileStringW';
  878. function GetProfileInt; external kernel32 name 'GetProfileIntW';
  879. function GetProfileSection; external kernel32 name 'GetProfileSectionW';
  880. function GetProfileString; external kernel32 name 'GetProfileStringW';
  881. function GetShortPathName; external kernel32 name 'GetShortPathNameW';
  882. procedure GetStartupInfo; external kernel32 name 'GetStartupInfoW';
  883. function GetStringTypeEx; external kernel32 name 'GetStringTypeExW';
  884. function GetSystemDirectory; external kernel32 name 'GetSystemDirectoryW';
  885. function GetTempFileName; external kernel32 name 'GetTempFileNameW';
  886. function GetTempPath; external kernel32 name 'GetTempPathW';
  887. function GetTimeFormat; external kernel32 name 'GetTimeFormatW';
  888. function GetVersionEx; external kernel32 name 'GetVersionExW';
  889. function GetVolumeInformation; external kernel32 name 'GetVolumeInformationW';
  890. function GetWindowsDirectory; external kernel32 name 'GetWindowsDirectoryW';
  891. function GlobalAddAtom; external kernel32 name 'GlobalAddAtomW';
  892. function GlobalFindAtom; external kernel32 name 'GlobalFindAtomW';
  893. function GlobalGetAtomName; external kernel32 name 'GlobalGetAtomNameW';
  894. function IsBadStringPtr; external kernel32 name 'IsBadStringPtrW';
  895. function LCMapString; external kernel32 name 'LCMapStringW';
  896. function LoadLibrary; external kernel32 name 'LoadLibraryW';
  897. function LoadLibraryEx; external kernel32 name 'LoadLibraryExW';
  898. function MoveFile; external kernel32 name 'MoveFileW';
  899. function MoveFileEx; external kernel32 name 'MoveFileExW';
  900. function MoveFileWithProgress; external kernel32 name 'MoveFileWithProgressW';
  901. function OpenEvent; external kernel32 name 'OpenEventW';
  902. function OpenFileMapping; external kernel32 name 'OpenFileMappingW';
  903. function OpenMutex; external kernel32 name 'OpenMutexW';
  904. function OpenSemaphore; external kernel32 name 'OpenSemaphoreW';
  905. function OpenWaitableTimer; external kernel32 name 'OpenWaitableTimerW';
  906. procedure OutputDebugString; external kernel32 name 'OutputDebugStringW';
  907. function PeekConsoleInput; external kernel32 name 'PeekConsoleInputW';
  908. function QueryDosDevice; external kernel32 name 'QueryDosDeviceW';
  909. function QueryRecoveryAgents; external kernel32 name 'QueryRecoveryAgentsW';
  910. function ReadConsole; external kernel32 name 'ReadConsoleW';
  911. function ReadConsoleInput; external kernel32 name 'ReadConsoleInputW';
  912. function ReadConsoleOutput; external kernel32 name 'ReadConsoleOutputW';
  913. function ReadConsoleOutputCharacter; external kernel32 name 'ReadConsoleOutputCharacterW';
  914. function RemoveDirectory; external kernel32 name 'RemoveDirectoryW';
  915. function ScrollConsoleScreenBuffer; external kernel32 name 'ScrollConsoleScreenBufferW';
  916. function SearchPath; external kernel32 name 'SearchPathW';
  917. function SetComputerName; external kernel32 name 'SetComputerNameW';
  918. function SetConsoleTitle; external kernel32 name 'SetConsoleTitleW';
  919. function SetCurrentDirectory; external kernel32 name 'SetCurrentDirectoryW';
  920. function SetDefaultCommConfig; external kernel32 name 'SetDefaultCommConfigW';
  921. function SetEnvironmentVariable; external kernel32 name 'SetEnvironmentVariableW';
  922. function SetFileAttributes; external kernel32 name 'SetFileAttributesW';
  923. function SetLocaleInfo; external kernel32 name 'SetLocaleInfoW';
  924. function SetVolumeLabel; external kernel32 name 'SetVolumeLabelW';
  925. function UpdateResource; external kernel32 name 'UpdateResourceW';
  926. function VerLanguageName; external kernel32 name 'VerLanguageNameW';
  927. function WaitNamedPipe; external kernel32 name 'WaitNamedPipeW';
  928. function WriteConsole; external kernel32 name 'WriteConsoleW';
  929. function WriteConsoleInput; external kernel32 name 'WriteConsoleInputW';
  930. function WriteConsoleOutput; external kernel32 name 'WriteConsoleOutputW';
  931. function WriteConsoleOutputCharacter; external kernel32 name 'WriteConsoleOutputCharacterW';
  932. function WritePrivateProfileSection; external kernel32 name 'WritePrivateProfileSectionW';
  933. function WritePrivateProfileString; external kernel32 name 'WritePrivateProfileStringW';
  934. function WriteProfileSection; external kernel32 name 'WriteProfileSectionW';
  935. function WriteProfileString; external kernel32 name 'WriteProfileStringW';
  936. function lstrcat; external kernel32 name 'lstrcatW';
  937. function lstrcmp; external kernel32 name 'lstrcmpW';
  938. function lstrcmpi; external kernel32 name 'lstrcmpiW';
  939. function lstrcpy; external kernel32 name 'lstrcpyW';
  940. function lstrcpyn; external kernel32 name 'lstrcpynW';
  941. function lstrlen; external kernel32 name 'lstrlenW';
  942. function MultinetGetConnectionPerformance; external mpr name 'MultinetGetConnectionPerformanceW';
  943. function WNetAddConnection2; external mpr name 'WNetAddConnection2W';
  944. function WNetAddConnection3; external mpr name 'WNetAddConnection3W';
  945. function WNetAddConnection; external mpr name 'WNetAddConnectionW';
  946. function WNetCancelConnection2; external mpr name 'WNetCancelConnection2W';
  947. function WNetCancelConnection; external mpr name 'WNetCancelConnectionW';
  948. function WNetConnectionDialog1; external mpr name 'WNetConnectionDialog1W';
  949. function WNetDisconnectDialog1; external mpr name 'WNetDisconnectDialog1W';
  950. function WNetEnumResource; external mpr name 'WNetEnumResourceW';
  951. function WNetGetConnection; external mpr name 'WNetGetConnectionW';
  952. function WNetGetLastError; external mpr name 'WNetGetLastErrorW';
  953. function WNetGetNetworkInformation; external mpr name 'WNetGetNetworkInformationW';
  954. function WNetGetProviderName; external mpr name 'WNetGetProviderNameW';
  955. function WNetGetResourceParent; external mpr name 'WNetGetResourceParentW';
  956. function WNetGetUniversalName; external mpr name 'WNetGetUniversalNameW';
  957. function WNetGetUser; external mpr name 'WNetGetUserW';
  958. function WNetOpenEnum; external mpr name 'WNetOpenEnumW';
  959. function WNetSetConnection; external mpr name 'WNetSetConnectionW';
  960. function WNetUseConnection; external mpr name 'WNetUseConnectionW';
  961. function GetFileVersionInfo; external version name 'GetFileVersionInfoW';
  962. function GetFileVersionInfoSize; external version name 'GetFileVersionInfoSizeW';
  963. function VerFindFile; external version name 'VerFindFileW';
  964. function VerInstallFile; external version name 'VerInstallFileW';
  965. function VerQueryValue; external version name 'VerQueryValueW';
  966. function GetPrivateProfileStruct; external kernel32 name 'GetPrivateProfileStructW';
  967. function WritePrivateProfileStruct; external kernel32 name 'WritePrivateProfileStructW';
  968. function AddFontResource; external gdi32 name 'AddFontResourceW';
  969. function AddFontResourceEx; external gdi32 name 'AddFontResourceExW';
  970. function CopyEnhMetaFile; external gdi32 name 'CopyEnhMetaFileW';
  971. function CopyMetaFile; external gdi32 name 'CopyMetaFileW';
  972. function CreateColorSpace; external gdi32 name 'CreateColorSpaceW';
  973. function CreateDC; external gdi32 name 'CreateDCW';
  974. function CreateEnhMetaFile; external gdi32 name 'CreateEnhMetaFileW';
  975. function CreateFont; external gdi32 name 'CreateFontW';
  976. function CreateFontIndirect; external gdi32 name 'CreateFontIndirectW';
  977. function CreateFontIndirectEx; external gdi32 name 'CreateFontIndirectExW';
  978. function CreateIC; external gdi32 name 'CreateICW';
  979. function CreateMetaFile; external gdi32 name 'CreateMetaFileW';
  980. function CreateScalableFontResource; external gdi32 name 'CreateScalableFontResourceW';
  981. function DeviceCapabilities; external gdi32 name 'DeviceCapabilitiesW';
  982. function EnumFontFamilies; external gdi32 name 'EnumFontFamiliesW';
  983. function EnumFontFamiliesEx; external gdi32 name 'EnumFontFamiliesExW';
  984. function EnumFonts; external gdi32 name 'EnumFontsW';
  985. function EnumICMProfiles; external gdi32 name 'EnumICMProfilesW';
  986. function ExtTextOut; external gdi32 name 'ExtTextOutW';
  987. function GetCharABCWidths; external gdi32 name 'GetCharABCWidthsW';
  988. function GetCharABCWidthsFloat; external gdi32 name 'GetCharABCWidthsFloatW';
  989. function GetCharWidth32; external gdi32 name 'GetCharWidth32W';
  990. function GetCharWidth; external gdi32 name 'GetCharWidthW';
  991. function GetCharWidthFloat; external gdi32 name 'GetCharWidthFloatW';
  992. function GetCharacterPlacement; external gdi32 name 'GetCharacterPlacementW';
  993. function GetEnhMetaFile; external gdi32 name 'GetEnhMetaFileW';
  994. function GetEnhMetaFileDescription; external gdi32 name 'GetEnhMetaFileDescriptionW';
  995. function GetGlyphIndices; external gdi32 name 'GetGlyphIndicesW';
  996. function GetGlyphOutline; external gdi32 name 'GetGlyphOutlineW';
  997. function GetICMProfile; external gdi32 name 'GetICMProfileW';
  998. function GetLogColorSpace; external gdi32 name 'GetLogColorSpaceW';
  999. function GetMetaFile; external gdi32 name 'GetMetaFileW';
  1000. function GetObject; external gdi32 name 'GetObjectW';
  1001. function GetOutlineTextMetrics; external gdi32 name 'GetOutlineTextMetricsW';
  1002. function GetTextExtentExPoint; external gdi32 name 'GetTextExtentExPointW';
  1003. function GetTextExtentPoint32; external gdi32 name 'GetTextExtentPoint32W';
  1004. function GetTextExtentPoint; external gdi32 name 'GetTextExtentPointW';
  1005. function GetTextFace; external gdi32 name 'GetTextFaceW';
  1006. function GetTextMetrics; external gdi32 name 'GetTextMetricsW';
  1007. function PolyTextOut; external gdi32 name 'PolyTextOutW';
  1008. function RemoveFontResource; external gdi32 name 'RemoveFontResourceW';
  1009. function RemoveFontResourceEx; external gdi32 name 'RemoveFontResourceExW';
  1010. function ResetDC; external gdi32 name 'ResetDCW';
  1011. function SetICMProfile; external gdi32 name 'SetICMProfileW';
  1012. function StartDoc; external gdi32 name 'StartDocW';
  1013. function TextOut; external gdi32 name 'TextOutW';
  1014. function UpdateICMRegKey; external gdi32 name 'UpdateICMRegKeyW';
  1015. function wglUseFontBitmaps; external opengl32 name 'wglUseFontBitmapsW';
  1016. function wglUseFontOutlines; external opengl32 name 'wglUseFontOutlinesW';
  1017. function AnsiToOem; external user32 name 'CharToOemW';
  1018. function AnsiToOemBuff; external user32 name 'CharToOemBuffW';
  1019. function AnsiUpper; external user32 name 'CharUpperW';
  1020. function AnsiUpperBuff; external user32 name 'CharUpperBuffW';
  1021. function AnsiLower; external user32 name 'CharLowerW';
  1022. function AnsiLowerBuff; external user32 name 'CharLowerBuffW';
  1023. function AnsiNext; external user32 name 'CharNextW';
  1024. function AnsiPrev; external user32 name 'CharPrevW';
  1025. function AppendMenu; external user32 name 'AppendMenuW';
  1026. //function BroadcastSystemMessage; external user32 name 'BroadcastSystemMessageW';
  1027. //function BroadcastSystemMessageW; external user32 name 'BroadcastSystemMessageW';
  1028. function CallMsgFilter; external user32 name 'CallMsgFilterW';
  1029. function CallWindowProc; external user32 name 'CallWindowProcW';
  1030. function ChangeDisplaySettings; external user32 name 'ChangeDisplaySettingsW';
  1031. function ChangeDisplaySettingsEx; external user32 name 'ChangeDisplaySettingsExW';
  1032. function ChangeMenu; external user32 name 'ChangeMenuW';
  1033. function CharLower; external user32 name 'CharLowerW';
  1034. function CharLowerBuff; external user32 name 'CharLowerBuffW';
  1035. function CharNext; external user32 name 'CharNextW';
  1036. function CharNextEx; external user32 name 'CharNextExW';
  1037. function CharPrev; external user32 name 'CharPrevW';
  1038. function CharPrevEx; external user32 name 'CharPrevExW';
  1039. function CharToOem; external user32 name 'CharToOemW';
  1040. function CharToOemBuff; external user32 name 'CharToOemBuffW';
  1041. function CharUpper; external user32 name 'CharUpperW';
  1042. function CharUpperBuff; external user32 name 'CharUpperBuffW';
  1043. function CopyAcceleratorTable; external user32 name 'CopyAcceleratorTableW';
  1044. function CreateAcceleratorTable; external user32 name 'CreateAcceleratorTableW';
  1045. function CreateDesktop; external user32 name 'CreateDesktopW';
  1046. function CreateDialogIndirectParam; external user32 name 'CreateDialogIndirectParamW';
  1047. function CreateDialogParam; external user32 name 'CreateDialogParamW';
  1048. function CreateMDIWindow; external user32 name 'CreateMDIWindowW';
  1049. function CreateWindowEx; external user32 name 'CreateWindowExW';
  1050. function CreateWindowStation; external user32 name 'CreateWindowStationW';
  1051. function DefDlgProc; external user32 name 'DefDlgProcW';
  1052. function DefFrameProc; external user32 name 'DefFrameProcW';
  1053. function DefMDIChildProc; external user32 name 'DefMDIChildProcW';
  1054. function DefWindowProc; external user32 name 'DefWindowProcW';
  1055. function DialogBoxIndirectParam; external user32 name 'DialogBoxIndirectParamW';
  1056. function DialogBoxParam; external user32 name 'DialogBoxParamW';
  1057. function DispatchMessage; external user32 name 'DispatchMessageW';
  1058. function DlgDirList; external user32 name 'DlgDirListW';
  1059. function DlgDirListComboBox; external user32 name 'DlgDirListComboBoxW';
  1060. function DlgDirSelectComboBoxEx; external user32 name 'DlgDirSelectComboBoxExW';
  1061. function DlgDirSelectEx; external user32 name 'DlgDirSelectExW';
  1062. function DrawState; external user32 name 'DrawStateW';
  1063. function DrawText; external user32 name 'DrawTextW';
  1064. function DrawTextEx; external user32 name 'DrawTextExW';
  1065. function EnumDesktops; external user32 name 'EnumDesktopsW';
  1066. function EnumDisplaySettings; external user32 name 'EnumDisplaySettingsW';
  1067. function EnumDisplayDevices; external user32 name 'EnumDisplayDevicesW';
  1068. function EnumProps; external user32 name 'EnumPropsW';
  1069. function EnumPropsEx; external user32 name 'EnumPropsExW';
  1070. function EnumWindowStations; external user32 name 'EnumWindowStationsW';
  1071. function FindWindow; external user32 name 'FindWindowW';
  1072. function FindWindowEx; external user32 name 'FindWindowExW';
  1073. function GetAltTabInfo; external user32 name 'GetAltTabInfoW';
  1074. function GetClassInfo; external user32 name 'GetClassInfoW';
  1075. function GetClassInfoEx; external user32 name 'GetClassInfoExW';
  1076. function GetClassLong; external user32 name 'GetClassLongW';
  1077. function GetClassName; external user32 name 'GetClassNameW';
  1078. function GetClipboardFormatName; external user32 name 'GetClipboardFormatNameW';
  1079. function GetDlgItemText; external user32 name 'GetDlgItemTextW';
  1080. function GetKeyNameText; external user32 name 'GetKeyNameTextW';
  1081. function GetKeyboardLayoutName; external user32 name 'GetKeyboardLayoutNameW';
  1082. function GetMenuItemInfo; external user32 name 'GetMenuItemInfoW';
  1083. function GetMenuString; external user32 name 'GetMenuStringW';
  1084. function GetMessage; external user32 name 'GetMessageW';
  1085. function GetProp; external user32 name 'GetPropW';
  1086. function GetTabbedTextExtent; external user32 name 'GetTabbedTextExtentW';
  1087. function GetUserObjectInformation; external user32 name 'GetUserObjectInformationW';
  1088. function GetWindowLong; external user32 name 'GetWindowLongW';
  1089. function GetWindowModuleFileName; external user32 name 'GetWindowModuleFileNameW';
  1090. function GetWindowText; external user32 name 'GetWindowTextW';
  1091. function GetWindowTextLength; external user32 name 'GetWindowTextLengthW';
  1092. function GrayString; external user32 name 'GrayStringW';
  1093. function InsertMenu; external user32 name 'InsertMenuW';
  1094. function InsertMenuItem; external user32 name 'InsertMenuItemW';
  1095. function IsCharAlpha; external user32 name 'IsCharAlphaW';
  1096. function IsCharAlphaNumeric; external user32 name 'IsCharAlphaNumericW';
  1097. function IsCharLower; external user32 name 'IsCharLowerW';
  1098. function IsCharUpper; external user32 name 'IsCharUpperW';
  1099. function IsDialogMessage; external user32 name 'IsDialogMessageW';
  1100. function LoadAccelerators; external user32 name 'LoadAcceleratorsW';
  1101. function LoadBitmap; external user32 name 'LoadBitmapW';
  1102. function LoadCursor; external user32 name 'LoadCursorW';
  1103. function LoadCursorFromFile; external user32 name 'LoadCursorFromFileW';
  1104. function LoadIcon; external user32 name 'LoadIconW';
  1105. function LoadImage; external user32 name 'LoadImageW';
  1106. function LoadKeyboardLayout; external user32 name 'LoadKeyboardLayoutW';
  1107. function LoadMenu; external user32 name 'LoadMenuW';
  1108. function LoadMenuIndirect; external user32 name 'LoadMenuIndirectW';
  1109. function LoadString; external user32 name 'LoadStringW';
  1110. function MapVirtualKey; external user32 name 'MapVirtualKeyW';
  1111. function MapVirtualKeyEx; external user32 name 'MapVirtualKeyExW';
  1112. function MessageBox; external user32 name 'MessageBoxW';
  1113. function MessageBoxEx; external user32 name 'MessageBoxExW';
  1114. function MessageBoxIndirect; external user32 name 'MessageBoxIndirectW';
  1115. function ModifyMenu; external user32 name 'ModifyMenuW';
  1116. function OemToAnsi; external user32 name 'OemToCharW';
  1117. function OemToAnsiBuff; external user32 name 'OemToCharBuffW';
  1118. function OemToChar; external user32 name 'OemToCharW';
  1119. function OemToCharBuff; external user32 name 'OemToCharBuffW';
  1120. function OpenDesktop; external user32 name 'OpenDesktopW';
  1121. function OpenWindowStation; external user32 name 'OpenWindowStationW';
  1122. function PeekMessage; external user32 name 'PeekMessageW';
  1123. function PostMessage; external user32 name 'PostMessageW';
  1124. function PostThreadMessage; external user32 name 'PostThreadMessageW';
  1125. function RealGetWindowClass; external user32 name 'RealGetWindowClassW';
  1126. function RegisterClass; external user32 name 'RegisterClassW';
  1127. function RegisterClassEx; external user32 name 'RegisterClassExW';
  1128. function RegisterClipboardFormat; external user32 name 'RegisterClipboardFormatW';
  1129. function RegisterDeviceNotification; external user32 name 'RegisterDeviceNotificationW';
  1130. function RegisterWindowMessage; external user32 name 'RegisterWindowMessageW';
  1131. function RemoveProp; external user32 name 'RemovePropW';
  1132. function SendDlgItemMessage; external user32 name 'SendDlgItemMessageW';
  1133. function SendMessage; external user32 name 'SendMessageW';
  1134. function SendMessageCallback; external user32 name 'SendMessageCallbackW';
  1135. function SendMessageTimeout; external user32 name 'SendMessageTimeoutW';
  1136. function SendNotifyMessage; external user32 name 'SendNotifyMessageW';
  1137. function SetClassLong; external user32 name 'SetClassLongW';
  1138. function SetDlgItemText; external user32 name 'SetDlgItemTextW';
  1139. function SetMenuItemInfo; external user32 name 'SetMenuItemInfoW';
  1140. function SetProp; external user32 name 'SetPropW';
  1141. function SetUserObjectInformation; external user32 name 'SetUserObjectInformationW';
  1142. function SetWindowLong; external user32 name 'SetWindowLongW';
  1143. function SetWindowText; external user32 name 'SetWindowTextW';
  1144. function SetWindowsHook; external user32 name 'SetWindowsHookW';
  1145. function SetWindowsHookEx; external user32 name 'SetWindowsHookExW';
  1146. function SystemParametersInfo; external user32 name 'SystemParametersInfoW';
  1147. function TabbedTextOut; external user32 name 'TabbedTextOutW';
  1148. function TranslateAccelerator; external user32 name 'TranslateAcceleratorW';
  1149. function UnregisterClass; external user32 name 'UnregisterClassW';
  1150. function VkKeyScan; external user32 name 'VkKeyScanW';
  1151. function VkKeyScanEx; external user32 name 'VkKeyScanExW';
  1152. function WinHelp; external user32 name 'WinHelpW';
  1153. function wsprintf; external user32 name 'wsprintfW';
  1154. function wvsprintf; external user32 name 'wvsprintfW';
  1155. {$ENDIF implementation_part} ///////////////////////////////////////////////////