Difference between revisions of "Hungarian Notation"

From ReactOS Wiki
Jump to: navigation, search
m
(Move win32k specific to a different table.)
 
Line 22: Line 22:
 
| bmi
 
| bmi
 
| BITMAPINFO
 
| BITMAPINFO
|-
 
| bo
 
| BRUSHOBJ
 
|-
 
| br
 
| BRUSH
 
 
|-
 
|-
 
| c
 
| c
 
| Count of (cb or cj for count of bytes / size)
 
| Count of (cb or cj for count of bytes / size)
|-
 
| ca
 
| COLORADJUSTMENT
 
|-
 
| cci
 
| CONSOLE_CARET_INFO
 
 
|-
 
|-
 
| ch
 
| ch
 
| CHAR
 
| CHAR
|-
 
| cls
 
| CLS (window class)
 
|-
 
| co
 
| CLIPOBJ
 
|-
 
| cpd
 
| CALLPROCDATA
 
|-
 
| cur
 
| CURSOR
 
 
|-
 
|-
 
| cr
 
| cr
 
| COLORREF
 
| COLORREF
|-
 
| cti
 
| CLIENTTHREADINFO
 
 
|-
 
|-
 
| cx/cy
 
| cx/cy
 
| Dimensions
 
| Dimensions
|-
 
| dc
 
| DC (hdc for HDC)
 
|-
 
| dce
 
| DCE
 
|-
 
| desk
 
| DESKTOP
 
 
|-
 
|-
 
| dw
 
| dw
 
| DWORD
 
| DWORD
|-
 
| ebo
 
| EBRUSHOBJ
 
 
|-
 
|-
 
| ep
 
| ep
Line 85: Line 46:
 
| fn
 
| fn
 
| Function (use pfn)
 
| Function (use pfn)
|-
 
| fx
 
| FIX
 
 
|-
 
|-
 
| h
 
| h
 
| Handle to
 
| Handle to
|-
 
| heap
 
| Heap, WIN32HEAP
 
|-
 
| hk
 
| HOOK
 
 
|-
 
|-
 
| hmod
 
| hmod
Line 106: Line 58:
 
| j
 
| j
 
| BYTE
 
| BYTE
|-
 
| kf
 
| KBDFILE
 
|-
 
| kl
 
| KL (keyboard layout, hkl for HKL)
 
 
|-
 
|-
 
| l
 
| l
Line 121: Line 67:
 
| lp
 
| lp
 
| Long pointer (deprecated)
 
| Long pointer (deprecated)
|-
 
| lr
 
| LOCKRECORD
 
 
|-
 
|-
 
| luid
 
| luid
Line 130: Line 73:
 
| menu
 
| menu
 
| MENU
 
| MENU
|-
 
| ml
 
| MLIST
 
|-
 
| msd
 
| MOVESIZEDATA
 
 
|-
 
|-
 
| msg
 
| msg
 
| MSG
 
| MSG
|-
 
| mx
 
| MATRIX
 
 
|-
 
|-
 
| p
 
| p
 
| Pointer to
 
| Pointer to
|-
 
| pal
 
| PALETTE
 
|-
 
| pdev
 
| PDEV
 
|-
 
| pen
 
| PEN
 
|-
 
| pi
 
| PROCESSINFO
 
|-
 
| prop
 
| PROP
 
 
|-
 
|-
 
| pt
 
| pt
Line 169: Line 88:
 
| pv
 
| pv
 
| PVOID
 
| PVOID
|-
 
| qmsg
 
| QMSG
 
 
|-
 
|-
 
| qw
 
| qw
Line 178: Line 94:
 
| rc(l)
 
| rc(l)
 
| RECT(L)
 
| RECT(L)
|-
 
| rcfx
 
| RECTFX
 
|-
 
| rfnt
 
| RFONT
 
 
|-
 
|-
 
| rgb
 
| rgb
Line 193: Line 103:
 
| sem
 
| sem
 
| SEMAPHORE (hsem for HSEMAPHORE)
 
| SEMAPHORE (hsem for HSEMAPHORE)
|-
 
| sms
 
| SMS
 
|-
 
| so
 
| SURFOBJ
 
 
|-
 
|-
 
| sp
 
| sp
Line 214: Line 118:
 
| t
 
| t
 
| Time (type is ULONG)
 
| Time (type is ULONG)
|-
 
| ti
 
| THREADINFO
 
|-
 
| tm
 
| TEXTMETRIC
 
 
|-
 
|-
 
| ul
 
| ul
Line 226: Line 124:
 
| us
 
| us
 
| USHORT
 
| USHORT
|-
 
| vk
 
| Virtual Key code
 
 
|-
 
|-
 
| w
 
| w
Line 238: Line 133:
 
| wsz
 
| wsz
 
| Zero terminated unicode string
 
| Zero terminated unicode string
 +
|-
 +
| wc/wch
 +
| WCHAR
 +
|-
 +
|}
 +
 +
