Pelles C forum

C language => Windows questions => Topic started by: Giovanbattista on September 23, 2010, 02:31:13 PM

Title: winnt.h missing definitions
Post by: Giovanbattista on September 23, 2010, 02:31:13 PM
I think at least a couple of definitions are missing inside the
include file: winnt.h

In detail here they are:

#define PRODUCT_PROFESSIONAL 0x00000030

#define VER_SUITE_WH_SERVER 0x00008000

I have Pelles'C version 6.00.4 and the include file has date: 19/04/2009.

Any more recent version of the compiler or of the include files?

Thanks

G
Title: Re: winnt.h missing definitions
Post by: lingo on September 24, 2010, 08:22:34 AM
Hi Giovanbattista,

using 6.00.6 of pocc here.

Neither PRODUCT_PROFESSIONAL, nor VER_SUITE_WH_SERVER,
is defined here.

That is, because PRODUCT_PROFESSIONAL is new for Windows 7
(aka 6.1.0.0) (then it will be defined in winbase.h), and
VER_SUITE_WH_SERVER seems the same problem (win 5.2).
Pocc is too old ;-)

So I think, you have to define it yourself (#ifndef ... #define ..#endif).

HTH
Lingo

Title: Re: winnt.h missing definitions
Post by: Giovanbattista on September 24, 2010, 09:47:33 AM
Thanks lingo.

I'll define them until new includes are ready.

G.