Invoking the Windows Security Dialog (in C# or VB.NET)

前端 未结 5 1203
你的背包
你的背包 2021-02-06 04:31

I would like to know how to invoke the Windows Security Dialog (press ctrl+alt+del on a windows workstation NOTE: I don\'t want the task manager!) programmatically.

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 05:01

    I would imagine something like this, get the handle of the desktop, using 'GetDesktopWindow', make sure the focus is set to the handle, and Send a keystroke 'Ctrl+Alt+Del' using 'SendInput' or use the 'SendMessage' to send the keystrokes to that handle returned by GetDesktopWindow. It is not guaranteed to work as that is top-off-my-head.

    Hope this helps, Best regards, Tom.

提交回复
热议问题