Windows编程命名约定

The Hungarian Notation Prefix Codes Specification

Prefix

Data Type (Base Type)

c

char

by

BYTE (unsigned char)

n

short or int (refers to a number)

i

int

x, y

short (used as x-coordinate or y-coordinate, generally)

cx, cy

short (used to denote x or y lengths; c stands for count)

b

BOOL (int)

w

UINT (unsigned int) or WORD (unsignedWORD)

l

LONG (long)

dw

DWORD (unsigned long)

fn

Function pointer

s

String

sz, str

String terminated by 0 byte

lp

32-bit long pointer

h

Handle (used to refer to Windows objects)

msg

Message

 

 

你可能感兴趣的:(Windows,windows,编程,c)