473,689 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2452
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*****@mindsp ring.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.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.m icrosoft.com> wrote in message
news:IU******** ******@cpmsftng xa10.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(B yVal sender As System.Object, ByVal e As
System.EventArg s) 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
4077
by: Codemonkey | last post by:
Hi, I am writing an App in .Net that involves some scheduling of tasks. I was wondering if anybody has come accross any components or examples of how to implement a schedule manager like the one in the Task Scheduler for Windows? Basically I'm after something that'll allow me to specify a "recurring" or "once off" schedule with advanced options like "the first monday in the month" etc.
1
4745
by: Mathias | last post by:
Do anyone have any idéa of how to launch Windows Explorer from VB.NET. When I launch the explorer I also want to show files from diferent directories as the Windows Search function does. Thanks for support / Mathias
4
13570
by: Roger | last post by:
Hi, I have been using this trick for some time on a home page. The idea is to verify the user's browser has Javascript enabled before allowing the user to access a logon page. The NoJavascript.html page has instructions for turning on Javascript. <a href="/NoJavascript.html" onclick="window.location='/Logon';return false;">Logon </a>
7
2626
by: Paul | last post by:
Hi. I need to launch a windows application and then send keyboard event to this process to run certain commands. I've created a COM+ appplication to spawn and talk to the application which works well however the launched application always shows the UI where-as I need this to be hidden, even calling the windowhidden on the process strart info does not work. Does this somehow need to spawned under a different account process ? ...
2
2681
by: domtam | last post by:
Hi there. My goal is to write a windows service that can act as HTTP Request server. How can I do that? I know that I can use ASP.NET to develop a web site to achieve this purpose, i.e. receive HTTP request. However, I'd like it to exist in the form of a "Windows Service".
2
1734
by: jvvhie | last post by:
Hello, I am writing a pure-Python game engine that interprets the code of game objects within the same process with the exec statement. My main goal is to make as much power available as possible and exec seems like the best way to do that. This is my "proof-of-concept" code(only 18 lines and some whitespace, including the test): http://people.ucsc.edu/~jhofmann/programmables.py
19
2575
by: hansBKK | last post by:
Upfront disclaimer - I am a relative newbie, just starting out learning about PHP, mostly by researching, installing and playing with different scripts. I am looking for a host that will provide the right environment for this - running a wide variety of PHP applications. I realise that security is also important, but for now flexibility is more important to me. Note that I'm **not** looking for people to recommend hosting companies, I...
5
6200
by: Stefano Tonello | last post by:
Hi all, I need to call windows' "open with" dialog from my C# windows form application. After the user selects application, control must return to me (I have to launch directly the process). I found this solution: http://www.codeproject.com/KB/shell/openwith.aspx but it's not good for me since it will execute the process directly.
2
2330
by: Mike McGuire | last post by:
I currently have a .NET 2.0 Application that uses "Security.SecureString" to securly pass a password to the process that I am starting within the app. I want to create something similar for a few of our web servers, but the web team does not want to install .NET 2.0 on the servers Is there anything similar to "Security.SecureString" for .NET 1.1? Mike
0
8598
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9077
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8786
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8793
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6457
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2225
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.