private static extern bool CLIENT_SetDeviceMode(int lLoginID, EM_USEDEV_MODE emType, IntPtr pValue);
public static extern bool CLIENT_SetDeviceMode(IntPtr lLoginID, EM_USEDEV_MODE emType, IntPtr pValue);
/// <summary> /// Set Devcie Mode /// </summary> /// <param name="lHandle">CLIENT_Login return value</param> /// <param name="emType">User Dev Mode</param> /// <returns>true:success;false:failure</returns> public static bool NETSetDeviceMode(Int32 lLoginID, EM_USEDEV_MODE emMode, IntPtr pValue) { bool bReturn = false; try { bReturn = CLIENT_SetDeviceMode(lLoginID, emMode, pValue); VIDEOThrowLastError(bReturn); } catch (System.Exception ex) { VIDEOThrowLastError(ex); bReturn = false; } return bReturn; }