CoGetContextToken function
Returns a pointer to an implementation of IObjContext for the current context.
Syntax
HRESULT CoGetContextToken( _Out_ ULONG_PTR *pToken );
Parameters
- pToken [out]
-
A pointer to an implementation of IObjContext for the current context.
Return value
This function can return the following values.
| Return code | Description |
|---|---|
|
The token was retrieved successfully. |
|
The caller did not pass a valid token pointer variable. |
|
The caller is not in an initialized apartment. |
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also