windows

Find system folder locations in Python 3.1

I am trying to find out the location of system folders with Python 3.1. For example "My Documents" = "C:\Documents and Settings\User\My Documents", "Program Files" = "C:\Program Files" etc etc. ...

How should I run a background service for creating export files for a web site in the Windows world?

I've created a shiny new ASP.Net MVC site and I have offloaded the 'save as' type of functionality to a helper program that can be run in the background on the server so that the website doesn't need to take all that load. I created it so that it's easy to run from the command line and right now I have it running from a windows schedule...

Installing an application on a Windows system in a secured environment

One of the main advantages of web applications I often hear is that the deployment process is quick and painless, and that it even works in the most sealed off operating systems, as long as a browser is installed. I wonder if it is possible to make a lightweight installer for a thin client desktop application (for example written in C++)...

multiprocessing.Process subclass works on Linux but not Windows

Hi, I'm trying to get python-gasp working on Windows, but when I do import gasp; gasp.begin_graphics() I get the following traceback: File "C:\Python26\lib\site-packages\gasp\backend.py", line 142, in create_screen screen.updater.start() File "C:\Python26\lib\multiprocessing\process.py", line 104, in start self._popen = ...

Detecting duplicate binaries in the same directory (Windows)

Hello! I have about 30 files in a directory varying from 64KB to 4MB that are BIN files. I need to find if there is duplicate files in there... Many files have the same size. I would like to find if there are binary identical files in there. Anyone know a way to do this? I'm under Windows XP Pro. Thanks! ...

[windows] Why so many msvcp80.dll?

My computer have so many msvcp80.dll in different directory. and there are different versions: 8.00.50727.762 8.00.50727.1433 ... applications uses the version under their directory as Private Assemblies with advantages. And also I found a copy of msvcp80.dll under c:\windows\system32. Can I find out which application installed thi...

Can I add custom evaluator for spy++ show to my WM_USER?

Hi, We have an old legacy app that we need to reverse engineer how it works. (The documentation has gone missing.) Our application is communicating with a 3rd party program using windows messages (WM_xxx). So first attempt is to start spy++ and look at what messages are sent when certain events occur. We notice that most events are W...

Using a specific network interface for a socket in windows

Is there a reliable way in windows, apart from changing the routing table, to force a newly created socket to use a specific network interface (I understand that bind() to the interface's IP address does not guarantee this)? ...

the specified module could not be found 0x8007007E

Inside the constructor of a Form when I am stepping through my code, a method declared in the very same form is called. Before I can step inside the method, I get a System.IO.FileNotFoundException with message "The specified module could not be found. (Exception from HRESULT: 0x8007007E)". The member method I try to enter is declared u...

Is there a buffer size attached to stdout?

I am trying to find some information on data limits related to stdout on Windows. I can't seem to find the information on MSDN. Is there a limit to how much data can be written to stdout? If so, what happens if the limit is reached? Is the data lost? If stdout is redirected (for example, by launching the process from .Net and using the...

ways to add text to an image

In my C++ program, I want to be able to add some text over an image. I can already load/save the image, I just need to add text to it. I want to be able to use different fonts, colors, italics, bold, solid/transparent background, have a border around the letters, etc. I've done this in the past by using the old MFC functions to genera...

Command Prompt Closes Too Fast After Running A Service

I have a problem with a service. I have an installed application that runs as a service; when I start that service, a command prompt opens and immediately closes. The program isn't executing properly and I need to see the error output but the command prompt closes too quickly. Is there a way to force the window to remain open? Thanks...

RtlpNtMakeTemporaryKey - VerySleepy indicates that this takes a lot of time

I'm profiling some computationally intensive code of mine, and was surprised to see that the function RtlpNtMakeTemporaryKey takes up a huge chunk of time. It's module is ntdll and the source file is Unknown. Is this a call which is waiting for my slow function to terminate or is it something which I can optimize? ...

php_ssh2.dll for PHP 5.3.1 on WinXP Pro sp3

I had PHP 5.2.2 installed on a previous box (also WinXP Pro sp3) and had gotten the SSH2 extension from http://pecl4win.php.net/ext.php/php_ssh2.dll. Sadly that server seems to be out of commission for now ("The pecl4win build box is temporarily out of service. We're preparing a new build system."). The old DLL doesn't work with the ne...

How do I determine a mapped drive's actual path?

How do I determine a mapped drive's actual path? So if I have a mapped drive on a machine called "Z" how can I using .NET determine the machine and path for the mapped folder? The code can assume it's running on the machine with the mapped drive. I looked at Path, Directory, FileInfo objects, but can't seem to find anything. I also l...

Strongly name three assemblies that reference each other

This is probably really easy, but I'm stumped (and I'm a noob with c#). I have 3 assemblies that reference each other (for example, registering for notification of a delegate method, or calling a public method), all of which compile fine until I try to sign them with a strong name. Then I can't compile any of them, since the other two ...

How to programmatically move Windows taskbar?

I'd like to know any sort of API or workaround (e.g., script or registry) to move (or resize) Windows taskbar to another position including another monitor (if dual monitors). Definitely, we can move task bar by using mouse, but I want to move it by a program, or a sort of automated way. I tried to find Win32 API, but it seems no one do...

Need info about how to associate my applications file extensions with the application using InstallShield 2010

I am using InstallShield 2010 to create an installer for my application but I am having trouble finding any info about how to associate the file extensions my applications uses with the application. Can anyone link me to some docs or give me a quick run down on how to do this? My application is a java application and I am trying to cre...

Compiling Wanderlust for Windows and use it for Gmail.

I'm trying to get Wanderlust working in Windows to connect to Gmail. Compiling the code is much more painful than expected. Here are the barriers so far: Can't download dependent packages: SEMI, APEL, and FLIM. I eventually found newer versions, but I'm not sure they will work. Anyone have the older versions? Needs make and install...

Windows Threads: when should you use InterlockedExchangeAdd()?

The naming of this function seems like this is some complicated stuff going on. When exactly does one know that this is the way to go instead of doing something like this: Preparation CRITICAL_SECTION cs; int *p = malloc(sizeof(int)); // Allocation Site InitializeCriticalSection(&cs); // HINT for first Write Thread #1 ...