locked
How to get the Proxy information in one connection without use registration?( I want to use API to get it.) RRS feed

  • Question

  • How to get the Proxy information in one connection  without use registration?( I want to use API to get it.)

    • Edited by Jone0592 Thursday, May 14, 2009 12:51 AM
    Thursday, May 14, 2009 12:37 AM

Answers

All replies

  • nobody?
    Thursday, May 14, 2009 3:20 AM
  • Hi Ahao,

    As per my understanding you are blocked to access something on emulator because of proxy. In that case try to use the proxifier. So that you will not have any blocking.

    If my answer is not giving you solution, please explain more clearly.


    Regards,
    Malleswar
    Thursday, May 14, 2009 6:45 AM
  • My English is poor. I have to think how to introduce it.  Some Time Later, please wait.  Thanks very much.
    • Edited by Jone0592 Thursday, May 14, 2009 8:30 AM
    Thursday, May 14, 2009 8:29 AM
  • we build a new GPRS Connection that has Proxy information. In the registration in Device ,we can see that like '100.0.0.172'.

    I want to know what API can be used to get it.


    Thursday, May 14, 2009 8:36 AM
  • Hi Ahao,

    Please refer this link. This is related to your requirement. In that check Guang comments.

    http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesnative/thread/bccaf1fa-36ec-4f07-8fab-1b4803ce7e90/


    Regards,
    Malleswar

    Thursday, May 14, 2009 9:18 AM
  • Thanks. I had see them,but I can't find the answer. Can you let me know detailed information?

    Thursday, May 14, 2009 9:30 AM
  • What I need is Proxy information.
    Thursday, May 14, 2009 9:35 AM
  • How do you build the GPRS connection that has a proxy? Maybe what you need is to programmatically query the CM_ProxyEntries CSP? If you'll find that the CM_ProxyEntries contains the info you want (by using RapiConfig.exe, for example), a possible way to programmatically reach it may be similar to the one I described at http://blogs.msdn.com/raffael/archive/2008/02/26/programmatically-retrieve-the-gprs-apn-configured-for-a-mobile-operator-xpath-on-windows-mobile.aspx.


    Thanks,
    ~raffaele
    http://blogs.msdn.com/raffael

    This posting is provided 'as is' with no warranties and confers no rights.
    Thursday, May 14, 2009 10:39 AM
  •  My code as below,

     TCHAR* szXMLin =
       L"<wap-provisioningdoc>" 
       L"<characteristic type=\"CM_ProxyEntries\">"
       L"<characteristic type=\"WAP\">"
       L"<parm-query name=\"Proxy\"/>"
       L"</characteristic>"
       L"</characteristic>"
       L"</wap-provisioningdoc>";
    
     LPWSTR pszwXMLout = NULL;
      HRESULT hr2 = DMProcessConfigXML(szXMLin, CFGFLAG_PROCESS, &pszwXMLout);
      
      if ( pszwXMLout )
      {
       delete [] pszwXMLout;
       pszwXMLout = NULL;
      }
    
    
    But I can't get Proxy. Why?
    Friday, May 15, 2009 2:03 AM
  • I had fixed it. Thanks
    Friday, May 15, 2009 2:54 AM