다음을 통해 공유


AfxThrowInternetException

Throws an Internet exception.

void AFXAPI AfxThrowInternetException( 
   DWORD dwContext, 
   DWORD dwError = 0  
);

매개 변수

  • dwContext
    The context identifier for the operation that caused the error. The default value of dwContext is specified originally in CInternetSession and is passed to CInternetConnection- and CInternetFile-derived classes. For specific operations performed on a connection or a file, you usually override the default with a dwContext of your own. This value then is returned to CInternetSession::OnStatusCallback to identify the specific operation's status. For more information on context identifiers, see the article Internet First Steps: WinInet.

  • dwError
    The error that caused the exception.

설명

You are responsible for determining the cause based on the operating-system error code.

참고

To call this function, your project must include AFXINET.H.

요구 사항

Header: afxinet.h

참고 항목

참조

CInternetException 클래스

THROW(MFC)

개념

MFC 매크로 및 전역