Questions tagged [winapi]

-1 votes
0 replies
Windows-Based Client that will take data from another Windows Program [closed]
We would like to create a new software client that will run on a Windows environment that will listen to another, separate software system's inpu...
asked 1 month ago
3 votes
1 replies
How to pause a timer created with CreateTimerQueueTimer
I need to pause a timer created using CreateTimerQueueTimer function of win32 API but I can't find a way to pause the timer. Does anybody knows i...
asked 1 month ago
0 votes
1 replies
How to recover privileges with GetTokenInformation () ? c++
I would like to recover all privileges from a username. For example privileges : "SE_ASSIGN_PRIMARY_TOKEN_PRIVILEGE", "SE_AUDIT_PRIVILEGE", "SE_D...
asked 1 month ago
-1 votes
0 replies
How to delete all characters from stdin after accessing the server?
There is a server that runs the n-th number of processes. Synchronization happens by means of a mutex. Clients are processed sequentially one by...
asked 1 month ago
-1 votes
1 replies
when should I use “Memory Manipulation Mechanisms” in WIN32 API programming?
I am studying WINAPI programming and doing bit kind of experiments by writing winapi codes. When I moved toward 'Memory Management using winapi'...
0 votes
1 replies
Prevent Console Window Being Resized / Scrolled In C (Window.h)
I'm using window.h in my C program and want to be able to prevent the user from resizing the console window. Is it possible to remove the scroll...
asked 1 month ago
-1 votes
0 replies
How can I make the button clickable on a semi-transparent path geometry which passes all mouse events through?
I need to control behind semi-transparent background with mouse. In detail, my app fills up the whole screen with semi-transparent background and...
asked 1 month ago
-1 votes
1 replies
Windows limit CPU usage using JobObject not working on all computers
I am using JobObject to limit my process cpu usage. I am running my code on two computers running windows 10. On one machine it's working but on...
asked 1 month ago
1 votes
1 replies
Resolve shared library path on Windows and *nix systems
When loading shared library given its name, systems searches for the actual file (eg .dll) in some directories, based on search order, or in cach...
asked 1 month ago
1 votes
1 replies
How to prefer font that is loaded by AddFontMemResourceEx than system?
I'm developing game application on windows by C++ with the font that is included in resource. I can load the font by AddFontMemResourceEx and Cr...
asked 1 month ago
0 votes
0 replies
Programmatically Disabling System-wide Touch Gestures in Win32 C++ Application on Windows 10
I'm creating an application that locks down some functionality in running apps on Windows 10 and I would like to selectively disable/enable certa...
asked 1 month ago
2 votes
1 replies
Reverse op for GetKeyNameText
We can use GetKeyNameText() to retrieve a string that represents the name of a key. Is there any way to do the reverse, ie get a scancode or virt...
asked 1 month ago
-8 votes
1 replies
Array String null
Why does my IntForItem1 go over the max lenght of arrayStrings??? int TotalItems = 0, IntForItem1 = 0; struct Item { int Index; std::st...
asked 1 month ago
0 votes
0 replies
How come I get ERROR_DIAL_ALREADY_IN_PROGRESS when sync calling RasDial?
Here is my RasDial code: RASDIALPARAMS params={.dwSize=sizeof params,.szEntryName="VPN Connection"}; HRASCONN conn; RasDialA(NULL,NULL,&para...
asked 1 month ago
1 votes
1 replies
How to change cursor image in Python
I want to change my cursor image (everywhere on screen) when my program is running. I try to load image with win32gui and then use win32api to c...
asked 1 month ago
1 votes
1 replies
How to Cancel/Reset page between StartPage/EndPage when printing?
I'm processing a specially formatted text file to send to the printer. I have encountered a condition that would be easiest to handle by discard...
asked 1 month ago
0 votes
1 replies
Why are MailMerge objects unable to be converted to Unicode? Is there a reliable way to print templated docs in Python?
I am trying to read a text file which is formatted like a spreadsheet into a list, and then use the parameters from said columns as merge fields...
1 votes
2 replies
How do I add vertical scrollbar to a fullscreen win32 console?
When I set my win32 console to full screen, the vertical scrollbar disappears. When the text goes to the bottom of the screen, it does not scroll...
asked 1 month ago
1 votes
0 replies
hook function failed using push/retn method
I try to hook a function by push/retn method,the program compile and runs successfully. it should pop up a "hook success" dialog,however it pop...
asked 1 month ago
1 votes
1 replies
How to close a socket connection of other application?
Similarly to what TCPView can do. Are there any ways to do it in .net or in winapi? I need to automate this process to simulate connection los...
asked 1 month ago
-8 votes
0 replies
C++ call calculater failed, but the funciton return value is success [closed]
ShellExecute(0, (LPCWSTR)L"open", (LPCWSTR)L"calc.exe", 0, 0, SW_SHOWNORMAL); returns success, but my computer has uninstalled calculator. Why?...
asked 1 month ago
1 votes
0 replies
Signing data in c++ app using CNG and verifying in php api
I read a lot about asymmetric encryption and still can't understand how is the step by step process to achieve what I need. What I need: Creat...
asked 1 month ago
-6 votes
1 replies
Modifying Windows System sounds
I'm trying to change the Windows' system sounds for example startup sound or shutdown sound but all my solutions don't work. I can't replace any...
asked 1 month ago
-1 votes
1 replies
Delphi: application running as admin does not receive messages from non-admin app
I want to send messages to another application, using SendMessage/PostMessage, but when the other app is running as admin it never receives the m...
asked 1 month ago
1 votes
0 replies
How to render in the title bar with D3D11 in Windows 7?
I have a program that renders to a D3D11 swapchain created with IDXGIFactory2::CreateSwapChainForHwnd. It clears the swap chain to a particular c...
asked 1 month ago