windows

Where is Shellrevealed

As a new shell developer I came across many new articles that have links and examples from a website called Shellrevealed.com Unfortunately all of those links are dead as Shellrevealed itself can not be found anywhere. My question is, did they really shutdown or did they change their url???? ...

Remote File Read

Hi All, How can I read a text file resides in a remote machine? There is no share exists in that machine and I am not allowed to create any share or file in the remote machine. Also I am not allowed to run any client program in the remote machine. My program is a ASP.net in C# residing in a IIS webserver. For linux machine we used ssh c...

Developing Windows applications on Linux?

My primary OS is Linux, but now I'm forced to write some C++ applications for Windows. I was thinking about developing on the Linux box with cross platform libraries like WxWidgets (and some care about other platform dependencies) and then cross compiling the result to mingw target. So the tools I'm thinking of using are g++ for compi...

Detecting if a process is still runnning

I need to check if a process with a given HANDLE is still runnning, I tried to do it using the following code however it always returns at the second return false, even if the process is running. bool isProcessRunning(HANDLE process) { if(process == INVALID_HANDLE_VALUE)return false; DWORD exitCode; if(GetExitCodeProcess(pr...

Why Content-Length is 0 while sending POST request with XMLHttpRequest object?

I have a virtual directory on IIS 5.1 with two aspx pages. Access to Page1 configured as "Integrated Windows Authentication" option turned on and anonymous access is disabled. Page2 available through anonymous access. On client side there is XmlHttpRequest object that can send requests that contains POST data to this pages. At first I t...

how to "dock"/attach winforms forms

I'd like to attach two forms within the same app to each other like done by some of the music players such as winamp where the windows can be detached or attached together on one of the sides and after that moving one window movies the other one too ! There perhaps is a better term to describe this behavior any patterns or code samples...

Given an HDC, how can I determine what the name of the application is?

I have an HDC object and I'd like to use it to get the name of the program that created it (such as Notepad or Firefox). Is there a way to do this? If not, how can I do this? ...

Invert colors of a WPF Image

I've been searching everywhere, can't find any answer. How could I invert the colors of a BitmapSource or an Image (System.Windows.Controls.Image) from WPF. Thanks ...

What does CancelIo() do with bytes that have already been read?

What happens if I ReadFile() 10 bytes (in overlapped mode without a timeout) but invoke CancelIo() after 5 bytes have been read? The documentation for CancelIo() says that it cancels any pending I/O, but what happens to the 5 bytes already read? Are they lost? Are they re-enqueued so the next time I ReadFile() I'll get them again? I'm l...

Creating new mail (default client) from Java/Windows

I want to open the "new mail" view using the default mail client (i.e. open a new mail form in Outlook). But when I go String cmd = "explorer.exe \"mailto:[email protected]?subject="+ subject+"&body="+body+"\""; Runtime.getRuntime().exec(cmd); the mail shows up, but I have a problem: explorer.exe brings up an Internet Explorer inst...

How to manage IIS from web page

I have the need to add Host Headers to an existing web site in IIS. I want to be able to add this host header via a Web page, ASPX page. Also, I want to able to create a new web site from file. Sample code? How to do I manage security issues, what issues should I be concerned about? How many host headers can a single web site have? I a...

How do you register a name for a program in the windows run dialog?

How do you register a name for a program in the windows run dialog? for instance typing in "notepad" and pressing enter runs notpad.exe "photoshop" in my case runs Photoshop CS3 im using vb2005.net ...

Windows Pre-Caching SQLite problem

SQLite is a great little database, but I am having an issue with it on Windows. It can take up to 50 seconds to perform a query on a 100MB database the first time the application is launched. Subsequent loads take 10% of that time. After some discussions on the SQLite mailing list, I am told "The bug is in Windows. It aggressively pre-...

Why do Windows consoles lose command-line history (up arrow) after a time?

It seems random: after some amount of time / usage of any console I use on Windows Vista, I lose the ability to use the command-line history (or command buffer, if you prefer...), and hitting the up or down arrow no longer does anything at all, meaning there are essentially 0 items available in the history. I've seen this behavior in Cy...

checkdnsrr always returns false on windows

I am using checkdnsrr on Windows with PHP 5.3 and it always returns false. dns_get_record, however, works. echo ("test.com dns check: ". checkdnsrr("test.com","NS")); //false!! print_r(dns_get_record("test.com",DNS_NS)); //returns the right data Any ideas? ...

Is the StateMachine on Windows WorkFlow Thread Safe?

Hello I am planning to use the State Machine WorkFlow of Windows Workflows. The state machine will be receiving events from two separate threads, the state machine of course will both change its state and execute actions based on its current state and the event that came in. My question is, is the state machine of windows workflow thr...

Not enough Storage is available to process this command when running java utilities from command line

I'm on Windows Vista 64 bit, with a 64 bit jvm installed. I'm trying to use jstack and jmap -- two utilities that come with the JDK -- to peek into an application server's guts. This works fine on a windows xp machine, 32 bit. However, when I run these commands against the processid for a ColdFusion application server on this vista64 ma...

In GTK on Windows, how do I change the background color of the whole app?

According to http://www.pygtk.org/docs/pygtk/gtk-constants.html, there are five state types: STATE_NORMAL, STATE_INSENSITIVE, etc. I want to set the background color of a Table, HBox, VBox, whatever, and I've tried setting every possible color of every kind of state: style = self.get_style() for a in (style.base, style.fg, style...

Using hardlinks when cloning a Mercurial repository under Windows

I am using Mercurial under Windows XP (using the TortoiseHg distribution) and I want to use NTFS hardlinks when cloning a repository. Out of the box Mercurial does not do this. I have read that a win32file python extension needs to be enabled. So far I have been unsuccessful in making this work (adding a win32file entry to the extensions...

I am getting a Strange errors error LNK2001: unresolved external symbol _deflateEnd in VC++ please help

I am using a external library of libharu-2.0.8, this is a open source pdf library. This lib have a lib file called libhpdf.lib and few header files I have written a simple code to use this library. I am getting following errors. libhpdf.lib(hpdf_streams.obj) : error LNK2001: unresolved external symbol _deflateEnd libhpdf.lib(hpdf_st...