Page 1 of 1

Access an API which is undefined in PB

Posted: Fri May 23, 2008 1:48 pm
by rsts
I'm looking for a way to restore tray icons which have vanished due to an explorer problem and happened on this thread
http://www.purebasic.fr/english/viewtopic.php?t=31038
which would seem to do the job except for maw's comment regarding the need to use ChangeWindowMessageFilter for admin mode under Vista.

PB doesn't recognize ChangeWindowMessageFilter.

I seem to remember reading a post on accessing these undefined api's but can't seem to locate it now. Can someone point me in the right direction?

cheers

Posted: Fri May 23, 2008 1:58 pm
by ts-soft
I have no Vista, but i think you can only load the user32.dll and call the function
http://msdn.microsoft.com/en-us/library ... S.85).aspx

greetings
Thomas

Re: Access an API which is undefined in PB

Posted: Fri May 23, 2008 2:02 pm
by UserOfPure
rsts wrote:I seem to remember reading a post on accessing these undefined api's but can't seem to locate it now. Can someone point me in the right direction?
http://www.purebasic.fr/english/viewtopic.php?t=8607

Posted: Fri May 23, 2008 2:36 pm
by rsts
That ought to get me started. Many thanks to both of you.

@userofpure - how did you come to find that? I was searching for undefined and api or unreferenced and api. I can't figure out what you used unless you happened to remember that post :)

cheers

Posted: Sat May 24, 2008 1:21 am
by UserOfPure
I did remember it. :)