windows

Why does windows let you draw on the whole screen?

I've been playing a big with the DC obtained with CreateDC(L"DISPLAY",NULL,NULL,NULL) and I've been wondering why does windows let you draw on the whole screen that easily, cause I think you could do some pretty evil stuff with that like putting a TIMER at 1ms and drawing a black rectangle on the whole screen every time the timer ticks. ...

Build two interdependent dll

I have to interdependent dll here that i would like to build without having to build them twice (force build both of them and rebuild them again to allow linking). Here is an exemple : **DLL A** void fooA() { fooBB(); } void fooAA() { fooB(); } **DLL B** void fooB() { fooA(); } void fooBB() { } Is there a way to build those...

How to get my company's proxy transparent?

In my company there is a proxy that requires credentials. I use Windows XP and I want to apply an indirection layer in my tcp/ip stack that makes this completely transparent. For example it would be nice a software that I can configure with my company proxy and act as I don't have any proxy in my network. With this software I don't h...

Connecting Windows Driver to Userland Service

How do I communicate with a driver from the userland in Windows? (Vista if that makes a difference.) Can I, and how, communicate with the service from the driver site? I am actually not very lazy and should probably get my boss to buy me a book, but I don't know which. And guessing commands and sections from the MSDN is kinda taking a ...

aspx popup doesnt work with windows forms authentication

In my web application which is a ASP.Net site using Framework 3.5 at few places i need a popup to appear for user to fill out information. The problem is at majority of the IE it runs fine but at few IEs it takes the user back to login page. I am also sending the windows properties as argument in the showModalDialog function so as to re...

Python: Get Mount Point on Windows or Linux

I need a function to determine if a directory is a mount point for a drive. I found this code already which works well for linux: def getmount(path): path = os.path.abspath(path) while path != os.path.sep: if os.path.ismount(path): return path path = os.path.abspath(os.path.join(path, os.pardir)) return path But I'...

pdCurses use in Windows, messes with 3 gcc macros

Hello all, I am making a very simple platform independent(at least that's the plan) console app. I changed from conio.h to pdCurses to make it happen. The problem with that is that in Windows, using Codeblocks and gcc I have a problem. When I include I get tons of errors. They all concern 3 macros all located in different source files...

How to upgrade Subversion version for Windows Netbeans

I installed Netbeans then I tried to checkout my projects inside Netbeans. During the process Netbeans informed me something about an old client version of subversion, and now I want to upgrade it. But I don't know where the client is, nor how to update it. BTW I have TortoiseSVN on the same machine and it works fine with the same repos...

How can I run my application in place of the default Windows XP shell?

I was having a discussion with a colleague about whether or not the following is possible: Install an MFC application from a USB drive in Windows XP (this installation would be initiated manually by a user with sufficient privileges to install software). After rebooting, this application should start instead of the default Windows XP s...

Where can I find a detailed view of the lifecycle of a Windows Service as developed in .NET?

Where can I find a detailed view of the lifecycle of a Windows Service as developed in .NET? I put my question this way because I am not sure that a detailed enough description can be posted here, but if you think you can please feel free to try. An example of an incorrect answer would be a paste of the description from the MSDN page: I...

Auto sizing zoom on an image in .NET

Hello, I'm considering a personal learning project. Using .NET(preferably VB) I want to build a simple desktop app that's only function is to display comics, like CDisplay, but with more advanced navigation. I want to be able zoom in by clicking on certain areas of an image, individual panels for instance, and have the zoom area automa...

How can I get the current user directory?

Using this: Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) I get this output: "C:\\Documents and Settings\\[USER]\\Application Data" How can I get "C:\\Documents and Settings\\[USER]\\" ? ...

How to remove Headers in an ISAPI filter?

The ISAPI Filter documentation says I can call SF_REQ_SEND_RESPONSE_HEADER to send the response header, and also append additional headers. ISAPI also has AddResponseHeaders to allow a filter to add additional headers to be sent in the response to the client. Is there a way, in ISAPI, to remove headers that would otherwise be sent t...

Is there a way to get non-locking stream insertion/extraction on basic_iostream in Windows?

I'm a C++ developer who has primarily programmed on Solaris and Linux until recently, when I was forced to create an application targeted to Windows. I've been using a communication design based on C++ I/O stream backed by TCP socket. The design is based on a single thread reading continuously from the stream (most of the time blocked i...

How can I get notifications from the clipboard?

Is there a way to be notified when the content of the clipboard changes? I looked a class "Clipboard". It has numerous methods to set the clipboard content but no event. ...

Efficiently creating tar files

Note: I'm using Windows file servers and .NET If I were to create a TAR file from files on a remote file server (meaning, the TAR file would be created on the remote file server, where the original files are), would the bytes need to come to my machine and then go back to the file server (since my machine is running the code that's gene...

Flex Web-Tier Setup

Howdy Everyone, This one has been driving me nuts for a few days now and I've tried Google but no luck (judging from my good luck with finding answers on google, this is a rarity for me not to find an answer). To cut a long story short, I did have the capability to compile my mxml files via the browser on my local machine. I've had to ...

trac-past-commit-hook on remote repository

Trying to set up the svn commit with trac using this script. It is being called without issue, but the problem is this line here: 144 repos = self.env.get_repository() Because I am calling this remotely self.env_get_repository() looks for the repository using the server drive and not the local drive mapping. That is, it is looking fo...

How do I open files over FTP with Emacs 22.2.1 on Windows?

AngeFtp? EFS? Is there a better option? Is the preferred option built-in? If so, how do I turn it on? If not, where do I download it? I tried with AngeFtp, just by doing find-file using a filespec like /name@server:/directory and it prompts me for a password, then does the login to the FTP server and gets the contents - it takes ...

Writing for FastCGI in VB6?

While I'm busy here reading the FastCGI documentation (yeah, reading the 'friendly' manual), does anyone know whether anyone has had any success writing FastCGI apps in VB6? Starting to get close to finding a solution myself at Coast Research and Development's FastCGI Dll Library (with SIGTERM handler) for Windows Web Servers ...