1.1 --- a/Server/Display.cs Sun Aug 31 17:44:18 2014 +0200
1.2 +++ b/Server/Display.cs Sun Aug 31 18:33:05 2014 +0200
1.3 @@ -105,6 +105,21 @@
1.4 MiniDisplayRequest(iDevice, TMiniDisplayRequest.EMiniDisplayRequestFirmwareRevision);
1.5 }
1.6
1.7 + public void PowerOn()
1.8 + {
1.9 + MiniDisplayPowerOn(iDevice);
1.10 + }
1.11 +
1.12 + public void PowerOff()
1.13 + {
1.14 + MiniDisplayPowerOff(iDevice);
1.15 + }
1.16 +
1.17 + public bool SupportPowerOnOff()
1.18 + {
1.19 + return MiniDisplaySupportPowerOnOff(iDevice);
1.20 + }
1.21 +
1.22 public bool PowerSupplyStatus()
1.23 {
1.24 bool res = MiniDisplayPowerSupplyStatus(iDevice);
1.25 @@ -249,6 +264,15 @@
1.26 [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.27 public static extern void MiniDisplayCancelRequest(IntPtr aDevice);
1.28
1.29 + [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.30 + public static extern void MiniDisplayPowerOn(IntPtr aDevice);
1.31 +
1.32 + [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.33 + public static extern void MiniDisplayPowerOff(IntPtr aDevice);
1.34 +
1.35 + [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.36 + [return: MarshalAs(UnmanagedType.I1)]
1.37 + public static extern bool MiniDisplaySupportPowerOnOff(IntPtr aDevice);
1.38
1.39 }
1.40 }