Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   Communications (http://www.xtremevbtalk.com/communications/)
-   -   InternetGetLastResponseInfoW - declare and sample code request (http://www.xtremevbtalk.com/communications/328023-internetgetlastresponseinfow-declare-sample-code-request.html)

artaraya 01-23-2016 09:37 AM

InternetGetLastResponseInfoW - declare and sample code request
Hi Guys,

I need help with the InternetGetLastResponseInfoW api. I have the declare and code for the InternetGetLastResponseInfoA version but I'm trying to get my app up to snuff in terms of localization. VB info on the W version is pretty scarce and I'm not a C guy so can't really look at MSDN and come up with the VB equivalent on my own.

Any assistance would be appreciated.

OnErr0r 01-24-2016 05:58 PM


BOOL InternetGetLastResponseInfoW(
  _Out_  LPDWORD lpdwError,
  _Out_  LPTSTR  lpszBuffer,
  _Inout_ LPDWORD lpdwBufferLength

BOOL == Long
_Out_ LPDWORD == ByRef As Long
_Out_ LPTSTR == ByVal As Long
_Inout_ LPDWORD == ByRef As Long

You can call the function once to determine the size of the buffer needed. LastDllError will equal ERROR_INSUFFICIENT_BUFFER. Then buffer the string using String$ and call it again. Pass StrPtr(lpszBuffer) for a pointer to a string buffer.


All times are GMT -6. The time now is 03:40 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.