I am trying to determine a window control's visibility that has been hidden or enabled with CWnd::ShowWindow(). (or ::ShowWindow(hWnd,nCmdShow))
I cannot simply use ::IsWindowVisible(hWnd) as the control is on a tab sheet, which may itself be switched out, causing IsWindowVisible to return FALSE.
Is there a way to get the SW_SHOW/HIDE ...
I have this confusion to develop this application in Win32 or WPF (.NET). This application primarily consists of a text editor (think of similar to the one in MS OneNote) with lot of customized requirements compared to a general text editor.
I was thinking to use VC to work on this as lots of custom drawing is required. What do you guys...
I need to print relatively complex layouts to networked/shared printers with Perl and I haven't had any luck finding modules or examples to help me in the task. Does anyone have any links that could help me out?
I presume that what I want to do will work as Postscript.
update: Ok, I don't really need help with how to generate PDF or P...
I'm currently working with WatiN, and finding it to be a great web browsing automation tool. However, as of the last release, it's screen capturing functionality seems to be lacking. I've come up with a workable solution for capturing screenshots from the screen (independently generating code similar to this StackOverflow question) in ...
I am currently doing this as follows:
// _Container is the panel that the program is to be displayed in.
System.Diagnostics.Process procTest = new System.Diagnostics.Process();
procTest.StartInfo.FileName = "TEST.EXE";
procTest.StartInfo.CreateNoWindow = false;
procTest.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
procTest.Star...
I'm creating a task-manager type application in C++, and I'm currently using:
`
void MyFrame::ProcChecker(bool showmessage=false){
HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
PROCESSENTRY32 *processInfo = new PROCESSENTRY32;
processInfo->dwSize = sizeof(PROCESSENTRY32);
int index = 0;
string procList = "";
...
I have a test that launches an app and verifies it has launched through calls to GetForegroundWindow(). The test is run on a remote machine that we usually access through remote desktop. When we have a rdp session open to the machine, the test completes and all is well. However, once we close the remote desktop, the test fails because Ge...
I am working on my keystroke logger for personal interest and asked a question related to this about yesterday; While loop using a lot of CPU.
The issue with the program was that it took too much CPU Usage, and people have suggested to make the inputs key-event based.
Since I'm new to the Win32 API, I try to look for references and tut...
Can windows detect when a monitor, mouse or keyboard is disconnected from the computer? If so what Win32 API is used for this?
...
I am writing a small C# app to disable a device (my laptop touchpad) whenever another mouse device is detected, and enable the touchpad again if a mouse is not detected. I am not even able to disable the touchpad in device manager (it is running on the default mouse class driver).
I am getting into device driver development so I though...
Hello All,
How do I create a timer in C and after the time expires ,I should be able to call a callback function . The platform is windows.
Can someone guide me
Regards,
Mithun
...
I need some kind of event from Windows whenever there is a monitor that's getting plugged into system. Is there any API in Windows to do that. BTW, it is an C++ application
...
I'm new to c++. I made a c++ program using VS 2008 Professional. I started with the Win32 template that created a window for me. I compiled it on Vista 32. I brought the compiled exe to my old XP sp2 computer, and it tells me the application configuration is incorrect. Is there something im doing wrong? How do I make it platform independ...
Why does the root directory of a process, started by a windows process manager, change to the directory of where the pm is located?
Using msdn process manager code to create a pm service to run a few exes.
The exes save log files in the root relative to their location.
When started by the process manager, they are saving to the process...
Is there any API in Microsoft DNS Server 2008 to add new forward DNS using VBScript or PowerShell or P/Invoke or WMI?
It's easy to generate plain text file and put it into \system32\dns.
How to replace a number manual commands in MMC with just a script execution?
...
I'm building a c++ tetris game (not c++ .Net). I feel my controls are weird. I want to make it so that when user presses one of the arrow keys, about 10ms of holding it down will start the repeat function windows has. It is set to about 500ms by default, and it is too laggy for my game. How can I set the speed at which it changes from th...
In general, the Screensaver will run when we do nothing for a period of time.
Now i wanna know how to get the unactive time.
In another word,i want to make a program which would run a function if we do nothing for a period of time.
Now i can use mouse or keyboard hook to solve the problem.
But you know,it needs administrator permissions....
At my company we have a product which pretty much interacts with everything you can imagine... registry, databases, devices, etc... it is composed of many parts but the entire application is launched by a single executable (start.exe) which is responsbile for launching everything else - this is all legacy code and run under a USER accoun...
I've been trying to use WTSEnumerateSessions to determine how many users are currently logged on, as suggested in this post.
My main problem is not understanding how to use the contents of the WTS_SESSION_INFO struct returned to determine how many users are logged on. In Windows XP Pro SP3, when a single user is logged on, I get two lot...
How can I have my Perl script detect it's running on a 64-bit Windows machine, even if it's a 32-bit perl?
...