Remove the MGD_CWPSTRUCT due to errors with the native-to-managed pointer conversions. Use native CWPSTRUCT instead.