windows

How to change the priority of a thread in run time in windows?

I am writing a multi-thread application in windows OS. All threads are runing as services. If I want to change the priority of service in run time, how can I do this? Does windows provide any API? Many Thanks! ...

Tortoise SVN Author in Log File Missing

For some reason, no matter how I go about it, I cannot get TortoiseSVN to add an Author to Log Messages. Currently we connect to a PC running svnserve, so it's not a file:// Address. We have tried using svn://Username@svnAddress, svn://svnAddress Even setting svn:keywords $Author: AuthorName$ I was under the impression that TortoiseSV...

Windows disk partition gap

Windows XP Disk Defragmenter report shows a constant gap in disk usage on a number of disk partitions on my system. I'm not referring to the little transitory gaps that occur. In disk D below, the gap in question is the one under the word "defragmentation". In disk P below, the gap is the one under "usage before def" the but a bigge...

Will installing the Visual Studio 2010 +Oslo CTP screw my Visual Studio 08 install?

I'm eager to give these a go, but I've only got my precious home machine to try it out. I'm in the middle of some important work that can't get inferred with, yet I can't resist the urge to give the new bits a go. Will installing VS10 on a Vista SP1 box with VS08 screw with the VS08 experience in any way? ...

UNICODE_STRING to Null terminated

I need to convert a UNICODE_STRING structure to a simple NULL TERMINATED STRING. typedef struct _UNICODE_STRING { USHORT Length; USHORT MaximumLength; PWSTR Buffer; } UNICODE_STRING, *PUNICODE_STRING; I can't find a clean sollution on MSDN about it. Anyone been there? I am not using .net so I need a native API s...

How can I get a list of all open named pipes in Windows?

Is there an easy way to test whether your named pipe is working correctly? I want to make sure that the data I'm sending from my app is actually being sent. Is there a quick and easy way to get a list of all the named pipes? ...

How does the Sun JVM map Java threads to Windows threads?

My application uses loads of Java threads. I am looking for a reliable understanding how the JVM (version 5 and 6) maps the Java threads to underlying Windows threads. I know there is a document for mapping to Solaris threads, but not Windows. Why doesn't Sun publish this information? I want to know if there's a 1:1 mapping, or if it v...

MFC Event Handlers

Just wondering what the difference between MFC control messages prefixed with the following is: LVN (e.g. LVN_ITEMCHANGED) HDN (e.g. HDN_TRACK) NM (e.g. NM_HOVER) Also, I am using a ListControl and trapping when the user clicks on an item using the NM_CLICK message. I also want to trap when a user selects a new item view a key e.g. up...

Good free FTP Client Library (for Windows C++ commercial apps)?

I'm looking for a good open source Windows FTP client library with a public domain or BSD-type license. Something that I have access to the source code and I can use it from C++ for Windows applications in a commercial app. We have used Wininet for years and it's buggy and horrible. The last straw is the IE8 beta 2 contains a new bug ...

Why is the storage for MSMQ full when the queues themselves are empty?

A QA server of mine which has not given me any flack for a while started giving my applications errors because they could not write to a queue. MSMQ specifically threw a message saying "Insufficient resources to perform operation". A check of the queues themselves indicate that they are empty, with zero messages each. A check of the li...

controlling CPU utilization

how is it advisable to control the cpu utilization during run time ? poll the cpu load and insert sleeps ? ...

"There is no disk in the drive" in an application that doesn't require it

Our application is written in C++ and used on Windows XP. On some client machines with only a C: drive, an error pop ups when the application starts: There is no disk in the drive. Please insert a disk into drive "D" If they hit "Continue" or insert a CD (even an empty one!) and press "Try Again", everything works fine. Someone sugg...

COM, VARIANT containing BSTR. Who allocates?

OK, so I couldn't really think of an apropos title that summarizes this. The IPrintPipelinePropertyBag interface has the method AddProperty which aptly enough "adds a property to a property bag." http://msdn.microsoft.com/en-us/library/aa506384.aspx AddProperty( [in, string] const wchar_t *pszName, [in] const VARIANT *pVa...

Coldfusion Server Monitoring - Not Working

Hi there. I am trying to launch the Coldfusion Server Monitor on a Windows Server 2003 (Web Edition) machine running Coldfusion 8 (ver. 8,0,0,176276). It is running in stand-alone configuration. The pop-up window launches as http://www.mydomain.com/CFIDE/administrator/monitor/launch-monitor.cfm. However, I get a Flash dialogue box the...

How can I import a directory structure into SVN, keeping the file and folder modifed dates the same?

I've got a large source tree (> 2 GB, WINCE build tree) that I would like to start managing with Subversion. Up to this point, 'versioning' has been managed through keeping multiple copies of the tree, and using Beyond Compare to find differences. The last big stumbling block I see to using Subversion is that it modifies the file timest...

Oracle Express Edition - Can not connect remotely (plus others)

I'm unable to make a remote connection to an Oracle XE install (through TOAD / SQL Developer). Here's the deal. I set up a new server (windows 2003). The goal was to make a new image with several applications preinstalled, Oracle XE being one of them. Got Oracle installed no problem, connected locally, remotely and had access to the ...

Why did Windows 64 choose to require xmm6 and xmm7 to be saved/restored?

Why did Windows 64 choose to require xmm6 and xmm7 to be saved/restored? In Windows 32, you could write assembly routines which clobbered xmm0...xmm7. But if you take that same assembly code and run it in Windows 64, it will usually cause an application fault because VS2007 stores double-precision values in xmm6 and xmm7. It seemed to ...

Windows C++ UI Technology

If I want to build a native GUI application on Windows (C++), do I have to use MFC for the UI building framework, or are there other technologies I can use? I know it's a silly question, and the answer is probably, "use MFC or make API calls directly", but I'd like to hear some opinions. ...

Qt: how to make a shadow to main window widget?

How to make a shadow to main window widget on windows using Qt? ...

How do I programmatically send an email in the same way that I can "Send To Mail Recipient" in Windows Explorer?

ShellExecute() allows me to perform simple shell tasks, allowing the system to take care of opening or printing files. I want to take a similar approach to sending an email attachment programmatically. I don't want to manipulate Outlook directly, since I don't want to assume which email client the user uses by default. I don't want to s...