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.

43 lines
830 B

  1. /*++
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. common.h
  5. Abstract:
  6. Common header for the basic functionality tests for the RM APIs
  7. Revision History:
  8. Who When What
  9. -------- -------- ----------------------------------------------
  10. josephj 01-13-99 Created
  11. Notes:
  12. --*/
  13. #ifdef TESTPROGRAM
  14. #include "rmtest.h"
  15. #define ALLOCSTRUCT(_type) (_type *)LocalAlloc(LPTR, sizeof(_type))
  16. #define FREE(_ptr) LocalFree(_ptr)
  17. #if RM_EXTRA_CHECKING
  18. #define LOCKOBJ(_pObj, _psr) \
  19. RmWriteLockObject(&(_pObj)->Hdr, dbg_func_locid, (_psr))
  20. #else // !RM_EXTRA_CHECKING
  21. #define LOCKOBJ(_pObj, _psr) \
  22. RmWriteLockObject(&(_pObj)->Hdr, (_psr))
  23. #endif // !RM_EXTRA_CHECKING
  24. #define UNLOCKOBJ(_pObj, _psr) \
  25. RmUnlockObject(&(_pObj)->Hdr, (_psr))
  26. #define EXIT()
  27. #endif // TESTPROGRAM