By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,816 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,816 IT Pros & Developers. It's quick & easy.

Launch "Windows Security" windows from Process.Start

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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

"Dean Slindee" <sl*****@mindspring.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Nov 20 '05 #2

P: n/a
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...logon_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.

Nov 20 '05 #3

P: n/a
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
""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:IU**************@cpmsftngxa10.phx.gbl...
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...logon_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.

Nov 20 '05 #4

P: n/a
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.

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.