473,382 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

windows Key + R and Windows Key + L

i'd like to know that what execution file is for windows key + R and windows
Key + L

is it exsiting file on windows xp??

if so, where can i find this? tell me about this file name and folder path??


May 13 '06 #1
3 4032
Hello PointMan,

WK+R calls "Run" dialog box and WK+L block the station.
It's not the pure apps that you are looking for, it's just calls to the windows
system libs

P> i'd like to know that what execution file is for windows key + R and
P> windows Key + L
P>
P> is it exsiting file on windows xp??
P>
P> if so, where can i find this? tell me about this file name and folder
P> path??
P>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
May 13 '06 #2
thank you michael
if so, i also wanna know what is library fuction in c#??
how can i invoke this hot key?

"Michael Nemtsev" <ne*****@msn.com> wrote in message
news:9c**************************@msnews.microsoft .com...
Hello PointMan,

WK+R calls "Run" dialog box and WK+L block the station.
It's not the pure apps that you are looking for, it's just calls to the
windows system libs

P> i'd like to know that what execution file is for windows key + R and
P> windows Key + L
P> P> is it exsiting file on windows xp??
P> P> if so, where can i find this? tell me about this file name and
folder
P> path??
P> ---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche

May 13 '06 #3
PointMan,
i'd like to know that what execution file is for windows key + R and
windows Key + L


When you press Win+R, the Windows Shell Run dialog box is shown. And, when
you press Win+L, the workstation is locked.

It might be possible to execute these two commands using RunDll32 (see for
example http://www.mediachance.com/faqdll.htm how to lock the workstation),
but since this method is largely undocumented, you are better of calling the
correct APIs directly.

First, to display the Windows Run dialog box, do this:

1. Start a WinForms project in Visual Studio, and add a reference to
SHELL32.DLL to your project (this DLL is in the \Windows\System32
directory).

2. Add "using Shell32;" to your C# file.

3. Type in the following code:

Shell32.ShellClass shell = new ShellClass();
Shell32.IShellDispatch disp = (IShellDispatch)shell;
disp.FileRun();

Secondly, to lock the workstation, do this:

using System.Runtime.InteropServices;
...
[DllImport("user32.dll")]
public static extern void LockWorkStation();

private void button5_Click(object sender, EventArgs e)
{
LockWorkStation();
}

That's it. Have a nice weekend!

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
May 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
7
by: lvpaul | last post by:
Hallo ! I am using IIS-Windows-Authentication in my intranet (web.config <authentication mode="Windows" /> <identity impersonate="true" /> How can I get the users (client) IP-Address ? I...
7
by: Tyler Foreman | last post by:
Hello, I have a strange problem that occurs every so often in my application. It usually takes place when I hide one form and activate another. What happens is I get the following exception:...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
2
by: sambo251 | last post by:
After running a few updates I get this very annoying "Windows Installer" error #1706 that will ne go away! It keeps saying that it cannot find the file "instantsharedevices.msi", that it is on...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.