InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
Go Back  Xtreme Visual Basic Talk > > > InternetGetLastResponseInfoW - declare and sample code request


Reply
 
Thread Tools Display Modes
  #1  
Old 01-23-2016, 10:37 AM
artaraya artaraya is offline
Newcomer
 
Join Date: Mar 2004
Posts: 1
Default 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.
Reply With Quote
  #2  
Old 01-24-2016, 06:58 PM
OnErr0r's Avatar
OnErr0rInternetGetLastResponseInfoW - declare and sample code request OnErr0r is offline
Obsessive OPtimizer

Administrator
* Guru *
 
Join Date: Jun 2002
Location: Debug Window
Posts: 13,774
Default

Code:
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.

https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
__________________
Quis custodiet ipsos custodues.
Reply With Quote
Reply

Tags
code, declare, guy, pretty, version, request, sample


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
 
InternetGetLastResponseInfoW - declare and sample code request
InternetGetLastResponseInfoW - declare and sample code request
 
-->