Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
GeneralRe: Control Pin
WillemM7-Sep-04 20:07
WillemM7-Sep-04 20:07 
GeneralFile association (open) Pin
Arun Bhalla7-Sep-04 14:29
Arun Bhalla7-Sep-04 14:29 
GeneralRe: File association (open) Pin
Sebastian Schneider8-Sep-04 2:07
Sebastian Schneider8-Sep-04 2:07 
GeneralCustom Control stacking (z-order) problem Pin
dotbomb7-Sep-04 11:59
dotbomb7-Sep-04 11:59 
GeneralRe: Custom Control stacking (z-order) problem Pin
leppie7-Sep-04 21:04
leppie7-Sep-04 21:04 
GeneralRe: Custom Control stacking (z-order) problem Pin
dotbomb11-Sep-04 16:43
dotbomb11-Sep-04 16:43 
GeneralRe: Custom Control stacking (z-order) problem Pin
dotbomb12-Sep-04 8:02
dotbomb12-Sep-04 8:02 
QuestionHow to use InternetQueryOption from WinInet in C# Pin
JavaWriter20047-Sep-04 10:09
JavaWriter20047-Sep-04 10:09 
Eek! | :eek:
Eeeek Mon!,

I'm trying to use the following function from the WinInet API in order to read an "Internet Settings" setting (IE) for "Check for newer versions of stored pages"

BOOL InternetQueryOption( HINTERNET hInternet,
DWORD dwOption,
LPVOID lpBuffer,
LPDWORD lpdwBufferLength
);

So I try dis in c#...

[DllImport("Wininet.dll")]
public static extern int InternetQueryOption (IntPtr hInternet, int dwOption, char[] lpBuffer, int lpdwBufferLength );


public static char[] getInfo2(){
char[] buffer=null;
int iLen = 0;
int iRet = InternetQueryOption (IntPtr.Zero,INTERNET_OPTION_END_BROWSER_SESSION, null, iLen);

buffer= new char[iLen];
int iRet2 = InternetQueryOption(IntPtr.Zero,INTERNET_OPTION_END_BROWSER_SESSION, buffer, iLen);

return buffer;
}
}

Calling it 1st time for size and 2nd time to fill in 'buffer');

It compiles/runs but gives me back nothing.

Help mi mon!


Yo help appreciated mon!
AnswerRe: How to use InternetQueryOption from WinInet in C# Pin
David Salter7-Sep-04 11:16
David Salter7-Sep-04 11:16 
GeneralRe: How to use InternetQueryOption from WinInet in C# Pin
Anonymous7-Sep-04 11:48
Anonymous7-Sep-04 11:48 
General2d graphics with Direct3D 9 Pin
arik_a7-Sep-04 8:39
arik_a7-Sep-04 8:39 
GeneralRe: 2d graphics with Direct3D 9 Pin
Christian Graus7-Sep-04 12:13
protectorChristian Graus7-Sep-04 12:13 
GeneralRe: 2d graphics with Direct3D 9 Pin
arik_a7-Sep-04 13:09
arik_a7-Sep-04 13:09 
GeneralRe: 2d graphics with Direct3D 9 Pin
Christian Graus7-Sep-04 13:25
protectorChristian Graus7-Sep-04 13:25 
GeneralRe: 2d graphics with Direct3D 9 Pin
arik_a7-Sep-04 13:42
arik_a7-Sep-04 13:42 
GeneralRe: 2d graphics with Direct3D 9 Pin
Christian Graus7-Sep-04 14:29
protectorChristian Graus7-Sep-04 14:29 
GeneralRe: 2d graphics with Direct3D 9 Pin
Judah Gabriel Himango7-Sep-04 14:34
sponsorJudah Gabriel Himango7-Sep-04 14:34 
GeneralRe: 2d graphics with Direct3D 9 Pin
Christian Graus7-Sep-04 15:20
protectorChristian Graus7-Sep-04 15:20 
GeneralRe: 2d graphics with Direct3D 9 Pin
Judah Gabriel Himango7-Sep-04 15:27
sponsorJudah Gabriel Himango7-Sep-04 15:27 
GeneralRe: 2d graphics with Direct3D 9 Pin
Christian Graus7-Sep-04 15:42
protectorChristian Graus7-Sep-04 15:42 
Generale.g. 4th root of a number Pin
harrior7-Sep-04 6:04
harrior7-Sep-04 6:04 
GeneralRe: e.g. 4th root of a number Pin
Colin Angus Mackay7-Sep-04 6:16
Colin Angus Mackay7-Sep-04 6:16 
GeneralRe: e.g. 4th root of a number Pin
Anonymous7-Sep-04 6:50
Anonymous7-Sep-04 6:50 
GeneralCustom Control and GUI Designer Pin
Andy H7-Sep-04 5:34
Andy H7-Sep-04 5:34 
GeneralRe: Custom Control and GUI Designer Pin
Heath Stewart7-Sep-04 7:48
protectorHeath Stewart7-Sep-04 7:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.