Found an error in windows.inc

Started by NoCforMe, November 19, 2011, 09:22:52 AM

Previous topic - Next topic

NoCforMe

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.

dedndave

#1
good find
found another one...
IN_CLASSD_NET equ 0f0000000h

HerbM

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