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.

37 lines
665 B

  1. /*
  2. * perfutil.hpp
  3. *
  4. *
  5. * Author: haoyu
  6. */
  7. #ifndef __POP3_PERFUTIL_H__
  8. #define __POP3_PERFUTIL_H__
  9. #include <windows.h>
  10. // PerfMon support functions implemented in perfutil.cpp
  11. #ifdef __cplusplus
  12. extern "C"
  13. {
  14. #endif
  15. HRESULT
  16. HrOpenSharedMemory(LPWSTR szName,
  17. DWORD dwSize,
  18. SECURITY_ATTRIBUTES * psa,
  19. HANDLE * ph,
  20. LPVOID * ppv,
  21. BOOL * pfExist);
  22. HRESULT
  23. HrInitializeSecurityAttribute(SECURITY_ATTRIBUTES * psa);
  24. HRESULT
  25. HrCreatePerfMutex(SECURITY_ATTRIBUTES * psa,
  26. LPWSTR wszMutexName,
  27. HANDLE * phmtx);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif //__POP3_PERFUTIL_H__