thanks for information about the uppercase letters.
i was not aware of hte caps lock on.
i have posted it in suggestions forum 3 days ago and i got good reply.
i request you also to suggest those who get their problems solved.
It is said that using the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Policies\System\DisableTaskMgr
we can disable Task Manager for all users of a computer.
Refere to :http://www.pctools.com/guides/registry/detail/163/.
As I test it, in both Win2k and WinXp, its not true. The registry key is only effective if used with HKEY_CURENT_USER, not with HKEY_LOCAL_MACHINE.
Can anybody help me with that, plz?
Plz, remember that I have to do this in a MFC C++ program, so I can't use Group Policy Editor of Windows.
I have already solved this problem using the 'Restrict Run' feature of windows(which also uses registry keys). Using this feature I inhibit running of all programs except the programs that I state. Hence, the user can't run regedit.exe program to edit the registry.
Plz, just help me with disabling task manager for ALL users of a PC.
Or tell me why HKEY_LOCAL_MACHINE does not work, despite being mentioned in many websites.
My application has dependency on ws2_32.dll. Now this(ws2_32.dll) library has dependency on msvcrt.dll. Do I need to ship msvcrt.dll with my application installer or it comes by default with OS installation?
Hello all, longtime fan of the Code Project - first time posting.
I have some controls on a dialog box that I want to make "Scrollable" in the horizontal direction. There are multiple controls on the dialog box and then entire group of them are around 1000 pixels in width. When this dialog box is less than 1000 the user has the option to scroll horizontally. When scrolling left, the controls to the far left of the dialog will "disappear" to the left. I do this by passing (calculated) negative values to MoveWindow() for the first two parameters (the x,y position parameters).
Now, this all seems to work fine, I just want to make sure that I'm not going to cause some problem by passing these negative parameters to MoveWindow(). I've read all the documentation on MoveWindow() and scoured the web and nowhere have I seen anything that says: "Do not pass negative values to MoveWindow()"...
Anyone see any problem with this? Or anyone think that it's OK what I'm doing?
Thanks in advance - I'd greatly appreciate any feedback from the MFC/VC++ gurus out there.
Thanks for the quick response. I know, I take it you're joking on your first comment, but in all my times of programming in MFC/VC++ I am always, always, always very careful to use functions only how they were designed because I have found that when I don't strange things can in fact happen - even the ones you mention. My favorite is when something works on 9 out of 10 machines (and you don't find it until post-implementation). That's what I was worried about here.
Do you know if any MS documentation exists stating that areas outside the window are clipped? I would not find to too far-fetched if MoveWindow() is poorly implemented and passing in negative x,y values resulted in some memory somewhere being overwritten...
I can't find a specific documented sentence that states this.
This has been the behavior of windows since the start of Windows.
Windows has always kept mis-behaving apps from drawing outside their windows.
You can move all your controls yourself for scrolling if you want to. You're also free to hide
child windows that are outside the visible client area of the window if you feel better about it.
Of course, for child windows partially outside the client area of the parent, you'd need to handle
all clipping. It could be a lot of work for something Windows will do with one function call...
The ScrollWindowEx() API will move the child windows for you if you use the
SW_SCROLLCHILDREN flag. If you try this, you'll see that Windows happily moves the
child windows to negative coordinates.
Cool, much appreciated feedback Mark. Originally my plan was to just hide the controls where any part of them were outside the client area but I think it looks cooler if the controls only disappear beyond the viewable area.
Also, I wasn't aware of ScrollWindEx(). Looks like it will be useful for what I'm doing.
your pose was very interesting and the solution given by MARK is highly appreciable.
even i had this doubt long ago,
but some body misleaded that, it is not possible,
so i took it easy.
i request you to prefix your subject name with [SOLVED] such that, it will be very good to see it on the forums.
i request all the other members to follow this idea.
I'm working on an application that uses the Scheduled Task APIs... I am unable to get the "detailed status" that appears in the GUI from anything in the API.
For example, let's say I've got a scheduled task that has a bad user/password.... in the Win2003 GUI, the "Status" column has the following:
"The scheduled task did not run because an incorrect password or user name was entered"
However, nothing in the API can get me this error code (0x8007052E)... I've tried:
ITask.GetStatus = returns 0x41300 (Which is "Task is scheduled")
ITask.GetWorkItemData = return a 0 for the length of the data (so there is no application specific data)
ITask.GetExitCode = return 0 because the last time it did run, it ran fine
What am I missing?
Visuall C++ 6.0 using Microsoft Platform SDK for Windows Server 2003 R2
on Windows XP Prof SP2
do u know how can i disable expansion of what i've collapsed to definition which automatically occurs when i wait remaining on the line? i need not it to expand and want it to remain in the definition and collapsed until i manually toggle outlining.
Last Visit: 31-Dec-99 19:00 Last Update: 19-Jan-21 18:26