Set Position Handle Widget In C#

Hello

If possible, please help me reverse it
How to send the IntPtr to the Method and convert the received value to double[]