| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um/ |
Upload File : |
//***************************************************************************
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// stllock.h
//
// Purpose: Critical section class
//
//***************************************************************************
#if _MSC_VER > 1000
#pragma once
#endif
#ifndef _STLLOCK_H_
#define _STLLOCK_H_
#include <winapifamily.h>
#pragma region Desktop Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#ifdef _PREFAST_
#pragma prefast (push)
#pragma prefast (disable: 26135) //We are using locks correctly.
#endif /* _PREFAST_ */
class CCritSec : public CRITICAL_SECTION
{
public:
CCritSec()
{
InitializeCriticalSection(this);
}
~CCritSec()
{
DeleteCriticalSection(this);
}
void Enter()
{
EnterCriticalSection(this);
}
void Leave()
{
LeaveCriticalSection(this);
}
};
#ifdef _PREFAST_
#pragma prefast (pop)
#endif /* _PREFAST_ */
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
#pragma endregion
#endif