The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => WINDOWS.INC Project => Topic started by: NoCforMe on November 19, 2011, 09:22:52 AM

Title: Found an error in windows.inc
Post by: NoCforMe on November 19, 2011, 09:22:52 AM
Wasn't looking for it, either: tried to use the value START_PAGE_GENERAL in the PRINTDLGEX structure (which by the way is missing from any of the MASM32 include files) and got an assembler error.

This item is defined thus in the include file:



START_PAGE_GENERAL               equ ffffffffh



Obviously a zero is needed at the front. Might want to fix that.
Title: Re: Found an error in windows.inc
Post by: dedndave on November 19, 2011, 11:18:55 AM
good find
found another one...
IN_CLASSD_NET equ 0f0000000h
Title: Re: Found an error in windows.inc AND WinExtra.inc
Post by: HerbM on January 09, 2012, 03:41:31 PM
I am pretty familiar with Regular Expressions -- and suspect that dedndave is also  :bg-- so I searched through the \masm32\include\*.inc files and found these (as well as the ones already posted) ....

WinExtra.inc:
NT_CONSOLE_PROPS_SIG             equ A0000002h
NT_FE_CONSOLE_PROPS_SIG          equ A0000004h


While I won't guarantee the RegEx didn't miss something (it took about 3 minutes and a couple of iterations to test), this is what it looked like when it found these (and the original two from windows.inc)

     grep -i -P    "\b[a-f][0-9a-f]+h\b"    \masm32\include\*.inc

This is Gnu grep (2.5.1 from the UnxUtil package on SourceForge, I believe) with the -P for Perl compatible regexes (and of course -i for case insensitive).

--
HerbM