flat assembler
Message board for the users of flat assembler.
Index
> Windows > DEVMODE |
Author |
|
keenin 25 Aug 2003, 17:49
Because nobody answers at Win32Asm, I post the thread to this forum (here, the people are more active and wise ).
http://board.win32asmcommunity.net/showthread.php?s=&threadid=14867 And the text (just if you don't want to follow that link : I just began to program with FASM and encountered that the inc-files of FASM does not declare the DEVMODE struct and switches of wingdi.h (which I need to change the screen resolution). Has anyone already done this or do I have overlooked it? keenin. |
|||
25 Aug 2003, 17:49 |
|
scientica 25 Aug 2003, 19:10
I have come across this struc when doing some OpenGL (it was some time - but I found the extra includes -- don't know if I ever posted it (but i think so because the union isn't "fixed" -- I'll see if I can find the fixed version in my archives), so I post it now - it's filled with not just DEVMODE stuff but some more, but feel free to sort out the relevant data )
Code: struc DEVMODE { .dmDeviceName rb 32 ;BYTE CCHDEVICENAME dup(?) .dmSpecVersion dw ? .dmDriverVersion dw ? .dmSize dw ? .dmDriverExtra dw ? .dmFields dd ? ;union ; ;struct .dmOrientation dw ? .dmPaperSize dw ? .dmPaperLength dw ? .dmPaperWidth dw ? ; ;ends ; .dmPosition equ .dmOrientation ;POINTL <> ;ends .dmScale dw ? .dmCopies dw ? .dmDefaultSource dw ? .dmPrintQuality dw ? .dmColor dw ? .dmDuplex dw ? .dmYResolution dw ? .dmTTOption dw ? .dmCollate dw ? .dmFormName rb 32 ;BYTE CCHFORMNAME dup (?) .dmLogPixels dw ? .dmBitsPerPel dd ? .dmPelsWidth dd ? .dmPelsHeight dd ? .dmDisplayFlags dd ? .dmDisplayFrequency dd ? .dmICMMethod dd ? .dmICMIntent dd ? .dmMediaType dd ? .dmDitherType dd ? .dmReserved1 dd ? .dmReserved2 dd ? } struct DEVMODE
_________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||||||||||
25 Aug 2003, 19:10 |
|
keenin 25 Aug 2003, 20:29
Thanks a lot, it helps me very much (and hopefully other people that need these declarations).
A fixed version will be very welcome, too. keenin. |
|||
25 Aug 2003, 20:29 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.