Has anyone managed to do this? The example in Peter Foots blog does not work for the smartphone, only the iPAQ
<DllImport("coredll")> _
Private Shared Function DevicePowerNotify( _
ByVal pvDevice As String, _
ByVal deviceState As PowerState, _
ByVal DeviceFlags As Integer)
End Function
Private Enum PowerState
PwrDeviceUnspecified = -1
'full on
D0 = 0
'low power
D1 = 1
'standby
D2 = 2
'sleep
D3 = 3
'off
D4 = 4
PwrDeviceMaximum = 5
End Enum
'---Force backlight off...
DevicePowerNotify("BKL1:", PowerState.D3, 1) '---D4 powers off the display AND the keypad which is no good
Any help appreciated!
Edited by gaplayer26, 16 January 2005 - 05:07 PM.







Sign In
Create Account


Back to top











