changed DWORD marshalling to UInt32