Launch "Windows Security" windows from Process.Start

  • Thread starter Thread starter Dean Slindee
  • Start date Start date
D

Dean Slindee

I would like to provide a menu item that the users can click that launches
the same "Windows Security" window that doing a Ctrl+Alt+Delete launches,
but thru a Process.Start. Is this possible, and what is the name of the
..exe and it's location?

Thanks,
Dean Slindee
 
Hi Dean

Yes it is very possible to do what you want. The file that you are looking
for is called taskmgr.exe, so all you need to do is something like this in
the Click event of your button

Process.Start("taskmgr.exe")

Hope this helps.

Neil Knobbe
Visual Basic MVP
 
Hi Dean,

First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to show the same dialog
with when you press Ctrl+Alt+Del.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

Based on my experience I think it is not easy to do this, because we may
need to write a customized GINA Dll to achieve our aim.

For more information, see the Platform SDK documentation for Winlogon and
GINA at
http://msdn.microsoft.com/library/en-us/security/security/winlogon_and_gina.
asp.

Can you tell us what do you wants to do about the windows security dialog,
if you wants to lock the workstation, we have API LockWorkStation, and We
can use ExitWindowsEx windows API to shutdown, restart or logoff.


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
My intent is to give the user a menu item to lock the workstation. Thanks
for the pointer to the LockWorkStation API. I will consult the Knowledge
base articles. Perhaps there is something I can then do in VB.NET.

Thanks,
Dean Slindee
 
Hi Dean,

Here is the simple code snippet to lock the windows.
Declare Function LockWorkStation Lib "user32.dll" () As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
LockWorkStation()
End Sub

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top