In the 32-bit mode DWORD_PTR and DWORD types coincided , but they do not coincide anymore in the 64-bit mode. This link contains conversion issue for old program when converting 32 bit to 64 bit. https://pvs-studio.com/en/blog/posts/cpp/a0065/#ID0EPLAC