Hi,
I'm needing to call a Windows API function introduced in Vista from my Delphi app, but I don't have any Delphi headers which describe the function.
Related functions are already documented in the JEDI Windows API library, but not this function.
My C++ is almost non-existent, and I'm struggling to work out the Delphi definitions th...
Is there efficient way to do this?
...
The title says it all. I didnt find any Win32 API which gives the state of a thread. So how do I get the Thread state?
...
I am trying to create a simple open source utility for windows using Python that can perform user-defined actions on the selected text of the currently active window. The utility should be activated using a pre-defined keyboard shortcut.
Usage is partially outlined in the following example:
The user selects some text using the mouse o...
Using Perl, Python, or Ruby, can I write a program, probably calling Win32 API, to "click" on the screen at scheduled time, like every 1 hour?
Details:
This is for experimentation -- and can the clicking be effective on Flash content as well as any element on screen? It can be nice if the program can record where on screen the click...
We're in the unfortunate position of having to use a JavaScript control intended for a web page inside our Windows desktop application. To accomplish this, we host Internet Explorer inside our application and tell it to navigate to a local web page. We then get the IDispatch interface of the script engine and use it to interact with th...
I have to implement a read/write lock in C++ using the Win32 api as part of a project at work. All of the existing solutions use kernel objects (semaphores and mutexes) that require a context switch during execution. This is far too slow for my application.
I would like implement one using only critical sections, if possible. The loc...
Hey there,
is there any recommendation for a library (c++, Win32, open source) to get the sound from a microphone?
Thanks
...
Hi, is there a WIN32 API available to manage folder sharing in Windows? Some links to examples will be helpful. Thanks.
...
I wrote a program to click on an application automatically at scheduled time using Win32, using MOUSE_DOWN and MOUSE_UP. It usually works well, except I found that I need to put in a
sleep 0.1
between the MOUSE_DOWN and MOUSE_UP. (using Ruby, which allows sleeping a fraction of a second).
Without the sleep, sometimes the click doe...
I have a Win32 GUI application that has several edit controls (plain old "EDIT" classname).
The logic is that the user is to fill the edit box selected by the application. To make it clearer which one is to be filled now I want to somehow highlight the "current" edit box. Then, when the user has done input and asked the application to p...
I have an automatic update system that replaces my existing program files on reboot. (Suffice to say, it's a very complicated program with many drivers, services, and user level modules. There really is no other way. Trust me.)
The function MoveFileEx is used with MOVEFILE_DELAY_UNTIL_REBOOT to setup this file replacement. I'm finding t...
Hi,
I have a window that I've placed into another application. In this case, I have a custom application that I injected into a Outlook 2003 Window.
I'm having an issue where the parent window (Outlook in this case), is getting WM_COMMAND messages when I press the backspace key in my application. From my limited Win API experience thi...
I wonder if Perl, Python, or Ruby can be used to write a program so that it will look for 0x12345678 in the memory of another process (probably the heap, for both data and code data) and then if it is found, change it to 0x00000000? It is something similar to Cheat Engine, which can do something like that on Windows.
...
In Visual Studio I generated a plain old Win32 application and stripped all the resources and generated code so that my application consists of this:
#include "stdafx.h"
#include "IcoTest.h"
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int ...
What I would like to do is detect if a user is actively using a computer running Windows (2000 or later). Preferably, I would like to do this without resorting to using screensavers.
Background: We have a customer service department that sits in a hunt group and can be "Available" or not. If they are "Available" calls will be routed t...
I have this global mouse hook setup in a DLL that watches for mouse gestures.
Everything works perfectly but with a hook set for WH_MOUSE_LL which is a low-level hook and one that doesn't need to be in an external injectable DLL.
Once I switch - to the more suitable one would say - WH_MOUSE mouse hook, everything falls apart. Once I cl...
I have an application which runs every hour on a Windows XP Machine. To run properly, this application requires the current session to be unlocked. So I was wondering if there a way to know if the current Windows session is locked or not with C# and .NET 3.5.
UPDATE: The application cannot listen to the SessionNotification events. The a...
While reading this article, I got a doubt.
I understood that while trasferring small data, Nagle algorithm is enabled by default which coalesces small packets. This results in caching some data before transmission. I believe that Winsock Kernel Buffer is the place where caching happens. Correct me if I am wrong.
Does it mean that if t...
Hi,
I'got a C++ app (similar to this one) that downloads files using URLDownloadToFile method (defined in urlmon.dll).
Until IE8, it was possible to abort a download by returning E_ABORT in the progress callback.
On a system on which IE8 has been installed, doing so crashes the program, with an error report generated.
Do anyone know ...