windows

Is there an implementation of something like autotest-fsevent for windows?

Basically it's an extension for autotest that listens for notification from OS and allows autotest not to scan for file changes permanently while testing only necessary changes. It saves CPU and disk use. ...

XmlHttpRequest bug?

Hello all. I'm writing a program that among other things needs to download a file given its URL. I'm too lazy to implement the Http/Https protocols manually, so that I needed some library/object/function that'll do the job. Critical requirement: The download must be asynchronous. That is, the thread that issued the download must be abl...

How does windows resolves short names (8.3) into full names

I have a PC running 64 bit Windows Server 2003. There is a java application which uses cmd file as a launcher. The launcher does this SET JAVA_HOME= C:\Progra~1\Java "%JAVA_HOME%\bin\java" [java program execution line] Java is installed in C:\Program Files\Java. Since it is a x64 windows it also has C:\Program Files (x86)\ folder. N...

Compiling ODE on windows without Visual Studio (for PyODE)

I'm new to compiling programs written by someone else, so I hope I'm not missing anything obvious. What I am really trying to do is install PyODE, and I think I managed that just fine, but when running the PyODE examples I get an error: Traceback (most recent call last): File "C:\Python26\pyode-examples\tutorial3.py", line 12, in <mo...

How to set system time in a Windows WDM driver?

We are developing a GPS time sychronization hardware device. And we want write a Windows WDM driver for the device. To avoid the user level latency, we'd like set windows( XP/Vista/7) system time in the kernel driver level. Does anyone know how to achive that? Thanks Xu Jun ...

How to simulate a file read error in the CRT

Using VS2008, we would like to simulate a file that has a size of X, but that has a read failure at X-Y bytes, so that we get an error indication. Anyone have an idea of how to do this on windows? Looks like there is a solution for linux, but I can't really come up with a way to do this on windows. We have multiple developers, multiple...

2 or more FOR loops in command shell merging fileA line1 with fileB line1, &c.

Hi, i'm trying to build an ldif import file. I have 2 files, one with the DN and another with the employeeNumber, they match up line for line. Here's the code that does not work: @echo on ::Set BATCH Input Directory set batchdir=e:\Meta ::Set the input file containing the server list set infile=%batchdir%\DDNs3 set infile2=%batchdir%...

How do I get the application data path in Windows using C++?

I looked all over the internet and there doesn't seem to be a decent solution that I could find. I want to be able to programmatically in C++ obtain the path "%ALLUSERSPROFILE%\Application Data" that explorer can translate into a real path. Can I do this without relying on third-party code? ...

Is there an API to remotely read a Windows machine's audit configuration?

I need to know, for each subcategory, whether it'll be audited on success, on failure, both, or none. Below is an example of the information I need to collect. Can I get this through WMI? Or if not, by other means, assuming I have proper (admin) credentials to the target machine? Again, to clarify, it's not the event log I need to read...

BitBlt ignores CAPTUREBLT and seems to always capture a cached copy of the target...

I am trying to capture screenshots using the BitBlt function. However, every single time I capture a screenshot, the non-client area NEVER changes no matter what I do. It's as if it's getting some cached copy of it. The client area is captured correctly. If I close and then re-open the window, and take a screenshot, the non-client area ...

What is the minimum OS for binaries created with VS2010?

This might sound like a stupid question, but I'm asking because my boss wants to know. What is the minimum Windows OS for binaries created with Visual Studio 2010? Not all the developers on the team have the Windows SDK installed. I know with it you can target down to Windows XP, but any idea what you can target without Windows SDK? ...

what is "removing backup files" installation step

In many windows installers the last step is called "removing backup files". I understand that to provide transactional integrity of the install process some "backup files" could've been created and have to be cleaned up. What I do not understand is why on many occasions this step takes considerably longer than the rest of the install...

Thin-border on WPF window?

I'd like to create a window, using WPF, that has a thin border all the way around the form - i.e. no space for the title bar with the icon/caption and min/max/close buttons. For example, the "extra" icons form of the new Windows 7 taskbar: I understand this can be done by setting the WindowStyle = None property, however, I am also usi...

Passing an object as a parameter to a windows service

Is there some way to pass an object to a windows service? I know the method myServiceController.Star(string[] arg) but i need to pass a more complex object than a string array. Actually, i don't need the object to be passed as a parameter, what i really needs is that the service can use an object created in a windows forms application. I...

Where to reach potential buyers/users for your software - something like an AppStore for Windows

I am Mobile-developer and 3 major mobile-platforms have channels for their users to get/buy software and for their developers to distribute/sell their creations, namely AppStore (IPhone), Marketplace (Windows Mobile) and Android Market (Android). I have now written a software running on Windows. I have "spread the word" by publishing so...

Windows Autorun for an HTML file

I have a html file on a flash drive that I would like to autorun in Windows. I have found examples of multiple ways to do this but none of them are working for me. Anyone see what I am doing wrong? This is my latest Attempt: [autorun] icon=data/favicon.ico label=My Project open=ShellRun.exe OPEN-ME.htm This was another attempt: [...

Is there such a thing as a dektop application event aggregator, similar to that used in Prism?

The event aggregator in Prism is great, and allows loosely coupled communication between modules within a composite application. Does such a thing exist that allows the same thing to happen between standalone applications running on a user's desktop? I could imagine developing a solution that uses WCF with TCP binding and running inside...

If i have a Windows Hook, which function do i need to stop packets being received?

Hi, im able to hook registry accesses, file accesses etc- because i know which Win32 method is responsible and i can 'hook' the behaviour of this. However, i wish to be able to 'hook'/stop packets being received when ive detected an intrusion but im not sure which Win32 function i need to 'hook'. Does anyone know? I was getting slightl...

Temporary PYTHONPATH in Windows

How do I set, temporarily, the PYTHONPATH environment variable just before executing a Python script? In *nix, I can do this: $ PYTHONPATH='.' python scripts/doit.py In Windows, this syntax does not work, of course. What is the equivalent, though? ...

Getting text boxes on a webpage

So what I am trying to do is make an application (just for fun, not a lot of purpose), where when you launch it a interface comes up consisting of Username: textboxhere Password: textbox2here then a connect button, and when you fill out your information in the textboxes then click Connect, it navigates to facebook.com and puts in y...