public String getDeviceValue(IntPtr devPtr, String valueName) { deviceCalls.amDeviceConnect(devPtr); IntPtr domain = String2CFString(valueName); IntPtr result = deviceCalls.amDeviceCopyValue(devPtr, IntPtr.Zero, domain); deviceCalls.amDeviceDisconnect(devPtr); if (result != IntPtr.Zero) { return(CFString2String(result)); } return(String.Empty); }
private void deviceDisconnect() { deviceCalls.amDeviceDisconnect(device.getDevPtr()); }