Hooking into Windows File Copy
I want to write my own file copy program that will run when the user chooses'Paste' (Ctrl+V) in Windows Explorer. Some programs like CopyHandler and SuperCopier are doing this. But I don't know how. Please help. ...
I want to write my own file copy program that will run when the user chooses'Paste' (Ctrl+V) in Windows Explorer. Some programs like CopyHandler and SuperCopier are doing this. But I don't know how. Please help. ...
Hi There, My application has several threads: 1) Main Thread 2) 2 Sub-Main Threads (each with Message Loop, as shown below), used by TFQM 3) n Worker Threads (simple loop, containing Sleep()) My problem is, when I close my application, the Worker Threads manage to exit properly, but 1 of the 2 Sub-Main Threads hangs (never exits) when ...
I'm making another app's window topmost to ensure that a click in my app brings the other's dialog into views. The problem I'm having is that I don't get focus back to my app after the call. If the other app has more windows one of them ends up with focus, and otherwise no window (looking at the taskbar only) gets focus. Where should I s...
Hi, From kernel mode in Windows I'm able to intercept and monitor virtually all actions performed on a particular disk. When a file is opened for any purpose I get an event. Now I want to trace which application that opened it. I think this should be possible but don't know how. I'm using the standard file management functions in Wind...
This question was inspired by two interesting articles: "How Microsoft Lost the API War" by SO's very own Joel Spolsky, written in 2004, and "From Win32 to Cocoa: a Windows user's conversion to Mac OS X" [Part 2] [Part 3] by ArsTechnica's Peter Bright in 2008. These two authors believe that Microsoft has lost its focus on the API that ma...
I have a separate partition on my disk formatted with FAT32. When I hibernate windows, I want to be able to load another OS, create/modify files that are on that partition, then bring Windows out of hibernation and be able to see the changes that I've made. I know what you're going to type, "Well, you're not supposed to do that!" and th...
Is there a generic API call I can make to get a handle of the image or video feed coming from a webcam and replace it with an image or video of my own so that applications interfacing to the cam (e.g. MSN/Skype/Yahoo IM) will see my image instead of what the camera is capturing? Ideally, I am trying to solve this in a generic way indepe...
Hello, I'm trying to write a small app that monitors how much power is left in a notebook battery and I'd like to know which Win32 function I could use to accomplish that. ...
This error message appears on a colleague's machine when he tries to launch a Windows application he's working on: An unhandled non-continuable exception was thrown during process load What does this mean, and how does one go about investigating what is causing it? I have Googled it, but haven't found a clear answer. It seems to ...
How can I set the flag FILE_FLAG_BACKUP_SEMANTICS for an fstream object? You can set most flags with fstream, but it seems like this one is not availble. You can read about the flag here. ...
I have a string containing a date, and another string containing the date format of the first string. Is there a function that I can call to convert that date into something like a SYSTEMTIME structure? Basically, I'd like the opposite of GetDateFormat(). ...
Are pipes considered dangerous to use in Windows, from a security standpoint? ...
My C++ application stores some common user data in %CSIDL_COMMON_APPDATA%\Company\Product. I want to make sure the Users group has write permisions to this folder which on Vista it does not. How would do I do this? ...
const char* title = "old title"; HWND hwnd = FindWindow(title, title); SetWindowText(hwnd, "new title"); This sets the title bar to "new title", but the caption in the task bar is still "old title". How do I set both? If relevant, this is being done in a DLL loaded in the process which owns the window. ...
Is there a correct way in Windows Forms to flash a titlebar without having to drop to P/Invoking FlashWindow? I'm using .NET 2.0 for compatibility and size reasons, so maybe I just missed the method because it's in newer versions of the .NET framework. ...
Hi, I am working with a peripheral device that needs to be communicated through serial. I can send it commands using Hyperterminal, but now I need to write programs that will let me do it without Hyperterminal. Can somebody point me to a website and/or show me a sample hello world program to get me started? I have searched for many s...
In win32, are thread input queues global to all applications? So Application A can attach itself to application B's thread input queue? ...
In almost any Windows application, I notice that holding the mouse button down in a non-client area causes the painting to stop. Why is this required? For example, I have a Managed Direct 3D application which displays a spinning cube. If I place the pointer over the title bar and hold the mouse button down, the cube ceases to spin even ...
Hello all, In my service I have a few threads that each call the CreateProcess() function to launch an external application. I would like to adjust thread (or process) priorities to normal or lower, depending on some other factors. The problem is that SetThreadPriority() function fails with an error 6 (invalid handle?). I'm passing in a...
I'm writing a license agreement dialog box with Win32 and I'm stumped. As usual with these things I want the "accept/don't accept" buttons to become enabled when the slider of the scroll bar of the richedit control hits bottom, but I can't find a way to get notified of that event. The earliest I've been able to learn about it is when t...