void CALLBACK CHttpDownloadDlg::_OnStatusCallBack(HINTERNET hInternet, DWORD dwContext, DWORD dwInternetStatus, LPVOID lpvStatusInformation, DWORD dwStatusInformationLength) { CHttpDownloadDlg* pDlg = (CHttpDownloadDlg*) dwContext; ASSERT(pDlg); ASSERT(pDlg->IsKindOf(RUNTIME_CLASS(CHttpDownloadDlg))); pDlg->OnStatusCallBack(hInternet, dwInternetStatus, lpvStatusInformation, dwStatusInformationLength); }
void CALLBACK CHttpDownloadDlg::_OnStatusCallBack(HINTERNET hInternet, DWORD dwContext, DWORD dwInternetStatus, LPVOID lpvStatusInformation, DWORD dwStatusInformationLength) { //Convert from the SDK C world to the C++ world // Elandal: Assumes sizeof(void*) == sizeof(unsigned long) CHttpDownloadDlg* pDlg = (CHttpDownloadDlg*) dwContext; ASSERT(pDlg); ASSERT(pDlg->IsKindOf(RUNTIME_CLASS(CHttpDownloadDlg))); pDlg->OnStatusCallBack(hInternet, dwInternetStatus, lpvStatusInformation, dwStatusInformationLength); }