windows

[WinAPI] How to change the order of buttons on the taskbar?

There are a few freeware tools out there (e.g., Taskbar Shuffle, XNeat, etc.) which have the ability to change the order of the buttons on the taskbar, without actually closing or opening any windows. Unfortunately, none of them appears to be open-source. What are the API calls required to change the order of buttons in the taskbar? ...

Windows system monitoring and profiling

I have several dozen 64-bit Windows 2003 servers in a high performance environment with very bursty system utilization. I am looking for a tool (or tools) to monitor and analyze system performance (eg, CPU utilization, bandwidth, etc). This tool can either query servers from a central location (SNMP) or require installation of a compone...

How to stop EnumWindows running infinitely win32

The code worked all along. Somehow I manage to get Visual C++ Express not hit the break point on the final return statement and it appeared to run for ever. In the example code bellow EnumWindows enumerates infinitely. How can one make it stop after all windows has been enumerated. #include <Windows.h> BOOL CALLBACK EnumWindowsProc(HW...

How can I use GetNextWindow() in C#?

The Microsoft WinAPI documentation appears to suggest that user32.dll contains a function called GetNextWindow() which supposedly allows one to enumerate open windows in their Z order by calling this function repeatedly. Pinvoke usually gives me the necessary DllImport statement to use WinAPI functions from C#. However, for GetNextWindo...

Error redirecting to a custom URL protocol

In my post here, I made mention of having an issue with a custom URL protocol link being sent in an email. I got around that issue by sending a link to a web page, which then did the redirect to the custom URL protocol (presumably the issue with sending the direct link was that Gmail (and possibly other providers) were seeing my protocol...

Embedding an external executable inside a C# program

How do I embed an external executable inside my C# Windows Forms application? Edit: I need to embed it because it's an external free console application (made in C++) from which I read the output values to use in my program. It would be nice and more professional to have it embedded. Second reason is a requirement to embed a Flash proj...

DVCS with a Windows central repository

We are currently using VSS for version control. Quite few of our developers are interested in a distributed model (And want to get rid of VSS). Our network is full of Windows machines and while our IT department has experience maintaining Linux machines they would prefer not to. What DVCS systems can host their central repository on Win...

How do you join a server to an Active Directory (domain)?

Need to launch a new ASP.NET site on this server but need to be joined to our Active Directory domain, anyone know how this is done? ...

Renaming A Running Process' File Image On Windows

I have a Windows service application on Vista SP1 and I've found that users are renaming its executable file (while it's running) and then rebooting, thus causing it to fail to start on next bootup because the service manager can no longer find the exe file since it's been renamed. I seem to recall that with older versions of Windows yo...

Getting name of windows computer running python script?

Basically, I have a couple Windows computers on my network that will be running a python script. A different set of configuration options should be used in the script depending on which computer is running this script. How would I get that computer name in the python script? Let's say the script was running on a computer named DARK-...

windows user domain account question

Hi I have one question regarding domain account. I have one domain controller where all the user information are stored. I have joined the domain on my laptop but I observed that I am able to log-in using domain credentials even if domain controller is down. How is this possible? Kind Regards PK ...

Linuxlike Ctrl-C (KeyboardInterrupt) for the Windows cmd line?

I've been forced into using a command line in windows and wondered if there were Linux-like keyboard shortcuts? I googled and didn't find what I was looking for. Things like ^C, ^Z and such? Thanks all! ...

Modifying the Power Scheme using Batch Files in Windows XP

I'm trying to write two batch files that will allow me to switch the Power Scheme (Control Panel -> Power Options -> Power Schemes Tab) from Home/Office Desk to Portable/Laptop and back. My operating system is Windows XP SP3. My reason for doing this is because I want to disable SpeedStep when I'm playing games on my laptop (i.e. put it...

C/C++ How to tell if a program is already running?

In a Windows environment, I don't want two instances of my program running at the same time. Related Is using a Mutex to prevent multiple instances of the same program from running safe? ...

java impersonation to connect to sql server using windows authentication

right now I have the following architecture built with classic asp and visual basic 6 I have a COM+ component developed in VB6 which connects to the dabatase. I set the DB conf thru an .udl file configured with integrated security. At the web server (IIS) I register the componente with the com+ manager, and configure it to be run under...

Making existing C# Windows Application run on linux

Duplicate: http://stackoverflow.com/questions/800999/run-net-exe-in-linux Hello, Is it possible to make my existing Windows Forms Application made using Visual Studio 2008 and .Net framework 2.0 run on Linux by recompiling in Linux with less/No code changes? Thanks ...

Localization support for Chinese

Hey guys... I need to support Chinese in one of my application on Windows, the problem is that I need to support for Chinese Mandarin and I did not find any locale code for it, can you clarify whether Windows support Mandarin chinese or is there any alternate?? ...

windows form application

hello, i have a code in c++ of binary search trees & i want to include it to windows form application to do it by windows can any one help me how can i include the code and how to do it and any other code THANX........................ ...

What are valid characters in a Windows service (key) name?

Does anyone happen to know what the convention for Windows service key names is, which characters are legal? ...

Is there a tool to monitor synchronisation objects (mutex, events, semaphores) in Windows?

In Windows, is there a tool to monitor the status of process synchronisation objects? ie. event/mutex : signaled or not signaled semaphore : count Better yet, to log which thread did what, eg. "thread #5421 Signal Event - testevt" ...