Click here to Skip to main content
16,005,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Thomas Andersen5-May-03 18:48
Thomas Andersen5-May-03 18:48 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Joseph Dempsey5-May-03 6:16
Joseph Dempsey5-May-03 6:16 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Thomas Andersen5-May-03 18:54
Thomas Andersen5-May-03 18:54 
GeneralNeed Help Auto-Locking NT4.0 Workstation Pin
crasheightball4-May-03 19:54
crasheightball4-May-03 19:54 
GeneralRe: Need Help Auto-Locking NT4.0 Workstation Pin
geo_m4-May-03 21:32
geo_m4-May-03 21:32 
GeneralRe: Need Help Auto-Locking NT4.0 Workstation Pin
Anonymous4-May-03 22:21
Anonymous4-May-03 22:21 
GeneralRe: Need Help Auto-Locking NT4.0 Workstation Pin
geo_m4-May-03 22:36
geo_m4-May-03 22:36 
GeneralRe: Need Help Auto-Locking NT4.0 Workstation Pin
geo_m4-May-03 23:40
geo_m4-May-03 23:40 
an official solution from MS how to lock a NT4 workstation - part of Q262646
....
There is no solution to lock a Windows NT 4.0-based workstation from the command line. You can, however, achieve a similar effect with some additional configuration.

In Windows NT 4.0, you can use the SendMessage call to send a SC_SCREENSAVE message to the topmost window, which locks the workstation if the current user has a screen saver configured and the screen saver is configured to require a password.

To ensure that a screen saver is configured, you can create registry entries. Run a registry (.reg) file that adds the following entries from the command line:
HKCU\Control Panel\Desktop\ScreenSaveActive = 1<br />
HKCU\Control Panel\Desktop\ScreenSaverIsSecure = 1<br />
HKCU\Control Panel\Desktop\ScreenSaveTimeout = timeout in seconds<br />
HKCU\Control Panel\Desktop\SCRNSAVE.EXE = %SystemRoot%\System32\Appropriate screen saver.scr

Some screen savers require additional parameters in HKCU\Control Panel\Screen Saver.screen saver name as well.

After you create these registry entries, the following call invokes the screen saver:
SendMessage(HWND_TOPMOST, WM_SYSCOMMAND, SC_SCREENSAVE, 0)
You must write and compile a short program (.exe file) that contains this call. You can then call your program from the command line to activate the screen saver. Because the ScreenSaverIsSecure value in the registry has been set to 1, this has the effect of locking the workstation.
....
GeneralMeeting trouble when sending TCP package. Pin
George24-May-03 19:16
George24-May-03 19:16 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m4-May-03 21:28
geo_m4-May-03 21:28 
GeneralRe: Meeting trouble when sending TCP package. Pin
George24-May-03 23:08
George24-May-03 23:08 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m4-May-03 23:34
geo_m4-May-03 23:34 
GeneralRe: Meeting trouble when sending TCP package. Pin
George25-May-03 4:12
George25-May-03 4:12 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m5-May-03 9:53
geo_m5-May-03 9:53 
GeneralRe: Meeting trouble when sending TCP package. Pin
George25-May-03 19:06
George25-May-03 19:06 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m5-May-03 22:47
geo_m5-May-03 22:47 
GeneralRe: Meeting trouble when sending TCP package. Pin
George26-May-03 1:52
George26-May-03 1:52 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m6-May-03 2:22
geo_m6-May-03 2:22 
GeneralRe: Meeting trouble when sending TCP package. Pin
George26-May-03 2:58
George26-May-03 2:58 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m6-May-03 4:23
geo_m6-May-03 4:23 
GeneralRe: Meeting trouble when sending TCP package. Pin
George26-May-03 20:31
George26-May-03 20:31 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m7-May-03 4:29
geo_m7-May-03 4:29 
GeneralRe: Meeting trouble when sending TCP package. Pin
George27-May-03 20:54
George27-May-03 20:54 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m7-May-03 21:34
geo_m7-May-03 21:34 
GeneralRe: Meeting trouble when sending TCP package. Pin
George28-May-03 2:09
George28-May-03 2:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.