Re: NetworkServerEvent erkennt Standby nicht
Verfasst: 24.04.2013 10:33
Etwas mehr Info zum Event PBT_APMSUSPEND: http://msdn.microsoft.com/en-us/library ... [b]Remarks[/b]
An application should process this event by completing all tasks necessary to save data. This event may also be broadcast, without a prior PBT_APMQUERYSUSPEND event, if an application or device driver uses the SetSystemPowerState function to force suspension.
The system allows approximately two seconds for an application to handle this notification. If an application is still performing operations after its time allotment has expired, the system may interrupt the application.
Windows Server 2003 and Windows XP: Applications are allowed up to 20 seconds to respond to the PBT_APMSUSPEND event. [/quote]
Auf neueren Betriebssystemen hat das Programm also ca. 2 (zwei) Sekunden Zeit, um irgendetwas zu machen, bevor das Programm unterbrochen wird.
Ob es immer möglich ist in dieser Zeit eine Nachricht an den Server abzusetzen, ist fraglich.
An application should process this event by completing all tasks necessary to save data. This event may also be broadcast, without a prior PBT_APMQUERYSUSPEND event, if an application or device driver uses the SetSystemPowerState function to force suspension.
The system allows approximately two seconds for an application to handle this notification. If an application is still performing operations after its time allotment has expired, the system may interrupt the application.
Windows Server 2003 and Windows XP: Applications are allowed up to 20 seconds to respond to the PBT_APMSUSPEND event. [/quote]
Auf neueren Betriebssystemen hat das Programm also ca. 2 (zwei) Sekunden Zeit, um irgendetwas zu machen, bevor das Programm unterbrochen wird.
Ob es immer möglich ist in dieser Zeit eine Nachricht an den Server abzusetzen, ist fraglich.