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.

61 lines
1.5 KiB

  1. //
  2. // uwrap2.h
  3. //
  4. // Phase2 Unicode wrappers for Win32 API
  5. // (included after ATL headers are processed)
  6. //
  7. // Inlucde this header to redirect any W calls
  8. // to wrappers that dynamically convert to ANSI
  9. // and call the A versions on non-unicode platforms
  10. //
  11. // Unlike the shlwapi wrappers which create a DLL
  12. // of wrapper functions, the ts uniwrappers work
  13. // by redefining functions to call into our wrapped
  14. // versions.
  15. //
  16. // Copyright(C) Microsoft Corporation 2000
  17. // Author: Nadim Abdo (nadima)
  18. //
  19. //
  20. #ifndef _uwrap2_h_
  21. #define _uwrap2_h_
  22. //Don't wrap on WIN64 as there is no Win9x (thankfully).
  23. #if defined(UNICODE) && !defined(_WIN64)
  24. //Group replacement wraps by module
  25. //these were autogenerated by genwrap.pl
  26. //Define this to avoid replacing, i.e just
  27. //include the wrap function definitions.
  28. //Need to do this in the implementation class.
  29. // this is a hack around ATL problems:
  30. // Wrap in two phases, second phase
  31. // wrap is after including ATL headers
  32. // that have member function names that conflict
  33. // with win32 APIs.
  34. //
  35. #ifndef DONOT_REPLACE_WITH_WRAPPERS
  36. #ifdef GetClassInfo
  37. #undef GetClassInfo
  38. #endif
  39. #define GetClassInfo GetClassInfoWrapW
  40. #ifdef TranslateAccelerator
  41. #undef TranslateAccelerator
  42. #endif
  43. #define TranslateAccelerator TranslateAcceleratorWrapW
  44. #ifdef StrRetToStr
  45. #undef StrRetToStr
  46. #endif
  47. #define StrRetToStr StrRetToStrWrapW
  48. #endif //DONOT_REPLACE_WITH_WRAPPERS
  49. #endif //defined(UNICODE) && !defined(_WIN64)
  50. #endif //_uwrap2_h_