Fixing the wrong revert

This reverts commit 174076e08973a99eb4d9c65bec1ea164ace21e21.
Reverted "changed DWORD marshalling to UInt32" to fix compiler errors

This reverts commit 062256518ef60beb78783a892eb2227f8b911256.