windows

Technology to Prevent Multiple logins to the Same Computer

I re-asked this question here because the people at ServerFault deemed that this is the appropriate place to ask this. I am trying to prevent people from multiple login into one single computer and use my application simultaneously. In other words I want to prevent it from running twice on the same computer, at the same time In any giv...

ContextMenuStrip opened event doesn't fire after opeing event

HI everyone, I have a UserControl with a ContextMenuStrip attached to it. I want to display ContextMenu base on which object was clicked on the surface of the control. The issue is that, at the first launch, when I right-click on the control's surface, the contextMenuStrip doesn't show up! I set breakpoint inside both contextMenuStri...

Debug Build App locating Release CRT Assemblies

We have a c++ application which I recently ported from Linux/gcc to build on Windows with Visual Studio 2005. The app uses a 3rd party library which only provides DLLs which use the optimised CRT DLL (i.e. they don't provide equivalents which link to the debug CRT DLL). With VS2005 this didn't seem to be a problem = the debug build found...

SHGetSpecialFolderPath, how to access 64bit CSIDL from 32bit application

Is there a way from a 32bit application running on a 64bit system to have access to the default folders for 64bit applications? For example, using SHGetSpecialFolderPath with CSIDL_PROGRAM_FILES from a 32bit application returns "C:\Program Files (x86)' If the same call was used from a 64bit application, I would get "C:\Program Files"....

CheckedListBox used from Python(pywin32)

Does anyone know how to get the list of items and check/uncheck items in a CheckedListBox from python? I've found this to help me partly on the way. I think I've found the handle for the CheckedListBox(listed as a SysTreeView32 by WinGuiAuto.py). One usage will for my part be to create an autoinstaller that manages to uncheck all checkb...

Programmatically add 'My Network Place' for FTP site?

Is there anyway I can create a small exe or batch file to setup a new 'My Network Place' in Windows? Its for an ftp site if that makes any difference. XP will primarily be the target machine but If I can find something that will work on Vista too thats great. ...

Hook into and log "everything" in the windows message queue

Has anyone got a working code example of how to connect to the windows message queue(post/sendMessage) and log all messages there? Preferably in Python. I'm interrested in this to easier be able to create test-scripts that emulates user input. ...

CouchDB on Windows?

I started exploring CouchDB and I am interested in following: Is there or will there be a Windows install? If there is, is there a shared hosting provider that offers CouchDB? Not knowing much about it, can it be somehow embedded in my application or bin deployed (don't laugh). ...

ReadProcessMemory returns a larger buffer (C, windows)

I'm trying to read a process memory using the following code: void readdata(HANDLE phandle, LPCVOID paddress, SIZE_T datasize) { char *buff; SIZE_T dataread; BOOL b = FALSE; buff = (char *) malloc (datasize); b = ReadProcessMemory(phandle, paddress, (LPVOID)buff, datasize, &dataread); if(!b) { printf(...

Which DVCS would work best on Windows for my scenario?

At work I use ClearCase and SourceSafe, but have found some time to do some time to code for myself enroute thanks to a disposable laptop. However, I wish I had a lightweight VCS on my system using which I would be able to make changes to my code during the commute and then push/grab them from my Linux systems. I use git on my home sys...

What benefit does MSDN article on CoRevokeClassObject talk about?

MSDN article on CoRevokeGetClassObject() says that when the COM server calls it the class object referenced by clients is not released. Then the following comes: If other clients still have pointers to the class object and have caused the reference >count to be incremented by calls to IUnknown::AddRef, the reference count will not be...

Change Video Depth Setting of the Network Services Account

We're running into issue where the Network Services account that ASP.NET uses has a video depth of 16. We need it to be 32. This affects image decoders that use hardware (annoyingly). Not being a "device" person I'm not sure how to go about changing this setting from an installer. Any help is appreciated. ...

SOLVED: C# System.Windows.Forms.TreeView: Stop auto expand/collapse on double-click (and execute another handler)

Hi all, Is there a simple way to disable the auto-expand/collapse of a TreeView node when it is double-clicked? I've been unable to find an answer to this question that works without checking in BeforeExpand/BeforeCollapse if the current system time matches that expected for a double-click - overriding OnNodeMouseDoubleClick and/or OnD...

How to traverse folder tree/subtrees in a windows batch file?

In a windows batch file, is there a way to traverse a folder/subfolders hierarchy doing some action on each file? ...

Post-commit update on windows

I'd like to configure svn so that very 'commit' is reflected in the appropriate folder within the (web) server. When initially configuring svn I imported the files into 'webdev/trunk/' keeping their respective directory structure: htdocs/ | application/ | | models/ | | views/ | | controllers/ | | public/ <--- web ro...

Embedding Windows Python in Cygwin/GCC C++ program

I am currently working on a Cygwin/GCC application written in C++. The application requires embedding of python to run plug-ins, I've successfully embedded using the Cygwin python libraries and was able to run simple python files as part of the program. However, the python files now require the use of a windows GUI framework (wxPython), ...

Windows batch script to copy and modify files containing redirect characters

We are trying to convert a bash shell script into a Windows batch script. We ship these scripts with our software product, and we cannot assume that the customer will have, or will be able to download, sed/awk/cygwin or any other non-standard tools. Therefore, the script must work with whatever tools come out-of-the-box with Windows. ...

Is there any way to redirect stderr output from a command run with “start” in the Windows command line?

I have a program that I want to automate runs for, since it takes awhile to complete. For some reason it outputs everything to stderr instead of stdout, and I'd like to check on its progress, so I find myself needing to redirect stderr output within a start command. I tried this: start "My_Program" "C:\Users\Me\my_program.exe" --some -...

Is there any way to redirect stderr output from a command run with "start" in the Windows command line?

I have a program that I want to automate runs for, since it takes awhile to complete. For some reason it outputs everything to stderr instead of stdout, and I'd like to check on its progress, so I find myself needing to redirect stderr output within a start command. I tried this: start "My_Program" "C:\Users\Me\my_program.exe" --some -...

What is the best VCS Solution for Windows?

My code base is getting quite big and it's difficult to organize all the different branches using just directories, I was wondering what would be a decent version control system for my own personal use that works (with little hassle) on Windows? PS: I'm not looking for hosted VCS like GitHub, SourceForge or Google Code. ...