windows

How to get installation path of an application.?

In windows using C#, how to get the installation path of a software(for example consider nunit or any other software like MS word etc) from my project.? Also how to set the path variables that we set in Environment variables so that we can run the application just by giving in command prompt. Like if i install Nunit in "C:\Program File...

In-Memory File System for WIndows

I have a command-line executable which I need to run from Java on Windows XP. It uses files as input and output. But I want to avoid the overhead of file IO, so I thought of an in-memory RAM file system. NetBSD has mount_mfs. Could you recommend the most convenient way of doing this? ...

how to find the execution path of a installed software

How can i find the execution path of a installed software in c# for eg media player ,vlc player . i just need to find their execution path . if i have a vlc player installed in my D drive . how do i find the path of the VLC.exe from my c# coding ...

What is the most secure way to retrieve the system Drive.

I know that the following should work: Environment.GetEnvironmentVariable("windir", EnvironmentVariableTarget.Machine) My problem with this call is that if for some reason someone decided to remove the "windir" Env Var , this won't work. Is there an even more secure way to get the System drive? ...

.NET: How to query the NT/Users database or record?

Hi guys, how can we query the NT/Users database for all users on the machine? ...

Any website offer the same service as Slice host for Windows Server?

Is it possible to get Windows Server 2003 hosted with options similar to Linux hosting at Slicehost and Linode? Need to set up a test server for a few months to see if its feasible to create a plugin for MS Exchange Server. I'd needs some for of graphical remote access and naturally keep costs as low as possible. ...

CS0016: Directory invalid error... I solved it but I don't understand the solution

I've been battling for two days tracking down a mysterious error when compiling an ASP.NET website. The error is the (quite famous) CS0016: "Unable to write to output file [filename] - directory is invalid". I have discovered after two days of debugging that the cause of my problem is that the NetworkService somehow does not have the ne...

Possible: Program executing Qt3 and Qt4 code?

Maybe its a very dumb question but I hope you can give me some answers. I have a commercial application which uses Qt3 for its GUI and an embedded Python interpreter (command line) for scripting. I want to write a custom plugin for this application which uses Qt4. The plugin is mainly a subclassed QMainWindow-class that is linked into a...

Approaches and recommendations for multiple OS user authentication techniques

I’m looking for recommendations of how to authenticate user/password combination and verify group association across a number of differing operating systems. Basically I have a C# application that is working in both MS Visual Studio C# and Mono C# and I need to add an authentication mechanism to it to support Windows, Linux, and MacOSX....

.NET or WinAPI

Hi guys, I am trying to build a desktop app. The biggest requirement is that it should be as miniscule as possible. For Windows users, is it better to build it in .NET or WinAPI? I am not from software background so pardon me if this is a non-sensical question, but I have heard that with .NET, there is a chance that some Windows users ma...

how to change the ACLs from c++?

how to change the ACLs from c++? can anyone help me to do the folowing from c++ without any confirmations: cacls c:\personal\file.txt /d everyone ? ...

Getting a reference in .net code to an already running process

Is it possible in managed code to get a reference to an already running process (COM+ component) and call methods on it? Instead of instantiating a new object, is there a way to point to an already running instance of a COM object so that the .net code has a reference to the running process just as if it had instantiated it - to call me...

Generating a Hardware-ID on Windows

What is the best way to generate a unique hardware ID on Microsoft Windows with C++ that is not easily spoofable (with for example changing the MAC Address)? ...

Recommended way to run another program from within a Python script

Possible Duplicate: How to call external command in Python I'm writing a Python script on a windows machine. I need to launch another application "OtherApp.exe". What is the most suitable way to do so? Till now I've been looking at os.system() or os.execl() and they don't quite look appropriate (I don't even know if the latter...

How can an out-proc COM server detect client failure?

Say we have an out-proc COM server and a client. The client calls a method in the server and unexpectedly terminates. Is there a way for the server to detect this and interrupt the method? ...

How can my app find the sender of a windows message?

I have an app which uses a keyboard hook procedure in a library. The wParam in the hook for one message is 255 which we think is "(reserved / OEMClear)". I'd like to work out the source of this message as it causes my application to crash in the library, and given it shouldn't be happening it would be good to identify it. The message com...

How to unzip a file in VBScript using internal Windows XP options in

I want to unzip a .zip file using VBScript, only it's always a new computer with no external applications on it. Now I know Windows XP and 2003 have an internal .zip folder option, so I guess I can use it via VBScript in order to extract the file. How do I do it? I tried: Set objShell = CreateObject("Shell.Application") Set SrcFldr =...

What kind of controls are used in the Windows Security Center?

Control Panel -> Security Center I really like the components/controls which are used to show if a firewall or the Automatic Updates are enabled. Are these reusable controls in C# or Delphi? ...

How to tell if method is called from Windows Service in .Net (managed) code

How can I tell if a method I am writing in managed code is being call from an interactive app vs a windows service? ...

Eclipse cross-compile... how can I do that?

Hi, I am developing on a Windows machine using Eclipse in C code. All the files are physically located on a Linux server. I am using Eclipse only for editing and code browsing. When I want to compile, I open a terminal and telnet to the Linux server from which I call a file that sets up few variables and eventually invoke a "make" comm...