Page 1 of 1

More Windows API declarations for QM

PostPosted: Tue Feb 13, 2007 8:29 pm
by Gintaras
Many Windows API declarations are in WINAPI and other reference files that come with QM. This file contains more declarations.

Download

Converted from Windows 7 SDK header files. Used VC6 CRT header files for msvcrt.dll. Used preprocessor definitions for Windows7/IE8.

Contains 204585 declarations: dll 17615, type 10525, interface 5808, def 143275, guid 10949, typedef 18967, callback 2147

File size: ~12 MB. Compressed file size: ~2.6 MB.

Download and unzip to the Quick Macros folder.

Reference file declaration:
Function init2     ?
ref WINAPI2 "$qm$\winapi2.txt" 1


You can place the declaration in function 'init2'. Create if does not exist. It runs when QM starts. Although the file is >10 MB, it uses much less memory because QM does not load whole file.

Usage example:
WINAPI2.TYPE t
WINAPI2.Function(&t WINAPI2.Constant)



Actually it is better to extract declarations from the file and place them in macros. Then, instead of WINAPI2.Something use just Something. One of reasons for this is that some declarations may be changed in future WINAPI2 versions.

This file is for QM 2.2.0 and later. It is not compatible with older QM versions.

C to QM conversion tools currently are not available.

______________________________________________

03/05/2007 - fixed bug in some interface declarations.
04/29/2008 - added Windows Vista declarations.
08/24/2009 - added Windows 7 declarations.
04/12/2010 - added some missing dll names.

Re: More Windows API declarations for QM

PostPosted: Fri Oct 20, 2017 1:14 pm
by Imagez
Gintaras.

This was working yesterday but now I get an error to say WINAPI2 doesnt exist, but it clearly does as nothing has changed

Re: More Windows API declarations for QM

PostPosted: Fri Oct 20, 2017 4:48 pm
by Gintaras
ref WINAPI2 "$qm$\winapi2.txt" 1

This must be either in the same macro where used or in a function executed before, for example in function init2.