windows

Windows process structure: How to store user information?

Hi, I want to store some information in the EPROCESS structure of the process in windows NT kernel. My aim is that when winlogon is called I want to assign a unique value to the next process based on which user logs in. But I do not know where to store this unique ID. I have tried and succeeded in modifying some information (like the t...

How can a value be passed directly from a windows application into a field in an open web page?

I have a problem that I feel is best implimented in a stand alone windows application, but needs to pass data to a web page that is already open. Is it possible to pass the data directly to the web page? If so, what is the best way to go about it? (Its my first question, so go easy on me!) ...

Apache rotate Access and Error logs Windows

How can I rotate the Apache Access and Error logs on a Window 2000 box? I include my batch file below as an answer. Is there a way of doing this directly via the Apache config file? I'm currently using the following customlog command to generate daily logs. CustomLog '|" "Apache-Path/bin/rotatelogs.exe" "Apache-Path/logs/backup/inter...

How do I deal with quote characters when using cmd.exe

I've got a function: int RunProgram(string exeName, string parameters); (I'm actually trying to use the ViX API to automate a virtual machine... but I think the following question may apply in other circumstances). And I'm trying to do this: RunProgram("c:\\windows\\system32\\cmd.exe", "/C \"C:\\Program Files\\Somewhere\\SomeProgr...

scripted files download under Windows

Hey, I'm about to be forced to write a script to download some number of files under Windows XP. The machines the script will be run at are all behind a proxy, and the proxy settings are entered into the IE configuration. What came to my mind was either to somehow call IE from the command line, and using its configuration download file...

Identifier for win64 configuration in Qmake

Is there a "win64" identifier in Qmake project files? Qt Qmake advanced documentation does not mention other than unix / macx / win32. So far I've tried using: win32:message("using win32") win64:message("using win64") amd64:message("using amd64") The result is always "using win32". Must I use a separate project-file for x32 and x64 ...

Is there some way to get more than Meta and Ctrl on Windows? Long time Emacs user wants Hyper/Super.

I've used Emacs for years on Linux, and I have lots of personally useful keybindings I've put under Hyper and Super. Nowadays I'm using Emacs on Windows and am missing those extra keybindings. Is there some way in Windows to get modifier keys other than Ctrl and Meta? ...

What causes Visual Studio 2005 Out-Of-Order Command Line Builds?

In Visual Studio 2005, I have a solution with explicit dependencies specified via the Project Dependencies dialog. When I build via devenv /rebuild Release for example, the projects are built in a different order than when loading up the IDE. This is an order not allowed by my specified dependencies. In some cases, devenv crashes :( ...

Get list of passed arguments in Windows batch script (.bat)

I'd like to find Windows batch counterpart to Bash's "$@" that holds a list of all arguments passed into script. Or I have to bother with "shift"? ...

How to tell if mouse pointer icon changed

I'm writing a screen recording app for Windows in Delphi 7 and wish to know when the mouse pointer changes in my app (like from a normal pointer to a resize pointer, etc). Currently what I'm doing is painting the mouse pointer onto an in-memory bitmap everytime the mouse moves (and on a timer) and doing a pixel by pixel comparison of it...

GHC + wxHaskell on Windows

Have GHC 6.8.3 and wxHaskell-0.10.3 on a Windows XP computer. Installed both as binary distributions, not by building from sources. Built a sample with the following command: ghc --make Paint.hs It works on that same computer it was built on (with GHC and wxHaskell installed), but fails if transferred to another one (with neither of th...

Why won't my program run from the Program Files directory but will from anywhere else?

My program run fine from anywhere else on my drive apart from the Program Files directory (windows XP), I am logged on as administrator so I have full permissions to the drive. It runs fine from the root of c: the windows directory basically anywhere else apart from Program Files. I have recreated this problem on 4 different machines 2 X...

Compile CLASSPATH in a Windows batchfile

On a Unix systems it's very easy to compile the CLASSPATH by using find: LIBDIR=`find lib/ -name \*.jar` for DIR in $LIBDIR: do CLASSPATH="$CLASSPATH:$DIR" done java -classpath $CLASSPATH com.example.MyClass What would be the aquivalent in a Windows batchfile? ...

Problem with for /f command on Windows XP

Hello. I'm using Windows XP Service Pack 3 and have Command Extensions enabled by default in the Windows Registry. Somehow, the following command does not work on this version of Windows but if I run it in Windows Server 2003 or Windows Vista Business, it works just fine. Any clue? The problem is that on Windows XP, it seems like the /...

How to launch multiple subprocesses sequentially in python ?

I would like to execute multiple commands in a row: ie (just to illustrate my need): cmd (the shell) then cd dir and ls and read the result of the ls. Any idea with subprocess module ? UPDATE: cd dir and ls are just an example. I need to run complex commands (following a particular order, without any pipelining). In fact, i wou...

Windows Programming

I have been told that Windows programming can be done using either .NET, or MFC or C++ with the Windows API as described in "Programming Microsoft Windows" book I have a few questions, listed below: Would it make sense for .NET developers to learn Windows Programming as taught in Charles Petzold's - Programming Microsoft Windows bo...

Get a file system handle to a bluetooth mapped folder

Is there any way to get code level access to a bluetooth mapped drive? The simple use case is I have a bluetooth folder in Explorer that looks something like: "My Bluetooth Places\Entire Bluetooth Neighborhood\DEV1\OBEX File Transfer\E:\" which maps to a device root, and I want to be able to read/write to the file system by treating ...

Autocomplete - Append and getting only the text the user has inputed on combobox

I have a ComboBox that I set up like this: this.cmbCustomerJob.DisplayMember = "display"; this.cmbCustomerJob.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.cmbCustomerJob.AutoCompleteSource = AutoCompleteSource.ListItems; this.cmbCustomerJob.DropDownStyle = ComboBoxStyle.DropDown...

What GUI toolkit looks best for a native LAF for Python in Windows and Linux?

Hello I need to decide on a GUI/Widget toolkit to use with Python for a new project. The target platforms will be Linux with KDE and Windows XP (and probably Vista). What Python GUI toolkit looks best and consistent with the native look and feel of the run time platform? If possible, cite strengths and weaknesses of the suggested toolk...

What are your experiences implementing/using WebDAV?

For a current project, I was thinking of implementing WebDAV to present a virtual file store that clients can access. I have only done Google research so far but it looks like I can get away with only implementing two methods: GET, PROPFIND I think that this is great. I was just curious though. If I wanted to implement file uploading ...