How do I add items to all windows' window menus?
I'd like to write a utility in the vein of PowerMenu - it adds some extra stuff into all applications' window menus (alt-space, that menu). How does one go about doing this? ...
I'd like to write a utility in the vein of PowerMenu - it adds some extra stuff into all applications' window menus (alt-space, that menu). How does one go about doing this? ...
I have a sound card driver and I need to automate the installation of it on windows. Is there any way to achieve this. ...
Using Winspector I've found out the ID of the child textbox I want to change is 114. Why isn't this code changing the text of the TextBox? [DllImport("user32.dll")] static extern IntPtr GetDlgItem(IntPtr hDlg, int nIDDlgItem); [DllImport("user32.dll")] public static extern int SendMessage(IntPtr hWnd, int msg, int Param,...
I have been using WPF for a few years now and don't have any experience with anything but managed code. I started writing an app that uses a lot of win32 interop and i started wondering if i was leaking memory or generally doing something stupid that i didn't know about... So i thought i would seek some advice! Is there any gotchas/tips...
I am calling NetUserAdd and it is returning 24 for every call. Does anyone know what 24 stands for? It is kind of hard to debug it when I don't know what the error means. I am calling this from an Windows XP machine running as a local admin. I am also a local admin on the target computer. I tried this with USER_INFO_1 and it worked ...
hi.. i want to use some thing unique for a licensing system. i decided to use ProcessorID from Win32_Processor Management class. i tried on two different systems with same processor type.. it shows me same processorID for both system. i am using this code public static String GetCPUId() { String processorID = ""; ...
How do I get a list of the running processes (with details of PID, Owner etc) on my machine using Delphi? EDIT: None of the solutions proposed gives me the user that owns the process, only info such as PID, ExeName etc... ...
I am attemping to use NetUseAdd to add a share that is needed by an application. My code looks like this. [DllImport("NetApi32.dll", SetLastError = true, CharSet = CharSet.Unicode)] internal static extern uint NetUseAdd( string UncServerName, uint Level, IntPtr Buf, out uint ParmError); ... USE_INFO_2 info = new U...
Functions in the Win32 SDK that return variable-sized data usually allow you to pass a zero-sized buffer, and then they tell you how much space you'll need. They tend to look like one of the following (simplified): LSTATUS RegQueryValueExA (HKEY hKey, LPCSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, ...
I need to either bring front browser window if it is already running or launch the browser from my application. I'm now using ShellExecute to open a new browser, but it will eventually create many browser instances or tabs. So how to check if the browser is already running and switch the application to browser? I'm currently using this:...
I have been having a problem identifying a flash drive in my code. Luckily my code can be run from the flash drive. So is there a way in C (or C++) to tell what drive letter (or drive name) a program is running on? Reason I need to know is when I plug the USB drive in, it is running a program that copies files from the computer to the ...
Hello, I'm trying to make a small program that could intercept the open process of a file. The purpose is when an user double-click on a file in a given folder, windows would inform to the software, then it process that petition and return windows the data of the file. Maybe there would be another solution like monitoring Open messag...
Anyone have any idea how to grab text from a QWidget window in a Windows application? This is what it looks like when I look at it using Winspector: http://www.tightpoker.com/images/ftplobby.jpg I would have posted that as an image but apparently new users aren't allowed to use image tags... It can't find any sub classes (ie, for the...
My service needs to store a few bits of information (at minimum, at least 20 bits or so, but I can easily make use of more) such that it persists across service restarts, even if the service crashed or was otherwise terminated abnormally it does not persist across a reboot can be read and updated with very little overhead If I store ...
A long time ago I remember using a program where I just moved my mouse around the screen and it displayed the hWnd information (and some other stuff) of the window (and parent, and child) to where you were pointing your mouse. Does anyone know of something like this? I cant find it anymore. (btw this is windows 7) Edited: it's not ye...
A module can be unloaded, so how can I tell for sure if it is still in memory? I have a handle to it, obtained from GetModuleHandle. When I tried calling GetHandleInformation on it I see error 0xc0000008 - "An invalid HANDLE was specified." This happened before it could have been unloaded. ...
Hello, I tried using both ReadProcessMemory() and WriteProcessMemory() in my application,but in both cases I get one result - Only part of a ReadProcessMemory or WriteProcessMemory request was completed. Has anyone met that error code before? I'm using Vista SP2,I tried to run as admistrator,but I till get that erorcode. ...
Hi, I just met a problem about WM_NCMOUSELEAVE. I noticed that when a window is created, then just move the cursor over its caption, then a WM_NCMOUSELEAVE will be sent to it. There's no call of TrackMouseEvent(). I read MSDN, but get no clue. :( thank you for your advise. ...
Skype has a nice custom folder icon for the Skype folder in C:\Program Files. How do you do register a custom icon for a specific windows (XP and up) folder? ...
I need to be able to print reports, general stuff. But I need it to be simple, flexible, and light. Reports must be independent from the application, and corrected and updated, by sending new report files. A good extra would be allowing the user to creating basic/advanced reports, on there on. ...