Leaked source code of windows server 2003
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.

128 lines
4.7 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_CompareString CompareStringU;
  31. extern UAPI_CreateDialogParam CreateDialogParamU;
  32. extern UAPI_CreateDirectory CreateDirectoryU;
  33. extern UAPI_CreateEvent CreateEventU;
  34. extern UAPI_CreateFile CreateFileU;
  35. extern UAPI_CreateFileMapping CreateFileMappingU;
  36. extern UAPI_CreateMutex CreateMutexU;
  37. extern UAPI_CreateProcess CreateProcessU;
  38. extern UAPI_CreateWindowEx CreateWindowExU;
  39. extern UAPI_DefWindowProc DefWindowProcU;
  40. extern UAPI_DeleteFile DeleteFileU;
  41. extern UAPI_DialogBoxParam DialogBoxParamU;
  42. extern UAPI_DispatchMessage DispatchMessageU;
  43. extern UAPI_ExpandEnvironmentStrings ExpandEnvironmentStringsU;
  44. extern UAPI_FindResourceEx FindResourceExU;
  45. extern UAPI_FindWindowEx FindWindowExU;
  46. extern UAPI_GetClassLong GetClassLongU;
  47. extern UAPI_GetDateFormat GetDateFormatU;
  48. extern UAPI_GetDlgItemText GetDlgItemTextU;
  49. extern UAPI_GetFileAttributes GetFileAttributesU;
  50. extern UAPI_GetMessage GetMessageU;
  51. extern UAPI_GetModuleFileName GetModuleFileNameU;
  52. extern UAPI_GetModuleHandle GetModuleHandleU;
  53. extern UAPI_GetPrivateProfileInt GetPrivateProfileIntU;
  54. extern UAPI_GetPrivateProfileString GetPrivateProfileStringU;
  55. extern UAPI_GetStringTypeEx GetStringTypeExU;
  56. extern UAPI_GetSystemDirectory GetSystemDirectoryU;
  57. extern UAPI_GetTempFileName GetTempFileNameU;
  58. extern UAPI_GetTempPath GetTempPathU;
  59. extern UAPI_GetTimeFormat GetTimeFormatU;
  60. extern UAPI_GetUserName GetUserNameU;
  61. extern UAPI_GetVersionEx GetVersionExU;
  62. extern UAPI_GetWindowLong GetWindowLongU;
  63. extern UAPI_GetWindowText GetWindowTextU;
  64. extern UAPI_GetWindowTextLength GetWindowTextLengthU;
  65. extern UAPI_InsertMenu InsertMenuU;
  66. extern UAPI_IsDialogMessage IsDialogMessageU;
  67. extern UAPI_LoadCursor LoadCursorU;
  68. extern UAPI_LoadIcon LoadIconU;
  69. extern UAPI_LoadImage LoadImageU;
  70. extern UAPI_LoadLibraryEx LoadLibraryExU;
  71. extern UAPI_LoadMenu LoadMenuU;
  72. extern UAPI_LoadString LoadStringU;
  73. extern UAPI_lstrcat lstrcatU;
  74. extern UAPI_lstrcmp lstrcmpU;
  75. extern UAPI_lstrcmpi lstrcmpiU;
  76. extern UAPI_lstrcpy lstrcpyU;
  77. extern UAPI_lstrcpyn lstrcpynU;
  78. extern UAPI_lstrlen lstrlenU;
  79. extern UAPI_OpenEvent OpenEventU;
  80. extern UAPI_OpenFileMapping OpenFileMappingU;
  81. extern UAPI_PeekMessage PeekMessageU;
  82. extern UAPI_PostMessage PostMessageU;
  83. extern UAPI_PostThreadMessage PostThreadMessageU;
  84. extern UAPI_RegCreateKeyEx RegCreateKeyExU;
  85. extern UAPI_RegDeleteKey RegDeleteKeyU;
  86. extern UAPI_RegDeleteValue RegDeleteValueU;
  87. extern UAPI_RegEnumKeyEx RegEnumKeyExU;
  88. extern UAPI_RegisterClassEx RegisterClassExU;
  89. extern UAPI_RegisterWindowMessage RegisterWindowMessageU;
  90. extern UAPI_RegOpenKeyEx RegOpenKeyExU;
  91. extern UAPI_RegQueryValueEx RegQueryValueExU;
  92. extern UAPI_RegSetValueEx RegSetValueExU;
  93. extern UAPI_SearchPath SearchPathU;
  94. extern UAPI_SendDlgItemMessage SendDlgItemMessageU;
  95. extern UAPI_SendMessage SendMessageU;
  96. extern UAPI_SetCurrentDirectory SetCurrentDirectoryU;
  97. extern UAPI_SetDlgItemText SetDlgItemTextU;
  98. extern UAPI_SetWindowLong SetWindowLongU;
  99. extern UAPI_SetWindowText SetWindowTextU;
  100. extern UAPI_UnregisterClass UnregisterClassU;
  101. extern UAPI_WinHelp WinHelpU;
  102. extern UAPI_wsprintf wsprintfU;
  103. extern UAPI_WritePrivateProfileString WritePrivateProfileStringU;
  104. extern UAPI_wvsprintf wvsprintfU;
  105. // Implemented as a macro, just as DialogBoxW is on Windows NT
  106. #define DialogBoxU(hInstance, lpTemplate, hWndParent, lpDialogFunc ) \
  107. DialogBoxParamU(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)
  108. //
  109. // External function prototypes. The client of the Unicode API calls this to
  110. // set the pointer functions as appropriate
  111. //
  112. BOOL InitUnicodeAPI();
  113. BOOL UnInitUnicodeAPI();
  114. #ifdef __cplusplus
  115. }
  116. #endif /* __cplusplus */
  117. #define _UAPIH
  118. #endif