windows

Usage of CoTaskMemAlloc?

When is it appropriate to use CoTaskMemAlloc? Can someone give an example? ...

How to prepopulate model objects with test data from file?

I have some model objects I'm using in my Java client application. Later these model objects will be populated / retrieved from remote services (e.g. SOAP). Now I want to do manual / automatic testing of the frontend before implementing these services. The model objects are mostly POJO and I want to store some sample test data in files a...

How do I add a button to Vista's Explorer green toolbar for all folders?

I'm looking for a way to add commands to the green Vista toolbar/commandbar, much like described in this Shell Revealed article. However, the IExplorerCommandProvider interface that they use only seems to be active when used in a Namespace Extension. I need something that will work system-wide, for all folders. Does vista expose anything...

Python: Lock directory access under windows

Hi, I'd like to be able to lock directory access under windows. The following code work greatly with file or directory under POSIX system: def flock(fd, blocking=False, exclusive=False): if exclusive: flags = fcntl.LOCK_EX else: flags = fcntl.LOCK_SH if not blocking: flags |= fcntl.LOCK_NB fcntl....

Ensuring a Program Written for 32-bit Windows is Compatible with 64-bit Windows

While it's my understanding that there's no fundamental reason a program written for 32-bit hardware / OSs not to run on 64-bit hardware / OSs, in practice, I've found many programs intended for 32-bit versions of Windows that will not work on 64-bit versions of Windows. Examples include a number of popular security utilities (most prod...

Is there a way to save restore points to a CD or DVD?

Restore Points in Windows has helped me quite many times when needed. I know there is no straight way to do this but is there ANY way in Windows to write those restore points to a media like CD or DVD? ...

How to determine if a certain key is pressed, knowing only its position on U.S. keyboards?

Consider that, for a Windows video game, I need to determine if the key which generates the ` and ~ characters on the U.S. English keyboard layout (which is usually below the Escape key and left to 1) has been pressed. This may sound like a trivial question, but it doesn't seem like one to me. When Windows sends keyboard messages, it sp...

WPF: How to specify units in Dialog Units?

i'm trying to figure out how to layout a simple dialog in WPF using the proper dialog units (DLUs). i spent about two hours dimensioning this sample dialog box from Windows Vista with the various dlu measurements. Can someone please give the corresponding XAML markup that generates this dialog box? (Image Link) Now admittedly i know...

Measuring memory use of device drivers in Windows

How can I determine how much memory each device driver is consuming? I'm assuming this can be done with some Win32 or .NET API, but I just haven't been able to determine which. ...

Is there a (free) windows test/dummy print device?

We are creating a batch application which sends its documents (Java Jasperreports) directly to a printer device, running on a Windows server. To test the application and measure the performace, we where looking for a test or dummy windows print device. This device would not print to an actual printer but simulate a printer device in suc...

How to launch Windows Scheduler by command-line?

I mean to open the built-in Windows GUI from command line- not to launch by Schtasks Thanks! ...

How do I disable the 'Debug / Close Application' dialog on Windows Vista?

When an application crashes on Windows and a debugger such as Visual Studio is installed the following modal dialog appears: [Title: Microsoft Windows] X has stopped working A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. [Debug][Cl...

Java connection to / between Microsoft Windows Office Suite?

I read elsewhere (a response by "hazzen" here) that .NET has "a binding for the entire Office suite outlined here that allows you to write COM-based methods that you can call from Office. It is intended for automation, but you can write any managed code you want and have Excel call into it." I'm interested in the same thing for Java. My...

USB Drives and the Windows Drive Limit

What happens on a Windows box once you add more drives than can fit in the A-Z drive letters. I know about the mountvol command but my solution needs to work on Win98/XP systems that do not use NTFS. Is there any way to provide access to those drives? ...

Programmatic interface to MOUNTVOL.EXE

Is there any programatic interface for the MOUNTVOL command in Windows? What I am trying to do is get the output from mountvol (even if I have to parse it from the command line), which gives me the list of drives with their GUID-like path (\\?\Volume{...}) and get the device information based on that path (is it a USB drive, VENDOR_ID, e...

WPF vs Windows Form

Duplicate : When is Winforms the correct choice vs. WPF? I’m working for a financial company with the strict business oriented applications. All these fancy multimedia stuff is not really appreciated by the business user. Therefore it is not clear why should I develop a front end client using WPF instead of the old good, easy to use, ...

Setting Windows MySQL client default script folder.

From withing the MySQL client on Windows, how do I set it to point at a particular Windows folder so the file in a SOURCE statement doesn't have to include a path? ...

Fast file/directory scan method for windows?

I'm looking for a high performance method or library for scanning all files on disk or in a given directory and grabbing their basic stats - filename, size, and modification date. I've written a python program that uses os.walk along with os.path.getsize to get the file list, and it works fine, but is not particularly fast. I noticed o...

C/C++ Compiler for windows

I'm trying to port a Linux app to windows. Nothing huge, just a small command line utility. However, the last time I worked with C in Windows, it was a 'hello world' app in Visual Studio 6. I'm trying to avoid meeting a new IDE, so I'd like to use Netbeans' C/C++ plugin. I just need a compiler. Can anyone suggest a free 32-bit compi...

Web desktops - do you find it interesting?

As a win32 developer moving into web deveopment the last few years, I found the web desktops based on extjs very interesting. Coolite Desktop (broken) Extjs Desktop Puppy Web Desktop Wikipedia list Lifehack list Windows 3.1 desktop (broken) Do you know about others? Without any experience of developing applications as web desktops (an...