Replace integer types with DWORD where possible

Replace the type of variable used for calls into MSDN functions by
replacing the "integer" type with the "DWORD" type.