C# Convert IntPtr into int
问题 I am dynamically calling Windows API. I found some code online that can do this, and I took a whole lot of interest to it. The idea itself is brilliant to say the least. However, I can't seem to make it work for my code. The parameters for the dynamic call are as of type string , string int[] , and I would like to use the API GetThreadContext with the parameters of pInfo.hThred and ref ctx (shown below). API Call GetThreadContext(pInfo.hThread, ref ctx); The above code will make a call to the