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.

48 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2000-2001, Microsoft Corporation All rights reserved.
  3. Module Name:
  4. util.h
  5. Abstract:
  6. Header over util.c
  7. APIs found in this file:
  8. Revision History:
  9. 7 Nov 2000 v-michka Created.
  10. --*/
  11. #ifndef UTIL_H
  12. #define UTIL_H
  13. // helpful utility macros
  14. #define FILES_CPG (AreFileApisANSI() ? g_acp : g_oemcp)
  15. // Misc. helpful utility functions
  16. UINT CpgFromLocale(LCID Locale);
  17. UINT CpgOemFromLocale(LCID Locale);
  18. UINT CbPerChOfCpg(UINT cpg);
  19. UINT MiniAtoI(const char * lpsz);
  20. UINT CpgFromHdc(HDC hdc);
  21. size_t cchUnicodeMultiSz(LPCWSTR lpsz);
  22. size_t cbAnsiMultiSz(LPCSTR lpsz);
  23. // Our handle/function grabbers. I am afraid to call them
  24. // "helpers" since we never free the dlls that they load.
  25. HMODULE GetUserHandle(void);
  26. HMODULE GetComDlgHandle(void);
  27. HMODULE GetGB18030Handle(void);
  28. FARPROC GetKernelProc(LPCSTR Function);
  29. FARPROC GetUserProc(LPCSTR Function);
  30. FARPROC GetAdvapiProc(LPCSTR Function);
  31. FARPROC GetOleAccProc(LPCSTR Function);
  32. FARPROC GetSensApiProc(LPCSTR Function);
  33. FARPROC GetRasProc(LPCSTR Function);
  34. #endif // UTIL_H