Re: WDF coding style

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



No there is not a coding style published and hungarian has been proven to be
evil. Microsoft has conventions that the driver writers use and can be
determined by looking at a bunch of drivers, but there is a lot of variation
there.


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




"Roman Jordan" <RomanJordan@xxxxxx> wrote in message
news:e%23y$u3I0JHA.6132@xxxxxxxxxxxxxxxxxxxxxxx
Hi everybody,

i have seen in the programming samples of the KMDF-drivers and also in the
samples of the applications, that there seems to be no generic coding
style, something like the hungarian style. This is also valid for the
whole sample code of the WDF.

Does there exist any coding convention for drivers and applications using
C- or C++?

Some years ago a windows programmer told me that C- or C++ - based
applications should alwyas use the hungarian style. But MS doesn't use
this style in the actual WDF samples. Which sentence is correct?

I know also that MS says: "Do not use hungarian style for develping C#".

So, let's come back:
Does there exist any coding style?

Best regards,
Roman


__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4063 (20090508) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






__________ Information from ESET NOD32 Antivirus, version of virus signature database 4063 (20090508) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




.



Relevant Pages

  • Re: [RESEND PATCH 06/10] ide-floppy: report DMA handling in idefloppy_pc_intr() properly
    ... Could you split the above coding style fixes into a separate patch? ... The driver currently doesn't have any fancy features, ... static void idefloppy_blockpc_cmd... ...
    (Linux-Kernel)
  • Re: 2.6.16, sk98lin out of date
    ... syskonnect did send their kernel diffs/patches but they ... by coding style, indention and some people thinking that things can be ... they didn't like the LKML code review so they just stopped sending ... I'm not saying that it is what happened with their driver, ...
    (Linux-Kernel)
  • Re: [2.6 patch] fix a drivers/char/isicom.c compile warning
    ... but I wasn't sure whether changing a driver to be ... > the coding style used in the rest of the driver is really an ... pain in the ass for the maintainer, that should try to follow CodingStyle, but ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Proof that FW is an ass
    ... a sudden, almost tragic, cercumstance substitution of drivers because ... Hungarian weekend? ... Schumacher instead of a more prepared driver, ...
    (rec.autos.sport.f1)
  • Re: looks like a bad one...
    ... let alone the driving history of the driver. ... Local news had it on. ... Portugese, Hungarian were two nationalities. ...
    (uk.rec.driving)