[prev in list] [next in list] [prev in thread] [next in thread]
List: mingw-users
Subject: Re: [Mingw-users] Calling DocumentProperties
From: Keith Marshall <keith.d.marshall () ntlworld ! com>
Date: 2011-02-22 22:11:09
Message-ID: 4D64347D.4080501 () ntlworld ! com
[Download RAW message or body]
On 22/02/11 20:29, Ian Puleston wrote:
> So question - is there a way to build a Windows DLL under MinGW so
> that it can call a Windows API function such as DocumentProperties
> directly?
Yes. gcc -shared ...
> And anyone know if there is any reason that DocumentProperties isn't
> included in the GNU win32api package?
I don't understand what you mean by the GNU win32api package. MinGW
uses its own implementation of the development interface to the Win32
API; it's called w32api, and has nothing whatsoever to do with GNU.
It does appear to provide DocumentProperties; in my own local source
sandbox, (long lines folded for mailing):
$ grep -i documentprop w32api/include/*.h
w32api/include/winspool.h:LONG WINAPI
AdvancedDocumentPropertiesA(HWND,HANDLE,LPSTR,PDEVMODE,PDEVMODEA);
w32api/include/winspool.h:LONG WINAPI
AdvancedDocumentPropertiesW(HWND,HANDLE,LPWSTR,PDEVMODE,PDEVMODEW);
w32api/include/winspool.h:LONG WINAPI
DocumentPropertiesA(HWND,HANDLE,LPSTR,PDEVMODEA,PDEVMODEA,DWORD);
w32api/include/winspool.h:LONG WINAPI
DocumentPropertiesW(HWND,HANDLE,LPWSTR,PDEVMODEW,PDEVMODEW,DWORD);
w32api/include/winspool.h:#define AdvancedDocumentProperties
AdvancedDocumentPropertiesW
w32api/include/winspool.h:#define DocumentProperties DocumentPropertiesW
w32api/include/winspool.h:#define AdvancedDocumentProperties
AdvancedDocumentPropertiesA
w32api/include/winspool.h:#define DocumentProperties DocumentPropertiesA
$ grep -i documentprop w32api/lib/*.def
w32api/lib/winspool.def:AdvancedDocumentPropertiesA@20
w32api/lib/winspool.def:AdvancedDocumentPropertiesW@20
w32api/lib/winspool.def:DocumentPropertiesA@24
w32api/lib/winspool.def:DocumentPropertiesW@24
Follow the MSDN guidelines for inclusion of winspool.h, and append
-lwinspool to the linking command.
--
Regards,
Keith.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may \
cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic