Is there a way to detect when a window that doesn't belong to my application is being dragged in windows using python/pywin32? I want to set it up so that when I drag a window whose title matches a pattern near the desktop edge, it snaps to the edge when the mouse is let go. I could write code to snap all windows with that title to the d...
In the following code, I am trying to get a folder location from the user. However, when I selected E:\ in the folder browser, szAbsolutePath doesn't give me the path for the CD burner temporary folder. This prevents me from saving to this location. However, if I choose something like E:\folder1\, I get the full path and can write out fi...
Do you know how to read another process stack in delphi ??
...
How can you set cursor for a child window from parent window without subclassing it?
...
Hi, i have problem i can't solve for a while.
For one of my C++ projects i have to write function to change Bluetooth radio local name.
It uses Microsoft Bluetooth stack. You can find this name if you open any Bluetooth dongle device properties and navigate to Advanced Properties.
I need this without any third-party libraries, only WinAp...
I have a resource:
IDC_MYMENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit"
END
POPUP "&Stuff"
BEGIN
MENUITEM "&Go"
END
END
On the first END it says there is a syntax error, I don't understand why. Anyone know? :(
...
In researching options for getting better than the 15 ms resolution provided by .NET timer objects (see http://stackoverflow.com/questions/3744032/why-are-net-timers-limited-to-15-ms-resolution), I am looking at the different timer objects that Windows provides. I have identified the following:
Old style Windows timer
Multimedia timer...
Please:
There are no leaked handles [1]. The file is not open by anything in our software (it could be held open by an AntiVirus or a system indexing service, etc.) The code below can be compiled and run on your computer at home/office: you can see instantly that this loop fails and by itself NEVER attempts the Delete until after ALL h...
Documentation for TransactNamedPipe Function claims that "This parameter can also be a handle to an anonymous pipe, as returned by the CreatePipe function."
This would mean that it is possible to use transactions on anonymous pipes. As I understand it transactions are read/write operations and anonymous pipes are either read or write - i...
Hi,
According to MSDN, WM_SIZE should be sent to window when window is minimized or restored.
But my application window, which is WTL CDialogImpl never get WM_SIZE when minimize or restore.
I use spy++ to check on it, I can get WM_SYSCOMMAND, WM_WINDOWPOSCHANING, WM_ACTIVE, WM_ACTIVEAPP etc, but no WM_SIZE.
I checked some other WTL ...
I'm writing a DDE logging applet in visual c++ that logs several hundred events per minute and I need a faster way to keep time than calling GetSystemTime in winapi. Do you have any ideas?
(asking this because in testing under load, all exceptions were caused by a call to getsystemtime)
...
For example, to have rschit process excell.exe means Perl.
...
Hi everybody,
I have some code which works on a standard XP system, but fails on XP
Embedded test machine.
I get System.Management.ManagementException : Provider Load Failure
Here is my code:
string query = "Select * From Win32_Printer";
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
ManagementObj...
Hey guys, I have a rather complex series of applications which depend on the ability to switch applications in the foreground.
My problem is, every 5 or 6 times of switching the applications in the foreground, it simply fails to bring the application forward. GetLastError does not report any issues. Often times I see the correct applica...
The Windows APIs don't seem to me to be as straight forward as you might expect. To me, they are somewhat convoluted fashion?
Is this is an effect of keeping backwards compatibility?
Is Microsoft's main goal to push developers to higher level abstractions like ATL/MFC, VB, and/or .net?
It's my first time using the Win32 API and calls...
I'm trying to run a command from a window project using system() call but everytime the console shows up. how can i run the command without displaying a console window?
...
My application need to save event viewer logs to a specified directory and it has to be done with win api. Application and System logs are required.
EDIT: EvtExportLog - I found out that I can't use this function because minimal requirements are Win Server 2008, and I need this to work on Win Server 2000 and Win Server 2003.
Any sugges...
i need to create edit box in c++ without using mfc.....
only win32
...
What libraries for C do I need to play a wav file on a Win32 system?
And what is the code to use those libraries?
...
Hello ,
I have a program that needs to send the BM_CLICK message to another applications button.
I can get the parent window handle but when I try to get the button handle if always returns 0
I got the button caption name and button type from Spy++ it seems right but I know I must of gotten something wrong. below is my code
public co...