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.

25 lines
964 B

  1. //--------------------------------------------------------------------
  2. // MyCritSec - header
  3. // Copyright (C) Microsoft Corporation, 2000
  4. //
  5. // Created by: Louis Thomas (louisth), 02-03-00
  6. //
  7. // exception handling wrapper for critical sections
  8. //
  9. #ifndef MYCRITSEC_H
  10. #define MYCRITSEC_H
  11. HRESULT myHExceptionCode(EXCEPTION_POINTERS * pep);
  12. HRESULT myInitializeCriticalSection(CRITICAL_SECTION * pcs);
  13. HRESULT myEnterCriticalSection(CRITICAL_SECTION * pcs);
  14. HRESULT myTryEnterCriticalSection(CRITICAL_SECTION * pcs, BOOL * pbEntered);
  15. HRESULT myLeaveCriticalSection(CRITICAL_SECTION * pcs);
  16. HRESULT myRtlInitializeResource(IN PRTL_RESOURCE Resource);
  17. HRESULT myRtlAcquireResourceExclusive(IN PRTL_RESOURCE Resource, IN BOOLEAN Wait, OUT BOOLEAN *pResult);
  18. HRESULT myRtlAcquireResourceShared(IN PRTL_RESOURCE Resource, IN BOOLEAN Wait, OUT BOOLEAN *pResult);
  19. HRESULT myRtlReleaseResource(IN PRTL_RESOURCE Resource);
  20. #endif //MYCRITSEC_H