Re: Webbrowser ambient properties

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 03/09/05


Date: Wed, 9 Mar 2005 18:45:40 -0500


"malcolm" <malcolm@discussions.microsoft.com> wrote in message
news:8F095D58-213A-49AB-AB83-668E083EE0A4@microsoft.com
> hmmm.. this doesn't seem to be working... I'm doing something like:
>
> LPVOID pBuffer = (LPVOID)malloc( 4096 );
> if ( pBuffer )
> {
> DWORD dwBufferLength = 4096;
> DWORD* pdwBufferLength = 0;
> HRESULT hrUA = 0;
>
> hrUA = UrlMkGetSessionOption( URLMON_OPTION_USERAGENT, pBuffer,
> dwBufferLength, pdwBufferLength, 0 );

This should be

    DWORD dwBufferLength = 4096;
    DWORD dwDataLength = 0;
    HRESULT hrUA = 0;

    hrUA = UrlMkGetSessionOption( URLMON_OPTION_USERAGENT, pBuffer,
        dwBufferLength, &dwDataLength, 0 );

Works for me.

-- 
With best wishes,
    Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925 


Relevant Pages

  • Re: string formatting..
    ... "BekTek" wrote in message ... With sufficient thrust, pigs fly just fine. ... overhead. ... -- RFC 1925 ...
    (microsoft.public.vc.stl)
  • Re: Downloading webpages without images
    ... "Download Control" section ... With sufficient thrust, pigs fly just fine. ... overhead. ... -- RFC 1925 ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Capturing an event from a BHO
    ... the Web browser is opened. ... With sufficient thrust, pigs fly just fine. ... overhead. ... -- RFC 1925 ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: zoom browser
    ... IEZoom.exe Changes the Font Size of the ... With sufficient thrust, pigs fly just fine. ... overhead. ... -- RFC 1925 ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Overwrite data_seg variable
    ... cleohm wrote: ... With sufficient thrust, pigs fly just fine. ... overhead. ... -- RFC 1925 ...
    (microsoft.public.vc.language)