Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Returns a pointer to an implementation of IObjContext for the current context.
Syntax
HRESULT CoGetContextToken(
[out] ULONG_PTR *pToken
);
Parameters
[out] pToken
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
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
| Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
| Target Platform | Windows |
| Header | combaseapi.h (include Objbase.h) |
| Library | Ole32.lib |
| DLL | Ole32.dll |