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.

64 lines
1.1 KiB

  1. //____________________________________________________________________________
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995 - 1996.
  5. //
  6. // File: dllwrap.h
  7. //
  8. // Contents: Wrappers for functions exported by DLLs that are loaded only
  9. // when needed.
  10. //
  11. // Classes:
  12. //
  13. // Functions:
  14. //
  15. // History: 07-Oct-96 AnirudhS Created.
  16. //
  17. //____________________________________________________________________________
  18. #ifndef _DLLWRAP_H_
  19. #define _DLLWRAP_H_
  20. //
  21. // Make this DLL use the wrappers
  22. //
  23. #define CoTaskMemAlloc WrapCoTaskMemAlloc
  24. #define CoTaskMemRealloc WrapCoTaskMemRealloc
  25. #define CoTaskMemFree WrapCoTaskMemFree
  26. LPVOID
  27. WrapCoTaskMemAlloc(
  28. ULONG cb
  29. );
  30. LPVOID
  31. WrapCoTaskMemRealloc(
  32. LPVOID pv,
  33. ULONG cb
  34. );
  35. void
  36. WrapCoTaskMemFree(
  37. LPVOID pv
  38. );
  39. FARPROC
  40. GetProcAddressInModule(
  41. LPCSTR pszFunction,
  42. LPCTSTR ptszModule
  43. );
  44. //
  45. // This was a TCHAR export on NT4/Win95, but is now xxxA/xxxW on NT5
  46. // so we wrap it.
  47. //
  48. #ifdef ILCreateFromPath
  49. STDAPI_(LPITEMIDLIST) Wrap_ILCreateFromPath(LPCTSTR pszPath);
  50. #endif
  51. #endif // _DLLWRAP_H_