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.
|
|
/******************************************************************************/ // synch.h
//
// Terminal Server Session Directory shared reader/writer header.
//
// Copyright (C) 2001 Microsoft Corporation
/******************************************************************************/
#include <windows.h>
#ifdef __cplusplus
extern "C" { #endif
typedef struct _SHAREDRESOURCE { CRITICAL_SECTION ReaderMutex; HANDLE WriterSemaphore;
DWORD Readers; BOOL Valid; } SHAREDRESOURCE, *PSHAREDRESOURCE;
BOOL InitializeSharedResource( IN OUT PSHAREDRESOURCE psr );
VOID AcquireResourceShared( IN PSHAREDRESOURCE psr );
VOID ReleaseResourceShared( IN PSHAREDRESOURCE psr );
VOID AcquireResourceExclusive( IN PSHAREDRESOURCE psr );
VOID ReleaseResourceExclusive( IN PSHAREDRESOURCE psr );
VOID FreeSharedResource( IN OUT PSHAREDRESOURCE psr );
BOOL VerifyNoSharedAccess( IN PSHAREDRESOURCE psr );
#ifdef __cplusplus
} #endif
|