== WIN32K specific ==
 +
 +
{| class="wikitable" style="width: 100%"
 +
! Prefix
 +
! Meaning
 +
|-
 +
| bo
 +
| BRUSHOBJ
 +
|-
 +
| br
 +
| BRUSH
 +
|-
 +
| ca
 +
| COLORADJUSTMENT
 +
|-
 +
| cci
 +
| CONSOLE_CARET_INFO
 +
|-
 +
| cls
 +
| CLS (window class)
 +
|-
 +
| co
 +
| CLIPOBJ
 +
|-
 +
| cpd
 +
| CALLPROCDATA
 +
|-
 +
| cur
 +
| CURSOR
 +
|-
 +
| cti
 +
| CLIENTTHREADINFO
 +
|-
 +
| dc
 +
| DC (hdc for HDC)
 +
|-
 +
| dce
 +
| DCE
 +
|-
 +
| desk
 +
| DESKTOP
 +
|-
 +
| ebo
 +
| EBRUSHOBJ
 +
|-
 +
| fx
 +
| FIX
 +
|-
 +
| heap
 +
| Heap, WIN32HEAP
 +
|-
 +
| hk
 +
| HOOK
 +
|-
 +
| kf
 +
| KBDFILE
 +
|-
 +
| kl
 +
| KL (keyboard layout, hkl for HKL)
 +
|-
 +
| lr
 +
| LOCKRECORD
 +
|-
 +
| ml
 +
| MLIST
 +
|-
 +
| msd
 +
| MOVESIZEDATA
 +
|-
 +
| mx
 +
| MATRIX
 +
|-
 +
| pal
 +
| PALETTE
 +
|-
 +
| pdev
 +
| PDEV
 +
|-
 +
| pen
 +
| PEN
 +
|-
 +
| pi
 +
| PROCESSINFO
 +
|-
 +
| prop
 +
| PROP
 +
|-
 +
| qmsg
 +
| QMSG
 +
|-
 +
| rcfx
 +
| RECTFX
 +
|-
 +
| rfnt
 +
| RFONT
 +
|-
 +
| sms
 +
| SMS
 +
|-
 +
| so
 +
| SURFOBJ
 +
|-
 +
| ti
 +
| THREADINFO
 +
|-
 +
| tm
 +
| TEXTMETRIC
 +
|-
 +
| vk
 +
| Virtual Key code
 
|-
 
|-
 
| wti
 
| wti
 
| WOWTHREADINFO
 
| WOWTHREADINFO
|-
 
| wc/wch
 
| WCHAR
 
 
|-
 
|-
 
| xlo
 
| xlo
Line 249: Line 257:
 
|-
 
|-
 
|}
 
|}
 +
 
== See also ==
 
== See also ==
 
* [[wikipedia:Hungarian notation|Hungarian notation on Wikipedia]]
 
* [[wikipedia:Hungarian notation|Hungarian notation on Wikipedia]]
  
 
[[Category:Development]]
 
[[Category:Development]]

Latest revision as of 12:17, 1 June 2017

This is a list of prefixes to be used in hungarian notation.

Prefix Meaning
a Array of
am ACCESS_MASK
atom ATOM
b BYTE or BOOL
bm/bmp BITMAP (hbmp for HBITMAP)
bmi BITMAPINFO
c Count of (cb or cj for count of bytes / size)
ch CHAR
cr COLORREF
cx/cy Dimensions
dw DWORD
ep EPROCESS
f BOOL or Flags
fn Function (use pfn)
h Handle to
hmod HMODULE
i integer (maybe unsigned) or index
j BYTE
l LONG
link LIST_ENTRY as member of the list
lp Long pointer (deprecated)
luid LUID
menu MENU
msg MSG
p Pointer to
pt POINT
ptl POINTL
pv PVOID
qw QWORD
rc(l) RECT(L)
rgb color (COLORREF, ULONG)
rgn REGION (hrgn = HRGN)
sem SEMAPHORE (hsem for HSEMAPHORE)
sp Shared pointer
str String, UNICODE_STRING, LARGE_STRING
sz Zero terminated String (can be unicode) or SIZE
szl SIZEL
t Time (type is ULONG)
ul ULONG
us USHORT
w WORD
wnd WND (hwnd for HWND)
wsz Zero terminated unicode string
wc/wch WCHAR

WIN32K specific

Prefix Meaning
bo BRUSHOBJ
br BRUSH
ca COLORADJUSTMENT
cci CONSOLE_CARET_INFO
cls CLS (window class)
co CLIPOBJ
cpd CALLPROCDATA
cur CURSOR
cti CLIENTTHREADINFO
dc DC (hdc for HDC)
dce DCE
desk DESKTOP
ebo EBRUSHOBJ
fx FIX
heap Heap, WIN32HEAP
hk HOOK
kf KBDFILE
kl KL (keyboard layout, hkl for HKL)
lr LOCKRECORD
ml MLIST
msd MOVESIZEDATA
mx MATRIX
pal PALETTE
pdev PDEV
pen PEN
pi PROCESSINFO
prop PROP
qmsg QMSG
rcfx RECTFX
rfnt RFONT
sms SMS
so SURFOBJ
ti THREADINFO
tm TEXTMETRIC
vk Virtual Key code
wti WOWTHREADINFO
xlo XLATEOBJ

See also