PDA

View Full Version : win32api module



sandyrepope
13-11-2007, 02:32
I have trouble understanding the win32api.inc file. I would like to suggest that someone might make a module to make using the function...alias a little bit easier.

If anyone would like to try this I sure would appreciate it.

Thanks
Sandy

Michael Clease
13-11-2007, 09:55
the best way to understand the functions in win32api.inc is to lookup the function on msdn.


Update fixed spelling

ErosOlmi
13-11-2007, 11:48
WIN32API.INC file is produced by Power Basic and (c) by Power Basic.
We cannot use it directly but we have to rewrite our DECLAREs following thinBasic syntax, that is very very close to Power Basic one and to other basic like FreeBasic.

WIN32API.INC contains almost all functions (API functions) exported by the main operating system dll plus a lot of structures used by the same API functions.

As Abraxas correctly stated, the best way to understand them is to use Microsoft MSDN documentation. To find info about an API fucntion, the way I use is to go to Google searching for the function name followed by the word "function" followed by the word "msdn", all connected with a "+" sign (that means "AND"). In this way, 99% of the times the first link returned by Google is Microsoft documentation.

For example to seach for "GetLogicalDriveStringsA" API function, go to www.google.com and enter:
+GetLogicalDriveStringsA +function +msdn

All new Microsoft documentation is under http://msdn2.microsoft.com

During functions study you will need some info about data type of function parameters. Most of the time documentation reports syntax from C or C++. So this link can help you to better understand C/C++ data types used in Windows API documentation: http://msdn2.microsoft.com/en-us/library/aa383751.aspx

Ciao
Eros

Michael Clease
13-11-2007, 13:07
thanks for the link about datatypes I am sure that will come in handy.