Questions tagged [winapi]
The Windows API (formerly called the Win32 API) is the core set of application programming interfaces available for the Microsoft Windows operating systems. This tag is for questions about developing native Windows applications using the Windows API.
winapi
43,122
questions
-2
votes
0
answers
20
views
Clicking a button in another ms-access application via hWnd
I'm trying to write a piece of code in VBA that clicks a button in another access application.
I know how to do it when the application is written, e.g. in C#, via Windows API, e.g. FindWindow and ...
0
votes
1
answer
30
views
Default Button and Kill Focus handler Edit Field in Dialog when Enter pressed?
In the case of having an Edit Control with a Kill Focus Handler and an OK button set as the default button, I noticed that when the focus is in the edit control (Want Return is not enabled) and the ...
0
votes
1
answer
13
views
LsaAddAccountRights() doesn't actually grant account rights
Full code: https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7Samples/security/lsapolicy/lsaprivs
I ran the code, but the user still hasn't been granted the "Log on as a ...
0
votes
0
answers
38
views
Unexpected rounded corners in Qt Frameless Widget
Unexpected rounded corners in Qt Frameless Widget
I use Qt and Windows API to create a window with a custom title bar, and I want this window to have some of the effects of a Windows window (maximize, ...
0
votes
2
answers
72
views
Can I return while inside a Win32 CriticalSection?
I have a Win32 API question about critical sections.
Is it OK to return when in a critical section? Or once you enter the section do you have to fall through and leave the section? Here's some sample ...
0
votes
1
answer
48
views
Native file open dialog in Windows Ruby
As far as I understand, there are no gems which help to open native file dialogs, so I am interested in writing one, specifically for Windows
I'm stuck at the first step which is getting the CLSID for ...
0
votes
1
answer
36
views
Can I check if it's an ARM64 system in NSIS setup?
I am currently using NSIS 3.10 version.
I was watching NSIS news, and from 3.04 version
I have seen the following.
NSIS 3.04 improves Windows 10 and ARM64 detection along with
the usual collection of ...
-1
votes
0
answers
41
views
Get minimized/maximized state of a suspended/not responding window
I'm looking to determine whether a window is minimized/maximized/neither, which can normally be done a few different ways:
IsIconic(hwnd)
GetWindowPlacement(hwnd).showCmd
(GetWindowLong(hwnd, ...
0
votes
0
answers
47
views
Win32 LoadLibrary, prepend search path for transitive dependencies, without removing PATH env variable
I have a case where I need to load Win32 DLLs into a process. For dependencies of those DLLs, I need the 'default search path' to be in effect, which ends by searching the PATH environmental variable. ...
1
vote
1
answer
47
views
Win32 API makes only my last click-through label appears (overlay created in tkinter)
I am writing a tkinter overlay which is my main class. This class can display images at specific coordinate using tkinter label, however the images should be click-through. Therefore, I extended the ...
1
vote
0
answers
44
views
Linking GetUILanguageFallbackList API with MinGW-w64
I'm trying to use the Windows GetUILanguageFallbackList API with MinGW-w64.
Here is a very minimalistic example of calling the API:
#include <windows.h>
#include <muiload.h>
int main() {
...
0
votes
0
answers
58
views
How to establish BLE connection without going through SMP process in single ended Bluetooth pairing
After pairing and connecting an Android phone and a Windows computer on the Bluetooth settings page, open the phone's Bluetooth interface to release the pairing with the computer. At this point, using ...
-10
votes
0
answers
70
views
"undefined reference to `WinMain@16'" error in VS Code. Same program runs fine in online compilers [closed]
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
This error happens every ...
0
votes
0
answers
39
views
ERROR_INVALID_WINDOW_HANDLE using LVM_GETITEMPOSITION [duplicate]
I'm trying to retrieve the positions of the desktop icons.
I do get the right item count, but for the positions I always get 0, 0.
If I check for the last error I get ERROR_INVALID_WINDOW_HANDLE, ...
0
votes
0
answers
49
views
Started a project on Visual Studio2022 using C++, but error 'C3861' appears on my .cpp when using Windows Biometric Framework sample code
This is the Output:
1>------ Rebuild All started: Project: WindowsProject01, Configuration: Debug x64 ------
1>WindowsProject01.cpp
1>C:\\Users\\user\\source\\repos\\WindowsProject01 - Copy\\...