Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
GeneralRe: Monitoring "notepad.exe" process Pin
eggie518-May-03 12:50
eggie518-May-03 12:50 
GeneralRe: Monitoring "notepad.exe" process Pin
Emilio Guijarro19-May-03 6:58
Emilio Guijarro19-May-03 6:58 
QuestionHow to programmatically cause a button click? Pin
jmelgar18-May-03 8:28
jmelgar18-May-03 8:28 
AnswerRe: How to programmatically cause a button click? Pin
Mike_V18-May-03 11:19
Mike_V18-May-03 11:19 
AnswerRe: How to programmatically cause a button click? Pin
Vasudevan Deepak Kumar19-May-03 0:05
Vasudevan Deepak Kumar19-May-03 0:05 
GeneralGetProcAddress and P/Invoke Pin
Mike_V18-May-03 4:49
Mike_V18-May-03 4:49 
GeneralRe: GetProcAddress and P/Invoke Pin
leppie18-May-03 6:31
leppie18-May-03 6:31 
GeneralRe: GetProcAddress and P/Invoke Pin
Mike_V18-May-03 9:18
Mike_V18-May-03 9:18 
Okay. Now that I'm awake, maybe I can write better Smile | :)

What I want to do is call functions in uxtheme.dll. Since the DLL is only present on XP, I cannot use the [DllImport] attribute, because then my program will not load on Win9X/2000. So first I need to check if the DLL is present, and if it is, then call GetProcAddress to load in the proper function pointers.

My question is, how do I use P/Invoke to do this? I know that I would need a Delegate to call the function, but how would I create a delegate from an unmanaged function pointer?
GeneralRe: GetProcAddress and P/Invoke Pin
leppie18-May-03 10:19
leppie18-May-03 10:19 
GeneralRe: GetProcAddress and P/Invoke Pin
Mike_V18-May-03 11:17
Mike_V18-May-03 11:17 
GeneralRe: GetProcAddress and P/Invoke Pin
leppie18-May-03 11:31
leppie18-May-03 11:31 
GeneralRe: GetProcAddress and P/Invoke Pin
Bo Hunter19-May-03 10:24
Bo Hunter19-May-03 10:24 
GeneralRe: GetProcAddress and P/Invoke Pin
Mike_V21-May-03 3:01
Mike_V21-May-03 3:01 
GeneralWho can tell me how to use "event & delegate" Pin
llk9881116unicorn18-May-03 3:23
llk9881116unicorn18-May-03 3:23 
GeneralRe: Who can tell me how to use "event & delegate" Pin
leppie18-May-03 6:38
leppie18-May-03 6:38 
QuestionSort a DataTable?? Pin
Roger Alsing17-May-03 12:19
Roger Alsing17-May-03 12:19 
Generaladding more slots to an array after initialization... Pin
Anonymous17-May-03 8:57
Anonymous17-May-03 8:57 
GeneralRe: adding more slots to an array after initialization... Pin
leppie17-May-03 9:32
leppie17-May-03 9:32 
GeneralRe: adding more slots to an array after initialization... Pin
Anonymous17-May-03 10:45
Anonymous17-May-03 10:45 
GeneralRe: adding more slots to an array after initialization... Pin
Wesner Moise17-May-03 18:40
Wesner Moise17-May-03 18:40 
GeneralRe: adding more slots to an array after initialization... Pin
leppie17-May-03 23:37
leppie17-May-03 23:37 
GeneralRe: adding more slots to an array after initialization... Pin
leppie17-May-03 23:41
leppie17-May-03 23:41 
GeneralRe: adding more slots to an array after initialization... Pin
Wesner Moise18-May-03 8:47
Wesner Moise18-May-03 8:47 
GeneralRegionData format Pin
Wizard_0117-May-03 6:50
Wizard_0117-May-03 6:50 
GeneralRe: RegionData format Pin
Nick Parker17-May-03 7:38
protectorNick Parker17-May-03 7:38 

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.