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.

56 lines
877 B

  1. /*******************************************************************
  2. *
  3. * File : util.hxx
  4. * Author : Eyal Schwartz
  5. * Copyrights : Microsoft Corp (C) 1996
  6. * Date : 7/21/1998
  7. * Description :
  8. *
  9. * Revisions : <date> <name> <description>
  10. *******************************************************************/
  11. #ifndef UTIL_HXX
  12. #define UTIL_HXX
  13. // include //
  14. // defines //
  15. #define RELATIVE_ADDRESS(origin, base, offset) ((ULONG_PTR)(origin)+(ULONG_PTR)(offset) - (ULONG_PTR)(base))
  16. // types //
  17. // global variables //
  18. extern PVOID gMemoryStack[];
  19. // functions //
  20. extern PVOID
  21. PushMemory(
  22. IN PVOID pvAddr,
  23. IN DWORD dwSize);
  24. extern VOID
  25. PopMemory(
  26. IN PVOID pv);
  27. extern VOID
  28. CleanMemory( VOID );
  29. #endif
  30. /******************* EOF *********************/
  31.