Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > const vs CONST in drivers

Reply
Thread Tools Display Modes

const vs CONST in drivers

 
 
Hexello
Guest
Posts: n/a

 
      10-28-2009
I do understand why the types are redefined, but why does DDK defines it's
own const?
 
Reply With Quote
 
 
 
 
Don Burn
Guest
Posts: n/a

 
      10-28-2009
Because long before the const keyword was in the C compiler, the system was
using CONST to convey the intent. If you look at windef.h you will see

#define CONST const


--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply



"Hexello" <> wrote in message
news:9BFF6135-85B0-4D51-AD26-...
>I do understand why the types are redefined, but why does DDK defines it's
> own const?
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4553 (20091028) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4553 (20091028) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




 
Reply With Quote
 
Hexello
Guest
Posts: n/a

 
      10-28-2009
'const' qualifier has been added to C in 1989. So this definition must be
here 20 years already. Wow.

"Don Burn" wrote:

> Because long before the const keyword was in the C compiler, the system was
> using CONST to convey the intent. If you look at windef.h you will see
>
> #define CONST const
>
>
> --
> Don Burn (MVP, Windows DKD)
> Windows Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
>
>
> "Hexello" <> wrote in message
> news:9BFF6135-85B0-4D51-AD26-...
> >I do understand why the types are redefined, but why does DDK defines it's
> > own const?
> >
> > __________ Information from ESET NOD32 Antivirus, version of virus
> > signature database 4553 (20091028) __________
> >
> > The message was checked by ESET NOD32 Antivirus.
> >
> > http://www.eset.com
> >
> >
> >

>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4553 (20091028) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating video card drivers HELP Agent Windows Vista Hardware 13 05-07-2008 06:58 AM
Upgrading drivers? Jerry Hughes Windows Vista Installation 14 02-16-2007 04:54 PM
Motherboard drivers issue with VISTA Mark Windows Vista Installation 12 02-07-2007 05:45 PM
NO VIA drivers for Vista Beta 2!! thewizard-oz Windows Vista Installation 2 08-28-2006 06:51 AM
NO VIA drivers for Vista Beta 2!! thewizard-oz Windows Vista Installation 2 08-28-2006 06:51 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59