public static extern unsafe int xiOpenDevice( int deviceID, [Out] out IntPtr hDevice ); [DllImport( "m3api.dll" )]