windows

Windows 2003 routing/firewall/dhcp/... problem ?

I have a problem with the availability of server from the outside (from local network all works perfect). A key problem is the http, where the requests are carried out but only if the response is less than a certain number of KB. - if accessed via browser from the outside, only the request less than or equal to 4KB are responsed - if acc...

Application on windows startup C#

i have designed an application which validates users against online database and then allow users to work, after authentication it shows desktop, it loads on startup. i would like to start my login application at windows start up, i have added my login application path to registry it is started well with windows. but it has one issue fi...

Windows Server 2003 User Logon Audit

Hi. How to find what all users have logged on my windows server 2003. What is the property/setting/service that should be enabled to log all the logons to my server. Is there a way to display an alert mail or message (a script or something) whenever a user logs on. Many thanks :) ...

SetForegroundWindow problems when a modal child exists

I am using the Win32 API call SetForegroundWindow to set focus to another application's window. I am then using SendKeys to send keystrokes to that window. This works well apart from when a modal window (such as a File Open dialog) is open. In this scenario I want to set that modal child window as the foreground window. Using my main a...

How to create a robust, minimal installer for Windows?

I want to create an installer EXE with some specific properties: it should be a single exe file it should be robust (i.e. the technique should be known to work well on any Windows system) it should create only a single file (a .scn screensaver file) in %systemroot% it should add the option to uninstall that particular file in "Control ...

Capturing all changes during an application install on Windows

Hi, I need to monitor and report on all changes (folders and directories added, permissions changed, registry entries added) that are made during the installation of a software program. Can anyone suggest a tool that is capable of doing this? Thanks, MagicAndi. ...

Howto: Multiple versions of msvcrt9 as private SxS assemblies?

I have a project that comprises pre-build Dll modules, built some time in the past, using Visual Studio 9. The EXE of the project is built now, using SP1 of Visual Studio 9. When we deploy the EXE we don't want to require administrative access, so the C-Runtime has been bundled into the root of the application. The Dlls: MSVCRT90.DLL a...

CherryPy interferes with Twisted shutting down on Windows

I've got an application that runs Twisted by starting the reactor with reactor.run() in my main thread after starting some other threads, including the CherryPy web server. Here's a program that shuts down cleanly when Ctrl+C is pressed on Linux but not on Windows: from threading import Thread from signal import signal, SIGINT import ...

Running an AnyCPU application as 32bit on 64 bit os

Is there a way to execute a .net application compiled under AnyCPU as a 32-bit application when running in a 64-bit Windows environment without recompiling as x86? ...

Bind to any port available

I need an app that sends an UDP packet to some network server and receives the response. The server replies to the same port number where request came from, so I first need to bind() my socket to any UDP port number. Hardcoding the UDP port number is a bad idea, as it might be used by any other application running on the same PC. Is th...

Porting a .NET app to the Mac

I have been asked what it would cost to port a .NET application to Mac. I don't have enough knowledge to even give a rough estimate. I have not done anything on a Macintosh above surfing the web, and that was 10 years ago. My guess is that we probably have to write it from scratch in java or objective-c. We are a Windows/Linux shop, a...

I want to parse a PAC file to get some Proxy information... just not in Explorer

Follow on from this question: I am working on a Python 2.4 app which will run on Windows XP. It needs to be able to download various resources from HTTP and it's got to work in all of our office locations which use "PAC" files to automatically select http proxies. Thanks to somebody who responded to my previous question I managed to fi...

Strange values of SystemType property of Win32_ComputerSystem WMI class?

According to the documentation at http://msdn.microsoft.com/en-us/library/aa394102%28VS.85%29.aspx this property may assume the following string values: "X86-based PC" "MIPS-based PC" "Alpha-based PC" "Power PC" "SH-x PC" "StrongARM PC" "64-bit Intel PC" "64-bit Alpha PC" "Unknown" "X86-Nec98 PC" Most of it is pretty obvious, but what...

SQL Server / ODBC data encryption question

Hello - We would like to force encryption of the data going to and from our customers' SQL databases. Currently, we access the customer databases via ODBC DSNs, using both SQL Management Studio (Query Analyzer) and our custom applications. Yeah, I know this is not "best practices", but I have to deal with it for now. Anyway, I have b...

How to mimic the "multiple instances of global variables within the application" behaviour of a static library but using a DLL?

We have an application written in C/C++ which is broken into a single EXE and multiple DLLs. Each of these DLLs makes use of the same static library (utilities.lib). Any global variable in the utility static library will actually have multiple instances at runtime within the application. There will be one copy of the global variable p...

How to restart my application if Windows Update forces a reboot?

At the office, when I leave for the night I very rarely log off or reboot. I simply lock my workstation and go home, leaving all my development tools exactly how I left them. If Windows-Update rolls through and reboots my machine in the middle of the night I'm only slightly peeved because when I log back in the next morning, any MS Off...

What is the best way to display percent complete in a .Net CLI application?

I'm working on a CLI application that deals with uploading of files, and would like to have a combination of appended and overwritten output. Ideally it would look something like this: c:\>upload file1.dat 100% file2.dat 100% file3.dat 59%, 36.4k/s I'd like just the last row to periodically update the percent compl...

Windows Application Programming & wxPython

Developing a project of mine I realize I have a need for some level of persistence across sessions, for example when a user executes the application, changes some preferences and then closes the app. The next time the user executes the app, be it after a reboot or 15 minutes, I would like to be able to retain the preferences that had be...

windows shell, move multiple file arguments error

f:\i>move foo bar dir The syntax of the command is incorrect help move says: MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination This seems to imply multiple arguments. So how can I give multiple arguments to move? ...

Assigning a shortcut to open cmd here

Microsoft's powertoy is relatively well known. But it requires you to open a cmd one level above, from where you'd usually like. So I found this nice app, CmdOpenInstall (let's make the man some traffic :-) - it enables you to open cmd in the current directory. Is there a way to assign a keyboard shortcut to the command (which appears o...