Dela via


CInternetConnection::GetContext

Call this member function to get the context ID for this session.

DWORD_PTR GetContext( ) const;

Return Value

The application-assigned context ID.

Remarks

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.

Requirements

Header: afxinet.h

See Also

Reference

CInternetConnection Class

Hierarchy Chart

CInternetSession::EnableStatusCallback

Other Resources

CInternetConnection Members