Source code of Windows XP (NT5)
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.

127 lines
4.5 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: uapi.h
  4. //
  5. // Module: UAPIINIT.LIB
  6. //
  7. // Synopsis: This header file contains the extern declarations of all the UAPI
  8. // function pointers declared in the uapiinit.lib. The idea for this
  9. // dll was borrowed from F. Avery Bishop's April 1999 MSJ article
  10. // "Design a Single Unicode App that Runs on Both Windows 98 and Windows 2000"
  11. //
  12. // Copyright (c) 1999 Microsoft Corporation
  13. //
  14. // Author: quintinb Created 04/25/99
  15. //
  16. //+----------------------------------------------------------------------------
  17. #ifndef _UAPIH
  18. // Uncomment this line to emmulate Windows 98 behavior when developing on
  19. // Windows NT
  20. //#define EMULATE9X
  21. #include "cmutoa.h"
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif /* __cplusplus */
  25. extern UAPI_CallWindowProc CallWindowProcU;
  26. extern UAPI_CharLower CharLowerU;
  27. extern UAPI_CharPrev CharPrevU;
  28. extern UAPI_CharNext CharNextU;
  29. extern UAPI_CharUpper CharUpperU;
  30. extern UAPI_CreateDialogParam CreateDialogParamU;
  31. extern UAPI_CreateDirectory CreateDirectoryU;
  32. extern UAPI_CreateEvent CreateEventU;
  33. extern UAPI_CreateFile CreateFileU;
  34. extern UAPI_CreateFileMapping CreateFileMappingU;
  35. extern UAPI_CreateMutex CreateMutexU;
  36. extern UAPI_CreateProcess CreateProcessU;
  37. extern UAPI_CreateWindowEx CreateWindowExU;
  38. extern UAPI_DefWindowProc DefWindowProcU;
  39. extern UAPI_DeleteFile DeleteFileU;
  40. extern UAPI_DialogBoxParam DialogBoxParamU;
  41. extern UAPI_DispatchMessage DispatchMessageU;
  42. extern UAPI_ExpandEnvironmentStrings ExpandEnvironmentStringsU;
  43. extern UAPI_FindResourceEx FindResourceExU;
  44. extern UAPI_FindWindowEx FindWindowExU;
  45. extern UAPI_GetClassLong GetClassLongU;
  46. extern UAPI_GetDateFormat GetDateFormatU;
  47. extern UAPI_GetDlgItemText GetDlgItemTextU;
  48. extern UAPI_GetFileAttributes GetFileAttributesU;
  49. extern UAPI_GetMessage GetMessageU;
  50. extern UAPI_GetModuleFileName GetModuleFileNameU;
  51. extern UAPI_GetModuleHandle GetModuleHandleU;
  52. extern UAPI_GetPrivateProfileInt GetPrivateProfileIntU;
  53. extern UAPI_GetPrivateProfileString GetPrivateProfileStringU;
  54. extern UAPI_GetStringTypeEx GetStringTypeExU;
  55. extern UAPI_GetSystemDirectory GetSystemDirectoryU;
  56. extern UAPI_GetTempFileName GetTempFileNameU;
  57. extern UAPI_GetTempPath GetTempPathU;
  58. extern UAPI_GetTimeFormat GetTimeFormatU;
  59. extern UAPI_GetUserName GetUserNameU;
  60. extern UAPI_GetVersionEx GetVersionExU;
  61. extern UAPI_GetWindowLong GetWindowLongU;
  62. extern UAPI_GetWindowText GetWindowTextU;
  63. extern UAPI_GetWindowTextLength GetWindowTextLengthU;
  64. extern UAPI_InsertMenu InsertMenuU;
  65. extern UAPI_IsDialogMessage IsDialogMessageU;
  66. extern UAPI_LoadCursor LoadCursorU;
  67. extern UAPI_LoadIcon LoadIconU;
  68. extern UAPI_LoadImage LoadImageU;
  69. extern UAPI_LoadLibraryEx LoadLibraryExU;
  70. extern UAPI_LoadMenu LoadMenuU;
  71. extern UAPI_LoadString LoadStringU;
  72. extern UAPI_lstrcat lstrcatU;
  73. extern UAPI_lstrcmp lstrcmpU;
  74. extern UAPI_lstrcmpi lstrcmpiU;
  75. extern UAPI_lstrcpy lstrcpyU;
  76. extern UAPI_lstrcpyn lstrcpynU;
  77. extern UAPI_lstrlen lstrlenU;
  78. extern UAPI_OpenEvent OpenEventU;
  79. extern UAPI_OpenFileMapping OpenFileMappingU;
  80. extern UAPI_PeekMessage PeekMessageU;
  81. extern UAPI_PostMessage PostMessageU;
  82. extern UAPI_PostThreadMessage PostThreadMessageU;
  83. extern UAPI_RegCreateKeyEx RegCreateKeyExU;
  84. extern UAPI_RegDeleteKey RegDeleteKeyU;
  85. extern UAPI_RegDeleteValue RegDeleteValueU;
  86. extern UAPI_RegEnumKeyEx RegEnumKeyExU;
  87. extern UAPI_RegisterClassEx RegisterClassExU;
  88. extern UAPI_RegisterWindowMessage RegisterWindowMessageU;
  89. extern UAPI_RegOpenKeyEx RegOpenKeyExU;
  90. extern UAPI_RegQueryValueEx RegQueryValueExU;
  91. extern UAPI_RegSetValueEx RegSetValueExU;
  92. extern UAPI_SearchPath SearchPathU;
  93. extern UAPI_SendDlgItemMessage SendDlgItemMessageU;
  94. extern UAPI_SendMessage SendMessageU;
  95. extern UAPI_SetCurrentDirectory SetCurrentDirectoryU;
  96. extern UAPI_SetDlgItemText SetDlgItemTextU;
  97. extern UAPI_SetWindowLong SetWindowLongU;
  98. extern UAPI_SetWindowText SetWindowTextU;
  99. extern UAPI_UnregisterClass UnregisterClassU;
  100. extern UAPI_WinHelp WinHelpU;
  101. extern UAPI_wsprintf wsprintfU;
  102. extern UAPI_WritePrivateProfileString WritePrivateProfileStringU;
  103. extern UAPI_wvsprintf wvsprintfU;
  104. // Implemented as a macro, just as DialogBoxW is on Windows NT
  105. #define DialogBoxU(hInstance, lpTemplate, hWndParent, lpDialogFunc ) \
  106. DialogBoxParamU(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)
  107. //
  108. // External function prototypes. The client of the Unicode API calls this to
  109. // set the pointer functions as appropriate
  110. //
  111. BOOL InitUnicodeAPI();
  112. BOOL UnInitUnicodeAPI();
  113. #ifdef __cplusplus
  114. }
  115. #endif /* __cplusplus */
  116. #define _UAPIH
  117. #endif