What does LP* in front of typedef mean? Long pointer?
For instance:
OVERLAPPED -> LPOVERLAPPED
DWORD -> LPDWORD
What does LP* in front of typedef mean? Long pointer?
For instance:
OVERLAPPED -> LPOVERLAPPED
DWORD -> LPDWORD
Yep, exactly. As opposed to SP for short pointer. The distinction was necessary in 16-bit Windows. Nowadays they're all the same.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
So you can just (better) use *DWORD instead of LPDWORD?
They are equivalent, yes. Whether you prefer one or the other is a matter of taste. I prefer the proper pointer over the typedef. I've seen people (including me) forgetting that LPDWORD is a pointer too often.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Thank you.