aasif aslam wrote:
[DllImport(@"C:\WINDOWS\WinSxS\unmanged.dll", SetLastError = true)]
public static unsafe extern int getDevices(char ** pDeviceList, int * pDeviceCount, uint ulFlags);
The first thing you should do is stop using unsafe. There's no reason to do that. The second thing you should do is try to find a Windows API function that accepts a
char**
and/or
int*
parameter, and then go to pInvoke.net to see how THEY send parameters to that/those API function(s).