Access an API which is undefined in PB

Windows specific forum
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Access an API which is undefined in PB

Post 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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: Access an API which is undefined in PB

Post 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
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post 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
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Post by UserOfPure »

I did remember it. :)
Post Reply