windows

How do I get the size of all windows on the screen in windows 7?

Hi all, I am trying to write a program that gets the windows that are displayed on the screen. Something like screen.getActiveWindow().size would be cool, but it only addresses the active window. I am looking for the sizes of all windows on the screen, as well as event information when they are resized, cover each other up. Am I just ...

Close Window for button click

I have been trying to close the window on button click but am unable to do so. I have added javascript window.close() added on the code behind page on button click event all in vain. Language c# or vb.net ...

How do I logout from vbscript?

I'm using a VBScript to run an application on my Win Server 2003, and I want it to log the user off after a set amount of time. Something along the lines of: Set WshShell = WScript.CreateObject("WScript.Shell") Set OExe = WshShell.exec("somecommand.exe") WScript.Sleep 1000000 OExe.Terminate <Insert LogOff code> ...

Why does this Python service stop by itself in spite of an infinite loop?

Hi, I managed to install a Python script as a service using this recipe at ActiveState: win-services-helper. In order to get much use out of it, I included the business end of my program by replacing lines 99 - 100: 95 class Test(Service): 96 def start(self): 97 self.runflag=True 98 while self.runflag: ...

Scripting rsync backup and restore from Windows to Linux

Hi, I have a fairly simply batch file to backup a Directory on Server 2008 using cwrsync to a Linux server, and to restore. Backup script: @ECHO OFF SETLOCAL SET CWRSYNCHOME=C:\Program Files (x86)\cwRsync SET CYGWIN=nontsec SET HOME=%HOMEDRIVE%%HOMEPATH% SET CWOLDPATH=%PATH% SET PATH=%CWRSYNCHOME%\BIN;%PATH% rsync -e "ssh -i new.key"...

How to make a screenshot in Windows 7 with python?

Hi, I along with some friends are trying to do an anti cheats for a game, we chose python because it is multiplatform. The problem is we're trying to make a screenshot of what is shown on the screen, not just the game (with OpenGL) but any windows that are open to detect programs that are superimposed on the image of the game (for examp...

How to tell *which* member in MIB_IPFORWARDROW structure is invalid?

A call CreateIpForwardEntry returns ERROR_INVALID_PARAMETER. The PSDK documentation describes this error as: The pRoute parameter is NULL, SetIpForwardEntry is unable to read from the memory pointed to by pRoute, or one of the members of the MIB_IPFORWARDROW structure is invalid. I know for certain that pRoute is not NULL a...

How can a device driver be EXE like Process Monitor

Process Monitor and Explorer are supplied an EXE file. But they include a driver. -Where is it. By Windows Internals, Process Monitor works by extracting a file system filter device driver from its executable image (Procmon.exe) the first time you run it after a boot, installing the driver in memory, and then deleting the driver i...

How to run a process as current user privilege from an admin process

When a setup program(built by like Inno Setup) does launch a process, the process always be run as administrator privilege. -because setup program had been run as admin. I want to run the child process as current user's privilege. Is there a good way? ...

Windows phone 7 how to get Synchronous http response

I write a class to handle the request to webAnd it has a method which is using WebClient actually to do the main jobwhen the DownloadStringCompleted method has been done,i want to return the value of the response.I want to use that like this: // the pubTimeLine() method return the value //of the request to the web using webclient ...

[VC/MFC]why the app window is affected by other items which move across it ?

I've made two screen shots in order to make the problem specified. The normal style: the affected style after I move some windows such as browsers across it: I wonder why this happened?And How can fix this problem?I'm working with VS2008 on Windows. Thanks in advance! ...

How to update windows explorer's shell extension without rebooting.

There is a windows explorer extension dll. This dll can be update automatically if there is new one in our server. I rename the origin dll and download the new dll. But Windows Explorer never reload a new one. So I kill the windows explorer and relaunch. But this is looked very ugly. And I don't want to recommend a user should reboot. ...

Network Adaptro configured with ip address or not? How to check using vc++/Windows api?

Hi Could any one share about Network Adaptor configured with ip address or not eithor using dhcp or manual. How to check using vc++/Windows api? ...

How and where exactly does the default email client gets set in the registry?

In order to find out what the default email client is, I found the same information over and over again: Look at the default string in HKLM\Software\Clients\Mail. (see for example this related question) However, this seems not to be true for all OSs and/or situations: I have two machines running Win7 64bit, let's call them A and B. A ...

java program to copy files from/to mobile device

Is there a java api that can be used to write a program on a desktop computer, a program to connect to a Windows Mobile 6 device and copy a file from/to the device? ...

Is there a tool for exploring/testing COM objects?

I'm trying to automate a process by using a COM object from Python (win32com), but I'm not getting the expected results... Is there a tool to explore/test COM objects without having to write a specific program? I mean, is there something that allows e.g. to instantiate a COM object and call its methods? (Basically I'm trying to find o...

How can I manually Installing DBD-Oracle 1.17 in ActivePerl on Windows?

After installing Active Perl 5.8.8 Build 822 on WindowsXP, I do not see DBD-Oracle in "View All Packages" of Perl Package Manager. The CPAN location of the same is http://search.cpan.org/dist/DBD-Oracle-1.17/, but I don't know the process to manually install this tar(DBD-Oracle-1.17.tar.gz) in ActivePerl. ...

Making workspaces clickable to start Eclipse on them?

We use a lot of workspaces, and frequently switch between them. I was wondering if there is a trick that can allow me to simply click a workspace in Windows Explorer and have Eclipse started on it. A "create shortcut for Eclipse" creator might also be interesting, but I was envisioning perhaps a special name for the workspace triggerin...

DDK/WDM import wink32.lib into driver

Hi everyone! Recently I was trying to use W32pServiceTable in my driver. I did imported wink32.lib in SOURCES: TARGETNAME=exp TARGETTYPE=DRIVER TARGETLIB=$(DDK_LIB_PATH)\win32k.lib SOURCES=Experimental.cpp MSC_WARNING_LEVEL=/W3 And I declare in source file: extern PDWORD W32pServiceTable; But I am getting symbol unresolved. I read...

Memory usage of C++ application on Windows

Hi, I have an application that does some Monte Carlo simulation. For each run, a 12MB file is loaded into a std::vector<MyData>. The object which loads and stores the data is referenced by a boost::shared_ptr which is removed from the stack when the run finishes. I see the memory usage of the application grow in Windows Task Manager to...