windows-xp

Active Desktop Recovery

This one's new to me. I downloaded and installed the VB.Net version 3.5 updates, and got some complaints about my printer drivers, which I ignored. My system auto-rebooted without asking, and then came up with am "Active Desktop Recovery" background screen (everything still works normally). So when I tried to "restore my active deskto...

Is there a way to disable formatting of a USB Flashdrive?

Can any script or setting be written (autorun file?) to disable formatting of a USB Flashdrive? (Win XP, via Windows Explorer > Format) I'm aware of write-protection, but I don't want to completely prevent modifying files, instead something like what a Group Policy setting could do? Edit: Really what I'm asking for is a registry setti...

How do I detect the 2 states of "Switch User" in Windows

Hi there, I'm wondering if anyone has had any experience with the API that gives you the possibility to detect the "Switch User" process under Windows XP. I would like to know how I could detect that a user exits his account and when he re-enters it. Thanks. ...

Process size in XP from Python

I have a python script that can approach the 2 GB process limit under Windows XP. On a machine with 2 GB physical memory, that can pretty much lock up the machine, even if the Python script is running at below normal priority. Is there a way in Python to find out my own process size? Thanks, Gerry ...

Whats the actual file size?

(Only programmers would know) In Windows XP, under File Properties, Whats the actual file size?.. Size or Size-on-disk? I'm looking for the exact size of the file, in bytes.. (1,024 bytes NOT 1,000 bytes) Great! So blame it on the disk!, Why not call it Size Windows takes to store this file? ...

Is it possible to save a window layout in Windows XP?

When I am working with files on my project I normally have four windows open viewing four different folders in the four quadrants of the screen. My morning ritual involves having to manually open these four folders, takes only a few moments but I was hoping to find a way to automate this with Windows XP? Any ideas? ...

How can I permanently bypass Windows XP startup?

I have an application for Windows XP. This application is deployed with the hardware. The application is the only application that ever runs on these machines. These machines are never connected to the internet. I'm interested in instant-on (or quick-on) options that bypass the Windows XP startup for these machines. This is similar ...

How do you block selected applications from accessing the internet (C++, Win32)

I want to have an application or service that is running that, on some schedule, can disable access to the internet for all applications except for specific ones. I'm trying to create a filter that can be turned on or off under programmatic control. Not just IP addresses and ports, but I want to be able to block specific applications as...

How do I install/deploy/build my Visual C# application so it's available to all users?

I've written an application in Microsoft Visual C# 2008 Express Edition. The Windows XP computer I want to install it on has two user accounts. One is the admin account, the other is the main user account and does not have admin privledges. I tried installing the application as the main user, and got an error saying i can't because I'...

During Installation, where do the Various File Types go on Vista

Installing my software on Windows XP was always easy. Everything went in the "c:\Program Files\myprogram" directory. This included: The executable program itself and any dlls. Readme.txt and License.txt The help files (.hlp or .chm or .pdf) Program settings that are not in the registry (.ini files) Sample data files for the program Log...

Windows XP vs Vista: NTFS Junction points

Problem: I relied heavily on NTFS Junction points in Windows XP, even though they apparently were not an "official" feature of the operating system. Now MSFT has generously made NTFS Junction points an official part of Vista, but apparently they also intentionally broke them. Now my WinXP-created junction points on portable USB drive don...

Hook windows logon/logoff events

I am having a service which would be running at SYSTEM level. Now, i want to track the logged on user in it. Earlier i was trying to get the logged in user name from GetUserName api but in my case it returns "SYSTEM" every time. Is there anyway to get logged on username in my case? or is there any hook that i can install so that i may ...

How do you schedule a daily script run on Windows XP?

I wrote a script in Ruby. I'd like to run it every day at a certain time. How do you do that on a Windows XP system? I poked around on the machine and discovered the "scheduled tasks" control panel, but it doesn't seem to have anything to do with running scripts, as far as I can tell from the options offered by the "wizard". ...

Running a WPF application on Windows XP

I recently built a new application using WPF, so that I can learn the new technology. Now that I am trying to deploy the application, it appears as if it is running fine on a Vista system, but on a Windows XP SP2 machine with the .Net fx 3.5SP1, it's not able to load the PresentationFramework.dll file. I did some further investigation ...

stress client: Limit number of concurrent connection in XP

Hi, i have a web server with my web site and i try stress it but i 'don't be able. I think that the problem is limitated number of concurrent connection in xp(Pro). I wrote a simple client in C# for stress: ... for (int i = 0; i < _numThread; i++) { Thread t = new Thread(CallGetHttp); t.Start(); } ... private void CallGetHttp()...

Programmatically prevent Windows screensaver from starting

Is there a recommended way to prevent the Windows screensaver from starting? The closest thing I've found is this article, but what I would really like to do is just tell Windows that the computer isn't idle rather than fooling with the currently set screensaver values. ...

Login to windows xp programatically

Anyone heard that its possible to login to windows xp programatically, I want to modify the way the Domain Controller authenticates the user and if the user authenticated in my special way it returns the user name and password to the service working on the client machine so it should login the user using its passed credentials from the D...

how to set the default encoding in windows XP ?

Hello, im trying to open a file using StreamReader and ive to set a Encoding, but i want it to take the Default Windows Encoding... how can i change my windows Encoding ??? ...

Cygwin and Python 2.6

New to python (and programming). What exactly do I need from Cygwin? I'm running python 2.6 on winxp. Can I safely download the complete Cygwin? It just seems like a huge bundle of stuff. ...

Can AWE use >4GB RAM on SQL Server 2005 dev edition on Windows XP 32-bit

Using SQL Server 2005 developer edition on Windows XP pro (32-bit) I notice that the check box to enable AWE (Advanced Windowing Extensions) is enabled. I have an Opteron workstation that I could easily upgrade to 8GB or more, although it is not practical to move off 32-bit Windows XP Pro for the development environment. As far as I ca...