DWORD GetContext( ) const;
Return Value
The application-assigned context ID.
Remarks
Call this member function to get the context ID for this session. The context ID is originally specified in CInternetSession and propagates to CInternetConnection- and CInternetFile-derived classes, unless specified differently in the call to a function that opens the connection. The context ID is associated with any operation of the given object and identifies the operation’s status information returned by CInternetSession::OnStatusCallback.
For more information about how GetContext works with other WinInet classes to give the user status information, see the article Internet First Steps: WinInet for more information about the context identifier.
CInternetConnection Overview | Class Members | Hierarchy Chart