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.
 
 
 
 
 
 

38 lines
665 B

/*
* perfutil.hpp
*
*
* Author: haoyu
*/
#ifndef __POP3_PERFUTIL_H__
#define __POP3_PERFUTIL_H__
#include <windows.h>
// PerfMon support functions implemented in perfutil.cpp
#ifdef __cplusplus
extern "C"
{
#endif
HRESULT
HrOpenSharedMemory(LPWSTR szName,
DWORD dwSize,
SECURITY_ATTRIBUTES * psa,
HANDLE * ph,
LPVOID * ppv,
BOOL * pfExist);
HRESULT
HrInitializeSecurityAttribute(SECURITY_ATTRIBUTES * psa);
HRESULT
HrCreatePerfMutex(SECURITY_ATTRIBUTES * psa,
LPWSTR wszMutexName,
HANDLE * phmtx);
#ifdef __cplusplus
}
#endif
#endif //__POP3_PERFUTIL_H__