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.

67 lines
1020 B

  1. /*++
  2. Copyright (c) 1989-2000 Microsoft Corporation
  3. Module Name:
  4. ShimEng.h
  5. Abstract:
  6. This is the header file for ShimEng.c which implements
  7. the shim hooking using IAT thunking.
  8. Author:
  9. clupu created 11-July-2000
  10. Revision History:
  11. --*/
  12. #ifndef _SHIMENG_IAT_H_
  13. #define _SHIMENG_IAT_H_
  14. typedef enum
  15. {
  16. dlNone = 0,
  17. dlPrint,
  18. dlError,
  19. dlWarning,
  20. dlInfo
  21. } DEBUGLEVEL;
  22. #define DEBUG_SPEW
  23. extern BOOL g_bDbgPrintEnabled;
  24. #ifdef DEBUG_SPEW
  25. void __cdecl DebugPrintfEx(DEBUGLEVEL dwDetail, LPSTR pszFmt, ...);
  26. #define DPF if (g_bDbgPrintEnabled) DebugPrintfEx
  27. #else
  28. #define DPF
  29. #endif // DEBUG_SPEW
  30. typedef PVOID (*PFNRTLALLOCATEHEAP)(
  31. IN PVOID HeapHandle,
  32. IN ULONG Flags,
  33. IN SIZE_T Size
  34. );
  35. typedef BOOLEAN (*PFNRTLFREEHEAP)(
  36. IN PVOID HeapHandle,
  37. IN ULONG Flags,
  38. IN PVOID BaseAddress
  39. );
  40. void
  41. NotifyShimDlls(
  42. void
  43. );
  44. #endif // _SHIMENG_IAT_H_