...überprüfen, ob die Arbeitsstation gesperrt ist?
Autor: Thomas Stutz
function IsWorkstationLocked: Boolean;
var
hDesktop: HDESK;
begin
Result := False;
hDesktop := OpenDesktop('default',
0, False,
DESKTOP_SWITCHDESKTOP);
if hDesktop <> 0 then
begin
Result := not SwitchDesktop(hDesktop);
CloseDesktop(hDesktop);
end;
end;
printed from
www.swissdelphicenter.ch
developers knowledge base