windows

Trouble restoring stdout after being redirected to a child process that exits

Currently I have a main process that creates an anonymous pipe and a child process and then uses the pipe to redirect console output to the child process. The pipe is created with CreatePipe, the read handle is passed as the StdIn handle for the new process using CreateProcess, and stdout of the main program is redirected to the write h...

windows subcommand evaluation

linux & unix shells can process subcommands like this. $> command `subcommand` does windows cmd shell similar feature? ...

Python 2.5 Windows Binaries?

I need to test an issue that occurs on Windows with Python 2.5, but the releases page doesn't link to a binary for 2.5. Is there anywhere I could find a copy? ...

Windows azure development fabric load balancer crashes on DotNetOpenAuth redirect action mvc 2

I have cornered this error down to a redirect action call by DotNetOpenAuth(http://www.dotnetopenauth.net/) Basically I have implemented the example here http://www.dotnetopenauth.net/developers/code-snippets/programmatic-openid-relying-party/ In my application while running locally I hit this line return request.RedirectingResponse...

Firefox on Windows not loading @FontFace resource

So I have a bit of a problem. On this page http://www.tylermorriswoodworking.com/pages/recipe-box-engraving-wizard?b=maple&l=cherry&s=3x5&c=42042892 I have a few @FontFace tags to load the custom fonts. On all the browsers it works just fine, except for Firefox for windows. Firefox for mac loads the fonts perfectly. What I am...

Using mingw/msys just for its posix tools: mount point question

I write cross-platform software, so I like my Windows environment to be Un*x-like (I'm an old Unix/IRIX/Linux geek). I just care about shells and tools, not so much about compilers or the build environment (I have a real industrial-strength build system that doesn't depend on mingw or cygwin). I just want a shell window on my Windows b...

Why can't I see WM_VSCROLL messages in my wndproc when using WS_VSCROLL style?

I'm creating a message loop in plain C that interfaces to my Harbour-based project. So far, everything works just fine, except for scrollbars in dialogs which have the WS_VSCROLL style. My message loop doesn't seem to see the WM_VSCROLL message, but it does see the WM_NCLBUTTONDOWN message with the HTVSCROLL value in Msg.wParam. Anybody ...

How to activate a window of an external application

I've used FindWindow to get a handle to a window of an external application. How can I use this handle to activate the window of the external application, if it is minimized or behind other applications on the windows desktop? ...

SQL Server 2008 enterprise setup and virtual memory

Hi we have a server with 32 cores and 256*GB* RAM, we are using this with SQL Server 2008 Enterprise on Windows 2008 R2 Enterprise. Currently windows has allocated automatically a swapfile of 256GB which seems excessive. Is it advisable to hard limit the swapfile to something smaller like 32GB to force it to use the physical RAM? ...

Why does the Python 2.7 AMD 64 installer seem to run Python in 32 bit mode?

I've installed Python 2.7 from the python-2.7.amd64.msi package from python.org. It installs and runs correctly, but seems to be in 32-bit mode, despite the fact that the installer was a 64 bit installer. Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" ...

Is it possible to force an access violation when a specific address is accessed?

We have an array that is oversized for alignment purposes, such that off by one errors are not caught by the usual mechanisms. Is it possible to protect a small, arbitrary region (16 bytes at the beginning and end of an array) in Windows, such that it causes an access violation? Language is C++. ...

Access a COM interface from a service (apache) with PHP

I've been trying to create a PHP script which will run on a locally hosted web server, and will be able to access various programs on my computer through COM. I've had mixed success and failure, and I've been able to narrow down the problem. If I run the php script using php.exe, it works. If I run the php script using apache running fr...

Visual Studio equivalent of Unix 'file' command

I'm new to Windows programming, and I'm looking for an equivalent of the Unix 'file' command that I can run on compiled objects (including .lib files and executables) to discover with what bitness they were compiled. For example, on my Mac I can run: file /usr/bin/python /usr/bin/python: Mach-O universal binary with 3 architect...

Avira Antivirus detects the listen function as backdoor model

The function listen( ListenSocket, SOMAXCONN ) is detected by avira antivirus as a backdoor model. How can I write small client/server applications without a listen function? Is there a way to do it? ...

find out the keyboard shortcuts of a window programmatically

is there a way to find out what keys is a window listening for (preferably Windows)? or at least the menu Alt-keys? ...

description for event id from source cannot be found

When I write a log into windows event log, I get the event below, what's the root cause of this message, and how can I fix it? Many Thanks The description for Event ID 51001 from source RRWS cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted....

How can I disable "Microsoft Visual C++ Debug Library" exception dialogues?

Hi guys, If I run an executable that throws an exception ( built in debug ), I will receive an error dialog, saying something like "Debug assertion failed" and then some information about the exception. While this happens, the program's execution is suspended, until I choose one of "Abort", "Retry" or "Ignore" options. The thing is, I...

What are the difference between MS-dos FAT32 format and windows FAT32 format

What are the difference between MS-dos FAT32 format and windows FAT32 format? ...

c++ reading and writing windows registry properly

So I have been stuck on this for a while... thought I got it to work, but it breaks sometimes and I am not sure of the exact reasons... I am not sure if this matters but I am writing this inside Browser Helper Object (BHO)... Is IE always 32 bit process, no matter whether it is running on 64 and 32 bit OS? so I want to be able to read ...

Problem in process hooking

I have a process (say, for example, MyProcessA), hooked an exe and injected my dll (MyDll.dll) into the process space of MyProcessA, so even if it's gonna create n number of child processes it will be process hooked as well. I have no problem in hooking and injecting the dll into the process. I have hooked all file and process dependant ...