472,139 Members | 1,435 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,139 software developers and data experts.

Launch "Windows Security" windows from Process.Start

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
4 2344
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
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
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
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.

Similar topics

1 post views Thread by Mathias | last post: by
7 posts views Thread by Paul | last post: by
2 posts views Thread by jvvhie | last post: by
5 posts views Thread by Stefano Tonello | last post: by
2 posts views Thread by Mike McGuire | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.