Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Default windows station name

Posted on 2005-03-15
2
Medium Priority
?
576 Views
Last Modified: 2006-11-17
What is the default windows station name for a user, Administrator? I am looking to use the OpenWindowStation function from the user32.dll.
0
Comment
Question by:DrDamnit
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 2000 total points
ID: 13547202
The default window station name for the logged on user is 'WinSta0' with the desktop 'default'. See e.g. http://support.microsoft.com/default.aspx?scid=kb;en-us;171890 ("INFO: Services, Desktops, and Window Stations") and http://msdn.microsoft.com/library/en-us/dllproc/base/window_station_and_desktop_creation.asp ("Window Station and Desktop Creation"):

"The system automatically creates the interactive window station. When an interactive user logs on, the system associates the interactive window station with the user logon session. The system also creates the default input desktop for the interactive window station (Winsta0\default). Processes started by the logged-on user are associated with the Winsta0\default desktop."

0
 
LVL 32

Author Comment

by:DrDamnit
ID: 13560790
That's what I thought, but I can't get my code to work right. Must be user error. :-)
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Loops Section Overview
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question