windows

Form.ShowInTaskBar / Process.MainWindowHandle

When an application's main Form - the one passed to Application.Run() - has this.ShowInTaskBar = false; then, an instance of Process representing that application has a MainWindowHandle of 0, meaning that Process.CloseMainWindow() does not work. How can I get around this? I need to cleanly close down the Form via the Process instance...

How to check if a Win32 thread is running or in suspended state?

The title says it all. I didnt find any Win32 API which gives the state of a thread. So how do I get the Thread state? ...

Sql Server 2005 enterprise on Windows 7

Is there any possibility to install Sql Server 2005 enterprise on Windows 7? thank you ...

how to mark folders for deletion C#

Hi, How would I go about marking one folder for deletion when the system reboots, using C#. Thanks, ...

How to retrieve the selected text from the active window

I am trying to create a simple open source utility for windows using Python that can perform user-defined actions on the selected text of the currently active window. The utility should be activated using a pre-defined keyboard shortcut. Usage is partially outlined in the following example: The user selects some text using the mouse o...

UIAutomation with ToolStripStatusLabel

I have a WinForms app, and I can't seem to access the text of a ToolStripStatusLabel through UIAutomation. Microsoft implies that the support for StatusStrips (and presumably items within them) is limited, but this seems like a basic enough use case that it should work. The control shows up with ControlType.Edit in UISpy, and appears to...

How can I set the RAILS_ENV in a Windows console?

On Linux and OS X, I'm accustomed to running Rake tasks in specified Rails "environments" by doing this: $ export RAILS_ENV=monster_island ; rake monsters:destroy_all How can I do the equivalent if I'm running the task on Windows XP in a Windows console? ...

Django App CSS working in Safari 3, not in Firefox 3.

I'm working my way through a Django book and I just noticed something strange the other day. The CSS code works just fine in Safari 3 (on Mac and Windows) but not in Firefox 3 (Windows). I'm running the django dev web server and I can see the css file being called in the console when in Safari but not when using Firefox. Any idea on w...

Access Gnu C library under Windows

I'm trying to compile a C program that I downloaded off the internet using cl.exe at the command line in Windows. This file includes gnu C library files such as getopt.h and unistd.h, which are not available by default under Windows. How can I gain access to these (while still using the cl.exe compiler). Thanks. ...

Execution order with threads and PyGTK on Windows

I'm having issues with threads and PyGTK on Windows. According the the PyGTK FAQ (and my own experimentation), the only way to reliably update the GUI from a child thread is to use the gobject.idle_add function. However, it can't be guaranteed when this function will be called. How can I guarantee that the line following the gobject.i...

Who owns a file handle in windows?

How do you discover which process has an open handle on a file? Specifically, how do you do this programmaticly? ...

Where to store Registry data for All Users

I would like to share a small amount of data between All Users in the Windows Registry. For shared read and write access between any user that logs into the machine or a service on the machine. Is there a location where this can be done? I have tried using "HKEY_USERS\.DEFAULT\Software\" but this seems to be blocked by the Vista UAC rule...

How to create a Process that outlives its parent

I'm trying to launch an external updater application for a platform that I've developed. The reason I'd like to launch this updater is because my configuration utility which handles updates and license configuration for the platform has shared dependencies with other assemblies in the folder where the update will be deployed. So, while...

Interprocess communication on windows

I have a TCL script running on windows. I need to communicate to a old vc++ 6 app running in a different process. I need to have 2 way communication. In Linux I would use dbus, but what IPC strategy should I use for windows? ...

How can I learn about cross platform game development?

How do companies like Valve manage to release games to all three major gaming platforms? I am interested in the best-practices regarding code sharing specifically between Windows, Xbox360 and PS3, since the ideal solution is to reuse as much code as possible instead of rewriting the whole thing for every platform. ...

How do I make a file self-update (Native C++)

I'm using Microsoft Visual Studio 2008 with a Windows target deployment. How would I make a file "update itself"? I've already got the "transmitting over a network" part down, but how do I make an executable write over itself? Basically, I want to write an auto-updater for a directory that also includes the auto-updater, and the updater...

How to debug heap corruption errors?

I am debugging a (native) multi-threaded C++ application under VS2008. On seemingly random occasions, I get a "Windows has triggered a break point..." error with a note that this might be due to a corruption in the heap. These errors won't always crash the application right away, although it is likely to crash short after. The big probl...

Windows 7 - What to expect from a developer's standpoint?

What features can I look forward to in Windows 7 that will: Make my job easier as a developer. or... Make my job "different"(harder) as a developer. I've been hearing a lot about performance improvements and a few UI effect enhancements, but nothing really about what development on Windows 7 will be like. Thanks. ...

Where are MSTAPI request IDs initialized?

I've inherited some code that implements and talks to the MSTAPI interface. I am curious where the request ID's are initialized (or if they are). By request ID, I mean, for example, the parameter idRequest to the LINE_REPLY Message. The reason I'm curious is that when I have the TSP and the client display request IDs, I see the follow...

Mac client can't resolve Windows Home Server name

I think this is more a Mac networking configuration issue than anything else, but am not sure. I have Subversion set up on my Windows Home Server machine (similar to this: http://www.hanselman.com/blog/RunningASubversionServerOffYourWindowsHomeServer.aspx). This setup has been working for me for months, using Windows clients. Now I'm ...