windows-nt/Source/XPSP1/NT/com/ole32/stg/h/cntxtid.hxx

29 lines
706 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+--------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1992.
//
// File: cntxtid.hxx
//
// Contents: Context ID header file
//
// History: 04-Sep-92 DrewB Created
//
// Notes: A context ID encapsulates the concept of a
// unique ID for the currently executing context.
// Every OS should define an appropriate section.
//
//---------------------------------------------------------------
#ifndef __CNTXTID_HXX__
#define __CNTXTID_HXX__
#define INVALID_CONTEXT_ID 0
typedef unsigned long ContextId;
inline ContextId GetCurrentContextId(void)
{
return GetCurrentProcessId();
}
#endif // #ifndef __CNTXTID_HXX__