windows

TStatusBar flickers when calling Update procedure. Ways to painlessly fix this...

So, here is the discussion I have just read: http://www.mail-archive.com/[email protected]/msg02315.html BeginUpdate and EndUpdate is not thi procedures I need ... Overriding API Call? I tried to get Update procedures code from ComCtrls unit, nut did not found... Maybe you could post here a code to fix thi flicker of statusbar comp...

How can I make only a part of the window transparent? (WIN32)

How can I make for example only a rectangle inside the window have opacity like 50% or something like that and for that part to have the effect of WS_EX_TRANSPARENT so that mouse clicks will go through it? ...

How to avoid network stalls in GetFileAttributes?

I'm testing the existence of a file in a remote share (on a Windows server). The underlying function used for testing is WinAPI's GetFileAttributes, and what happens is that function can take an inordinate amount of time (dozens of seconds) in various situations, like when the target server being offline, when there are rights or DNS iss...

Waiting for ShellExecuteEx (Setting access rights on Windows process)

Hi, I'm using the ShellExecuteEx function in a C++ program to launch an Uninstall.lnk file. In my program, I'd like to wait for the uninstaller to finish. My first attempt was to set the SEE_MASK_NOCLOSEPROCESS flag in the SHELLEXECUTEINFO structure and then call WaitForSingleObject on the hProcess handle available in the SHELLEXECUTEIN...

Creating hidden processes (window not visible)

I'm using CreateProcess() with startup flags set to STARTF_USESHOWWINDOW and SW_HIDE to start an application in the background with its window hidden. I'm doing this to run a scheduled maintenance tasks and i don't want to be bothered with windows. In most cases the windows are hidden but there are cases where the program's window pops ...

Create NTFS junction point in Python

Is there a way to create an NTFS junction point in Python? I know I can call the junction utility, but it would be better not to rely on external tools. ...

Creating a new form with the same z-order as another form

Windows Forms, .net 2.0 My main application thread has a form (A). I have a background thread which operates off a timer to determine that an activity has taken place - when it does, it causes the main application form to hide (using BeginInvoke), and creates a new form (B) in its own thread (seperate message pump). The two threads th...

Why would Textpad ask if you want to use POSIX regular expression syntax?

I need to separate out a bunch of image urls from a document in which the images are associated with names like this: bellpepper = "http://images.com/bellpepper.jpg" cabbage = "http://images.com/cabbage.jpg" lettuce = "http://images.com/lettuce.jpg" pumpkin = "http://images.com/pumpkin.jpg" I want to remove all text except the URLs fr...

How do I force windows authentication with local asp.net development server?

I'm developing an ASP.NET application which needs Windows Authentication. I have the web.config set up to deny anonymous users and use Windows mode for authentication, but my local development version still lets me pass right through to the site. In order to test different user set-ups, I need to force authorization so I can change use...

Setting the last-modified-time of a directory opened for ReadDirectoryChangesW

I hava a Java program that needs to monitor a directory tree for changes. I have JNI code that uses ReadDirectoryChangesW(). The directory is opened like: HANDLE dirHandle = CreateFile( path, FILE_LIST_DIRECTORY, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL ); and then I pass dirH...

How can I detect if Windows Installer is installed?

I've figured out a way to tell which version of the .NET framework is installed by reading previous SO posts, but I've not found anything about the Windows Installer. Is there a registry key or anything similar that I could verify that Windows Installer 3.01+ is installed? ...

How to download web resource using Digest authentication

What set of Windows API calls will allow downloading a web resource (specifically an XML document) when the site is protected using Digest authentication without having to enter a username and password? I can use MSXML's “open” function on the IXMLHTTPRequest interface, but it requires a username and password to be supplied even thoug...

some OVERLAPS using WSASend not returning in a timely manner using GetQueuedCompletionStatus?

Background: I'm using CreateIoCompletionPort, WSASend/Recv, and GetQueuedCompletionStatus to do overlapped socket io on my server. For flow control, when sending to the client, I only allow several WSASend() to be called when all pending OVERLAPs have popped off the IOCP. Problem: Recently, there are occassions when the OVERLAPs do ...

How can I make a program runnable from the commandline without typing its full path?

I can best explain my question with an example. I recently downloaded Python for Windows, installed to C:\Python. So if I'm in folder X that contains myscript.py, and I want to invoke it, I have to call this: > C:\Python\python.exe myscript.py But it would be super-cool if I could just do this, from within any folder: > python myscri...

Visio to image command line conversion

Hi all, At work we make pretty extensive use of Visio drawing as support for documentation. Unfortunately vsd files don't play nicely with our wiki or documentation extraction tools like javadoc, doxygen or naturaldocs. While it is possible to convert Visio files to images manually, it's just a hassle to keep the image current and the i...

How can I remotely watch logs on Win2003 servers?

(Briefly, like this question but for Windows servers.) I have several Win2003 servers running custom application services (C/C++, not Java) that write text-based logs in a custom format. [2009-07-17 12:34:56.7890]\t INFO\t<ThreadID>\tLog message... [2009-07-17 12:34:56.7890]\t *WARN\t<ThreadID>\tLog message... [2009-07-17 12:34:56.789...

How do I find out what my external IP address is?

My computers are sitting behind a router/firewall. How do I programmatically find out what my external IP address is. I can use http://www.whatsmyip.org/ for ad-hoc queries, but the TOS don't allow for automated checks. Any ideas? ...

run java application as background process...

hi... i have made an application using java....when i am installing it on my computer ...i want it to run as background process instead of application...if any user try Task manager...then he can not found it in application....it should no listed in application list...it is there in process list.... so please tell me how can i do this .....

IE8 automation and https

I'm trying to use IE8 through COM to access a secured site (namely, SourceForge), in Python. Here is the script: from win32com.client import gencache from win32com.client import Dispatch import pythoncom gencache.EnsureModule('{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}', 0, 1, 1) class SourceForge(object): def __init__(self, baseURL=...

Best way to automate tasks in windows

Mac has applescript 'built in' and I've found its pretty nice to work with for automating stuff. What's the best windows equivalent? ...