XRAutoCriticalSection.CRITICAL_SECTION&() (Compact 2013)
3/28/2014
The () overloaded operator returns the CRITICAL_SECTION object stored in the XRAutoCriticalSection helper class.
Syntax
operator CRITICAL_SECTION&(void)
Parameters
None.
Return Value
Returns the CRITICAL_SECTION object stored in the XRAutoCriticalSection helper class.
Remarks
For more information, see Critical Section Objects at MSDN.
Example
The following example code demonstrates one way to use the () overloaded operator.
Important
For readability, the following code example does not contain security checking or error handling. Do not use the following code in a production environment.
#include "XRPropertyBag.h"
XRAutoCriticalSection xrcs;
CRITICAL_SECTION cs;
cs = (CRITICAL_SECTION&)xrcs;
Requirements
Header |
winbase.h, |