windows

What windows CVS clients support proper handling of encoding in comments?

We're currently using tortoisecvs (1.8.31) to commit/access our cvs repositories. We've recently wanted to support Japanese text in comments, so that viewvc can be used for browsing. However, it doesn't appear that you can set the encoding of comments being sent by Tortoisecvs are properly converted/sent as UTF8. Example of Tortoisecv...

Private working set size dependent on application name

A colleague has been trying to reduce the memory footprint of a 32 bit app running on vista 64 and has noticed some weird behaviour in the reported size of the private working set. He made some changes and recompiled the app. Then he ran the app and loaded in a data file. The task manager reports that private working set is 98Mb. He the...

How to programatically restart windows explorer process

I'm working on a windows shell extension, and unfortunately, when making changes to the DLL, I must restart windows explorer (since it keeps the DLL in memory). I found this program from Dino Esposito, but it doesn't work for me. void SHShellRestart(void) { HWND hwnd; hwnd = FindWindow("Progman", NULL ); PostMessage(hwnd,...

Capturing VPN usage statistics

We're monitoring usage statistics of a network interface using NetworkInterface.GetIPv4Statistics() in .NET 2.0. This isn't reporting correct statistics for connections over which VPN traffic is being tunneled. Instead - in the case of the Cisco VPN client - the usage is just attributed to a new network interface that just looks like an ...

max value for SO_RCVBUF in Windows?

Quick question, wondering if anyone knew what the limit is for SO_RCVBUF under Windows. ...

Ruby win32ole - how to pass a VARIANT parameter?

I am trying to automate the Windows Task Scheduler using Ruby. I am using Ruby 1.8 under Windows Vista. The RegisterTaskDefintion method of the TaskFolder object takes two VARIANT parameters for the username and password. Any attempt to pass a string into these parameters results in a 'method_missing' exception: This does not work: r...

learning to program Windows drivers

what would you recommend for a resource on learning to program drivers. i am working my way through Programming the Microsoft Windows Driver Model, but i was wondering if any of the examples are vista compatible. additionally, the book is more of a reference of the kernel functions so far. is their a resource that will take the beginner ...

Windows utility to print and archive from a file drop

Now, I could go ahead and write this using FileSystemWatcher etc, but before I start coding - I wonder if there is a better option that I can re-use (rather than re-invent). From my web-server, I want to drop files (to be printed) into a network share as a queue (ordering not hugely critical). Ideally, a windows service (or other client...

What is the period of time that the window manager waits before marking a window as unresponsive?

How long does windows wait before deciding a window is unresponsive and brings up the the unresponsive chrome? Just from anecodotal experience, I assume it is different in XP and Vista, as they are handled very differently by the DWM in Vista and the Explorer shell in XP. ...

Packaging an application with dependencies under Windows

I've written an application using gtkmm and libpcap under Linux. Of course, gtkmm depends on GTK+. After porting it to Windows and attempting to distribute it, the feedback I received is that there are too many dependencies to install. The user has to run installers for the GTK+, gtkmm, and winpcap runtimes before they can run my littl...

Deadlocks with pthreads and CreateThread

I'm using pthreads in a Windows application. I noticed my program was deadlocking--a quick inspection showed that the following had occurred: Thread 1 spawned Thread 2. Thread 2 spawned Thread 3. Thread 2 waited on a mutex from Thread 3, which wasn't unlocking. So, I went to debug in gdb and got the following when backtracing the th...

Video capture SDKs and Frameworks for Windows

I cannot find a list describing all of the different options for video capture in Windows. I would like to keep this list to non-proprietary SDKs (i.e. ImageSource has their own SDK that works with only ImageSource capture cards). To set an age limit on suggestions, everything should be able to run on Windows XP or newer. Include as mu...

windows help: Application failed to Initialize Properly (0x80000003)

I am trying to build a windows service that includes a Lua component, and links with Lua's shared libraries. I am building the code in Eclipse/CDT with MinGW. It builds fine, but when I run it, I get "Application failed to Initialize Properly (0x80000003). Click OK to terminate". I am looking for clues as to what might be going on. A He...

Typelib Generation and Installation with WiX

After asking about what Visual Studio does to register a COM Library, it became clear that VS did two things for COM registration: Registered the COM Library Creates and registers a Type Library Visual Studio seems to do this registration using regasm.exe. For the first part (the direct COM registration) using tallow or heat (WiX 2...

Is there a free "Add Connection" or "SQL Connection" Dialog?

I like the "Add Connection" or "SQL Connection" dialog that is in Visual Studio in Server Explorer window. I also like the one in CodeSmith. I would like to have that same dialog or simular functionality in my windows application. I need it to work with SQL Server, and SQL Server Express Database files (*.mdf). My clients have .NET 3....

How do I ask Windows for the size of system tray icons?

I noticed that my app sends icons to the Windows tray with a size of 16x16 pixels--and my Vista PC I've got a doublewide taskbar that appears to show icons at 18x18. The resizing artifacts on my app's icon look awful. How can I ask Windows what size the icons should be? edit: I'm generating the icon dynamically, with a pixel font text...

Identifying Between Refresh And Close Browser Actions

When we refresh the page (F5, or icon in browser), it will first trigger ONUNLOAD event. When we close the browser (X on right top icon),It will trigger ONUNLOAD event. Now when ONUNLOAD event is triggered, there is no way to distinguish between refresh the page or close the browser. If you have any solution then give me. ...

Including WinDbg in the vsjitdebugger list

Is it possible to include WinDbg in the list of debuggers shown by vsjitdebugger when the latter is configured as the default debuuger in HKLM...\AeDebug? Ideally I would like to be able to include a few more command-lines to the list of choices in vsjitdebugger that are available when a process encounters an unhandled exception: using ...

Your favorite GUI client for SVN

The only client I keep hearing about is TortoiseSVN. Is this the best option or do you have another preferred client? ...

How can I script copying files from Unix to Windows?

Is there any way a script can be made that copies files from a Unix drive onto a Windows drive? ...