flat assembler
Message board for the users of flat assembler.

Index > Windows > Newbie - Include Directive

Author
Thread Post new topic Reply to topic
Hutley



Joined: 12 Feb 2006
Posts: 6
Hutley
How i know that file i include in this directive?

eg.: if a go to use MessageBeep, what directive i'll include? How i know it?
Post 12 Feb 2006, 02:12
View user's profile Send private message Reply with quote
FrozenKnight



Joined: 24 Jun 2005
Posts: 128
FrozenKnight
in your imports section under User32.dll add messagebeep to the list of api included. then you can call it normaly
Post 12 Feb 2006, 10:53
View user's profile Send private message Reply with quote
Kenneth



Joined: 16 Nov 2005
Posts: 38
Location: United States of America
Kenneth
If you got the win32 programmer's reference file, you can find the import library for all the api calls by clicking quick info.
Post 13 Feb 2006, 02:39
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Kuemmel



Joined: 30 Jan 2006
Posts: 200
Location: Stuttgart, Germany
Kuemmel
...may be I stumbled over a similar problem...

I tried to get some function that returns the height and width of the current screen setting. The Win32 programmer manual offers a function called:

int GetScreenHeight(void);
int GetScreenWidth(void);

...but I can't find out to which .dll it belongs, adding the lines in user32.inc only resulted in something like 'function not found in user32.dll') ...how can I use this or similar function with FASM ?
Post 16 Feb 2006, 16:28
View user's profile Send private message Visit poster's website Reply with quote
Kuemmel



Joined: 30 Jan 2006
Posts: 200
Location: Stuttgart, Germany
Kuemmel
After some searching I can answer my question myself Wink

invoke GetSystemMetrics,0 (-> Screen Width)
invoke GetSystemMetrics,1 (-> Screen Height)

from user32 does the job perfectly.
Post 17 Feb 2006, 09:59
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.