I have a thread with return type DWORD in C but it is then handled by a HANDLE type pointer.
What is the difference between these two types?
I am asking this question specially for ANSI C.
It is right that DWORD is uint type and HANDLE is PVOID, and C allows to cast directly DWORD to HANDLE. But is there any difference in these types or can I simply say they are the same?
It is a question that was asked during a discussion. I want to know what the right answer is.
Win32:
Win64
DO NOT just assume you can cast one to the other. It will work for Win32 and break when you port it to Win64.