windows

.NET inter-process "events"

I have multiple instances of the same application running. The user ask can click "Quit" on each instance to shut it down. I would like to add the choice to "Quit All Instances", which will raise some kid of "event" that notifies all instances of the application that they should close. I don't need to transport any data along with this ...

Should I pass sensitive data to a Process.Start call in .NET?

I'm working on a .NET Windows application that will use Process.Start to launch another internally developed .NET application running on the same PC. I need to pass database connection information, including a user ID and password, to the target application. I'm trying to determine whether I need to encrypt the information before I send ...

Commands Visibility at Command Prompty Not Using System32

Hi, Let's say I have a foo.exe file that I want to use it from windows command prompt. I will go to the folder which contains foo.exe and run it. Now, if I want global access for foo.exe from anywhere in the command prompt I will put foo.exe in System32 folder. This process makes System32 a dump ground. I was wondering if there are a...

How does the OS know what to do with a file when the "Open With..." option is selected?

Explanation: I don't remember about Linux and I don't know about OS X, but in Windows you can right-click a file and select a program to open it. But how does the OS know exactly how to make the program open it? Does it keep track of the "Open file" dialogs the program has? Does the developer have to specify a special event handler or so...

How can I capture output from the Windows cmd shell?

Is there any way with, say Perl or PHP, that I can grab output from another process that outputs to the Windows cmd shell? I have a game server that outputs certain information, for example say 'player finished track in 43s' and I want to grab that line and use Perl or PHP to send a request to a webserver to update ranks on a web page. I...

Automate SSH login under windows.

Hello guys, I want to be able to execute openssh with some custom arguments and then be able to automatically login to the server. I want that my script will enter the password if needed and inject 'yes' if I'm prompted to add the fingerprint to the known hosts. I've found SharpSsh for C# that do that, but I also need to use -D parame...

How to set foreground window by partial title name>

I want to bring another application into the foreground, however, I only have a partial name of the window. Back in the day, I'd hook into the EnumWindows API and look for what I needed. Is there a way to do this better in C#? An example would be great. ...

What Windows C++ IDEs support the new C++0X standard?

What are excellent C++ IDE options that support the new standard c++0x (windows os friendly) besides visual .net 2010 (the beta is way too slow/clunky)? ...

Emulating joystick programmitically

I want to emulate a joystick using keypresses and/or mouse input. So other programs/games will think that user is using a joystick while he is using a mouse. So the program will install kindof a driver for fake usb or fake an existing joystick. There is an existing program called PPJoy which does the same thing but sadly its closed sou...

In Windows, What Makes qmake Append a "d" to a Debug Target?

I'm using a provided .pro file and for some reason, it's configured so that the debug libraries do not have "d" appended to their library name. What causes this and how do I restore it? E.g. QtGui4.dll (release) and QtGuid4.dll (debug) Thanks. ...

Unix permissions from Windows

Hi all, I have a D-Link DNS-323 NAS, running some sort of Linux as its OS. I map a volume as a share in Windows Vista (Ultimate SP2). There are some directories and files on that share that I cannot change/delete - no matter what I try. Trying all of Windows security/permissions dialogs don't work, as the files owner is "Unix/root" and a...

How to terminate a hanging thread inside a dll correctly?

Hi Everybody, I have a third party library that contains an error. When I call a function it may hang. The library function is called inside a dll. I decided to move the call into the thread and wait for some time. If thread is finished then OK. If not – I should terminate it compulsory. The simplified example here: unsigned Counter =...

Getting faulting module OLEACC.dll, version 4.2.5406.0 error in Event viewer application log ?

Hi Friends, My application crashes with an error saying "Demo Application pk/si component has stopped working". The systems Event Viewer log shows an error with the following details. "Faulting application Demo.exe, version 1.0.0.1, faulting module OLEACC.dll,version 4.2.5406.0, time stamp 0x4549bd93,exception code 0xc0000005,fault of...

(C#) How to get the point to pixel relationship for my screen?

Hello. From what I've understood the relationship point to pixel will depend on the screen resolution. So how can I calcule it at run-time in c#? Thanks ...

Improving WPF application speed over remote desktop?

In our scenario, we have a wpf application that is used by users over remote desktop, and we found the user experience is very slow. Any suggestions for improving the user experience in this scenario? One point might be to disable any animation/storyboards, and avoid using gradients in the UI. More thoughts are appreciated. ...

How to remove windows user account folder using C#?

Hi, I have application which creates some windows user accounts, on uninstallation I remove the Windows User Account, but the folder for that user remains there (For example C:\Documents and Settings\UserName\" How can I remove that folder using C#? Thanks, ...

NLS sorting changes for Windows 7

According to this article, there will be NLS sorting changes in Windows 7 that may affect certain applications. I am trying to figure out if the application I am working on will be affected by these NLS sorting changes. I did some searching on msdn and identified a list if NLS sorting functions: CompareString CompareStringEx CompareSt...

How do I detect Windows Small Business Server operating system?

My employer is considering releasing two versions of the same Windows Server-based product; a cheaper "small business" edition and a more expensive "enterprise" edition. There will be a number of differences between the editions, but ideally we'd like to restrict the "small business" edition to only install on Microsoft Small Business S...

sync between local and virtual machine

I'm working on a windows platform and want to be able to auto sync my files one way 'on change' to my virtual windows or linux web server - also need to be able to filter file types. i can connect to the remote machine via network drives. i'm ideally looking for a free, easy to set up solution - a commercial product that does what I nee...

Can we install Visual Web Express 2008 and IIS on Windows XP Media Center ?

Is Microsoft.NET 3.5 (and VWD Express 2008) compatible with Windows XP Media Center SP 2 ? Thanks. ...