This DLL enables you to set the users PC and monitor power state from within your AMS project.
The functions are:
SetPCPowerState
arguments:
1 = Hibernate
2 = Standby
3 = LogOffUser
4 = Reboot
5 = ShutDown
returns: nothing
example usage:
Code:result = DLL.CallFunction("AutoPlay\\Docs\\PCPower.dll", "SetPCPowerState", 1, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
SetMonitorPowerState
arguments:
1 = Show Screen Saver
2 = Standby Monitor
3 = Turn Off Monitor
4 = Turn On Monitor
returns: nothing
example usage:
Code:result = DLL.CallFunction("AutoPlay\\Docs\\PCPower.dll", "SetMonitorPowerState", 3, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);


....peps....read the small print....plz 25% for the first win, 50% for the second win, and 100% of all wins thereafter, as agreed by using this code 