windows

I currently use SVN with Linux. How do I add files from my Windows Desktop?

You know, the regular "svn commit". "svn up." When I did svn co, it was linked with SSH. svn co +ssh or something. How would I link this with Windows? I'm using Windows and I'd like to put some code i this SVN. What tools do I use to get started? Can I checkout normally, with the Linux syntax? ...

learning Windows Development from a Linux background

No I didn't reverse my operating systems in that question! My background has been exclusively Linux/OSX to date, and I honestly don't know a thing about Windows development. Visusal *, *.NET, Powershell, WinForms, Win32, not a clue. They're just words to me. This is starting to be a problem because I've been tasked to port Linux/OSX soft...

Can two different Windows SDK versions coexist on the same machine without conflict?

Hello, I have a machine with Vsiual Studio 2005 and Visual Studio 2008 and Windows SDK version 6.1 (Windows Vista). I am planning to install the latest SDK (Windows 7 and .Net 3.5 Service Pack1), but the MSDN Comptabilty document (http://msdn.microsoft.com/en-us/windows/dd146047.aspx) indicates that the latest SDK is not recommended with...

Filtering Internet Requests on Windows OS

I am interested in writing a parental control filter that can be used to monitor and/or redirect all outbound internet requests on a Window desktop OS (Vista or higher). I'd like the filter itself to have unrestricted internet access so it can access a web service on the internet during application/browser requests. For approved traffi...

How to get a mount point from NT device name?

For example, I want to go from \Device\HarddiskVolume1 to C: without having to enumerate all the devices or mountpoints in the system. It seems like IOCTL_MOUNTMGR_QUERY_POINTS can do it but I wondering if there is another way. I've tried all functions on http://msdn.microsoft.com/en-us/library/aa365730%28VS.85%29.aspx and they don't se...

How to set HICON on a window (.ICO with multiple sizes) ?

I would like to define the application icon of a Win32 window, e.g. through a call to SetClassLong with GCL_HICON and passing in a handle to an icon (see SetClassLong Function on MSDN). This works great, but I have not figured out how I should load an icon (from an ICO file) in order to keep all available sizes (e.g. 16x16, 32x32, 48x48...

Limited stack trace in Process Explorer

I have a process running under Windows Server 2003 SP2. When I want to check stack trace of one of its threads it is always limited to 9 entries. Those entries are resolved correctly (I have PDBs in place) but list is just cut in middle. Do you know of any limitation in Process Explorer? ...

Apache POI newLine problem

How can I generate XSLX document on UNIX with WIN newLine symbol? ...

How do I extract ASCII data from binary file with unknown format, in Windows?

On Windows, what is the best way to convert a binary file where the internal structure is unknown less that its contents are ASCII in nature back to plain text? Ideally the conversion would produce a "human"-readable version. I think the file should contain something like the following: Date: 10 FEB 2010 House: 345 Dogwood Drive Exter...

Annotating IRQL changes in windows kernel code

Hi, I'd like to properly annotate the IRQL changes in a windows kernel driver, but I can't figure out how to do it right. Here are the functions: __drv_maxIRQL(APC_LEVEL) __drv_savesIRQLGlobal(evlist, list) __drv_setsIRQL(APC_LEVEL) void evlist_lock(evlist_s* list) { ExAcquireFastMutex(&list->lock); } __drv_requiresIRQL(APC_LEVEL) _...

C++ and Enum and class memebers

Following code is not compiling, can anybody please help what is wrong here class CTrapInfo { public: enum GenericType { ColdStart, WarmStart, LinkDown, LinkUp, AuthenticationFailure, EGPNeighborLoss, EnterpriseSpecific }; CTrapInfo(); CTrapInfo(cons...

Post-mortem crash-dump debugging without having the exact version of a Windows DLL in the Symbol Server

Within my application, I use the MiniDumpWriteDump function (see dbghelp.dll) to write a crash dump file whenever my application crashes. I also use a symbol server to store all my executables and pdb files, so that whenever a customer sends me a crash-dump file, the debugger automatically picks up the correct version of the executable ...

How to avoid using a button in an MFC application?

Hi! This is my first my MFC application, and unfortunately i don't understand, how it works. I found a simple MFC application, which gets the file list of a given path. I modifyed this code for my needs, but now i have one problem. What my application should do is the following. It reads two drive letters from a file. Then gets the file...

GUI Framework/Lib for C++ under Windows

Hi! I was wondering is there an Microsoft alternative to MFC, except WinForms in GUI programming for Windows operating system ? I dont want to use thirdparty (Borland/Qt/wxWindows) libraries. WinForms require .NET which is major problem (can't install .NET in destination machines) and MFC is traumatic to me... Any alternative which w...

Why does the mouse disappear in DISCL_EXCLUSIVE | DISCL_FOREGROUND mode?

When using DirectInput, why does the mouse cursor completely disappear when you use DISCL_EXCLUSIVE | DISCL_FOREGROUND as your cooperative level? mouse->SetCooperativeLevel ( hwnd, DISCL_EXCLUSIVE | DISCL_FOREGROUND ) ; Even though DirectInput is deprecated, does the very fact the mouse is not even available to WINDOWS mean that you'...

Switch/ban/manage active USB keyboards

I would like to create small app (in C#) to switch active keyboards and mouses in windows. For example i have 10 mice and 10 keyboards (in one computer with USB hub) and I would like to ban one or more of these. Is something like that even possible? I have no clue how to achieve this task. Any ideas, Thanks! ...

Is there a way to determine the .NET Framework version from the command line?

To troubleshoot an installation, sometimes I just want a quick answer to what version of .NET is installed. Is there a way to determine the .NET Framework version on a standard Windows system, other than looking at the directories? NOTE: This is not for a development machine, just out-of-the-box windows The following works, but I'm l...

Is there a "coroutine" feature in VB?

I'm programming a application and am wondering, is there a co-routine (or something similar) feature in VB? In my application it pulls a picture from the internet and it takes quite a long time (30-45 seconds) and it stops all code from running while it does that. Here is the line of codes that pulls that picture: PictureBox1.Image = ...

Standard for Windows Event Logging: Log nothing vs. Info vs. Warning vs. Error?

When should I log a message to the event log? Is there an accepted best practice for whether a particular event... Needs to be logged to the event log at all Is an error or a warning Is important enough info to logged as an info event in the event log ...

Get List of Printers from Windows Server

I'd like to query a Windows server that is publishing a set of printers programatically and find out what printers are available on the remote machine (name and description) without installing the printers locally the name of the printer driver respectively I'd like to be able to process the result in some scripting language like Aut...