CInternetSession QueryOption function always return true. 
Author Message
 CInternetSession QueryOption function always return true.

VC++ 6.0, Win 98, NT 4.0 IE 5.00.2614.3500

Good day Gentlemen and Ladies:

We are developing an app that needs to query the net for a session. With
the code snippet below QueryOption always return TRUE (disconnected
computer from network).

In Myfile.h
CInternetSession        *mTheInternetSession;

In Myfile.cpp

        BOOL bResult=FALSE;
        DWORD queryData=0;
        DWORD queryDataSz;

        bResult =
                                 (LPVOID)&queryData, &queryDataSz);
        if (bResult) {
                CString msgStr;
                msgStr.Format("On_InetMgr_Msg QueryOption returned
%d\n", queryData);

We also tried the following two functions:

        bResult =

NOTE: This is an undocumented function
CString queryStr;
bResult =

Thank you in advance for any assistance.

Tony D. Abel

Sent via http://www.*-*-*.com/
Before you buy.

Sun, 02 Jun 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. internetautodial always return true

2. CFtpFileFind::FindFile always returns TRUE???

3. CWinApp::OnIdle: Always returning TRUE??

4. SystemInformation.Network always returns TRUE

5. signal() always returns a callable function pointer?

6. Why InetIsOffline function always return FALSE?

7. ItemHasChildren returns TRUE, then GetChildItem returns NULL

8. IsRectVisible returns false when it should return true.

9. Is NULL == 0 always true?

10. Pointer to function returning pointer to function returning...

11. Newbie, unicode, CInternetSession, Readstring returns garbage..

12. Newbie, unicode, CInternetSession, Readstring returns garbage..


Powered by phpBB® Forum Software