Since answers to similar questions only go as far as to make the distinction between apps and systems Hungarian - is there any comprehensive list of apps Hungarian prefixes that could be used to maintain consistency between Windows API identifiers and the rest of my code?
-
https://learn.microsoft.com/en-us/windows/win32/stg/coding-style-conventions – Ben Voigt May 09 '22 at 22:32
1 Answers
Hungarian notation is the practice of adding prefixes to the names of variables, to give additional information about the variable. The C++ Core Guidelines discourage prefix notation (for example, Hungarian notation).Internally, the Windows team no longer uses it. But its use remains in samples and documentation.
The notation was conceived to allow you to know the type of the variable, but modern environments have seriously mitigated the need for this. It means that you can avoid having to do this.However, as for whether using Hungarian notation in your code depends on yourself.
For more details about comprehensive list of apps Hungarian prefixes, I suggest you could refer to:Coding Style Conventions ,Windows Coding Conventions and Hungarian Notation

- 3,210
- 1
- 5
- 20
-
With maybe the exception of `cb` (count of bytes) those links cover Systems Hungarian notation. – IInspectable May 10 '22 at 11:01
-
Those articles mostly cover systems Hungarian (aside from the one by Charles Simonyi) and are not complete. I'm looking for an up-to-date list of apps Hungarian prefixes or naming guidelines, if such a thing exists. – GDI512 May 10 '22 at 11:47
-
1Refer to the thread: https://stackoverflow.com/questions/2392079/how-do-i-find-a-list-of-hungarian-notation-prefixes – Jeaninez - MSFT May 11 '22 at 07:29