Einzelnen Beitrag anzeigen

Benutzerbild von chaosben
chaosben

Registriert seit: 27. Apr 2005
Ort: Görlitz
1.358 Beiträge
 
Delphi XE2 Professional
 
#4

AW: Dienste und NotifyServiceStatusChangeW

  Alt 23. Aug 2011, 11:20
Das solltest du lieber nicht tun denn:
Zitat von MSDN:
Note that certain functions in the Windows API, including NotifyServiceStatusChange and other SCM functions, use remote procedure calls (RPC); these functions might perform an alertable wait operation, so they are not safe to call from within the callback function
Die Lösung ist:
Zitat von MSDN:
Instead, the callback function should save the notification parameters and perform any additional work outside the callback.
Benjamin Schwarze
If I have seen further it is by standing on the shoulders of Giants. (Isaac Newton)
  Mit Zitat antworten Zitat