Re: Webbrowser ambient properties
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 03/09/05
- Next message: malcolm: "Re: Webbrowser ambient properties"
- Previous message: malcolm: "Re: Webbrowser ambient properties"
- In reply to: malcolm: "Re: Webbrowser ambient properties"
- Next in thread: malcolm: "Re: Webbrowser ambient properties"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: malcolm: "Re: Webbrowser ambient properties"
- Previous message: malcolm: "Re: Webbrowser ambient properties"
- In reply to: malcolm: "Re: Webbrowser ambient properties"
- Next in thread: malcolm: "Re: Webbrowser ambient properties"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|