When modify the keyboard layout of explorer.exe by WM_INPUTLANGCHANGEREQUEST, the keyboard will always be automatically reverted to ENG
I am using SendMessage in AHK v2 (Sorry but I have not yet mastered the syntax for hooking the keyboard and using Windows API in other languages. ) to call WM_INPUTLANGCHANGEREQUEST in order to create a quick input method switcher. When tested in other…
Window appears with old-style UI and no text in titlebar.
I'm developing a middleware for D that is quite similar to SDL/SFML, here's an exempt from the window creation code: class OSWindow { [...] this(io_str_t title, io_str_t name, int x, int y, int w, int h, ulong flags, WindowBitmap icon = null, OSWindow…
How to Increase/Decrease mouse pointer moving speed on a WPF application surface?
Hi there, I have a simple WPF application where I need to control the mouse pointer speed. Suppose I run the application and as soon as my mouse pointer enter the application area, the mouse pointer speed should be increase and I want some more…
How to get specific image coordinates from within bitmap
hi Is there a special (Library/Class) for such an achievement? which can find and return the coordinates by giving a symbol of a specific image from within the larger image
How can I be sure my Windows desktop application is signed with a timestamp?
We use DigiCert to create certificates for our Windows desktop apps. The certificate expires in June, and I want to make sure this won't impact the users on the existing versions they use, and the digital signature on the file will remain valid even…
Identify display orientation (flipped or not) in Win32 app
Hello, In Win32 app, I want to capture event when display orientation is changed. below is the sample code snippet to get an idea: LRESULT CALLBACK WindowProc(HWND hWnd, UINT messageCode, WPARAM wParam, LPARAM lParam) { switch (messageCode) { …
EvtSubscribe has strange behavior when using query criteria with EventRecordID.
When using EvtSubscribe from winevt.h referencing the example code from here with query string including EventRecord ID(e.g. "Event/System[EventRecordID>10000]", it looked like it is working as expected. However, when getting future events,…
How to prevent audio to be sent to the default audio endpoint?
Hi, I've some audio that I would like to only be sent to a particular audio endpoint (in this case, a controller output). I basically use IMMDeviceEnumerator::EnumAudioEndpoints() to get the endpoint I want and send audio to the device buffer using…
NCryptCreatePersistedKey - Any property to set User Reauthentication before Access?
NCryptCreatePersistedKey has ability to set properties on the key. I have tested with UI settings for prompting for Allow/Deny. Also I have seen UI settings for PIN/Password. But I simply want the ability for a user to validate themselves like UAC before…
WinRT MIDI API returns invalid MIDI port names
The WinRT MIDI api in latest Windows 10 returns the name "MIDI" for some devices, which have a different name with the Win32 MIDI API. For example the RME HDSPe AIO has a port name "AIO Midi" in Win32 API but just "MIDI"…
Windows API's CreateFile with CFile gives invalid path error if used drives created with SUBST
A drive is created for a folder using SUBST command. We have a Windows application which reads contents of the and performs some operations. Application does not give any error when read the file path is from actual drive. But when try to read from drive…
Porting SetTransform function in DirectX 9 to DirectX 11 or 12
Iam porting an existing project with DirectX 9 to DirectX 11 or 12, I am trying to port the function SetTransform from DirectX 9, there is no reference found in DirectX 11 or 12, please kindly suggest where to find the above function and how to define…
CreateDCW is crashing for Printer on worker thread
Hi, I want to print something using printer. For that I need to get the HDC of the printer like below: HDC hdc = CreateDCW (NULL, L"Printer Name", NULL, NULL); This is crashing with below error: Exception thrown at 0x00007FFAE3B85B0C…
Obtaining old SDK's and DDK's for the 1990's
I'm reverse engineering some 1990's software that the source has been lost and it was built with MSVC 4.2 (or a variant). I'm looking for any SDK's of that era to help. At present I need the header files etc. associated with MSAA, IAccessible (and the…
Receiving WM_SETTINGCHANGE instead of WM_THEMECHANGED message on theme change Win32 app
I'm running Win32 app on Windows 11. I want to capture theme-change event, but I'm receiving WM_SETTINGCHANGE instead of WM_THEMECHANGED message when system theme is changed (from settings). Find below sample code snippet to get an idea how I'm…
Callback for monitoring the creating of files/folder and the changes in the files in Cloud Files API
In Cloud Files API, The platforms invokes the respective callback function for the callback types. there is a callback type for everything reading, moving, deleting, renaming, list fetching but i am not able to find the callbacks for monitoring the…
NVMe Sanitize call returns unexpected error 0x13D
Hi, I'm trying to send NVME Sanitize/BlockErase command to NVMe disk which supports that. This shall be available on regular Win11 OS and I'm running 10.0.22000.1098 (10.0.22000.1042 StorNvm driver). I'm receiving absurd last error after…
Audio from WASAPI Capture client is choppy with Express scribe transcription application
I'm working on an application that records audio from the device using the WASAPI capture client.This application records audio and stores raw data in PCM format. My application accurately records every audio that I play in the media player or from any…
Calling Windows WebAuthn API in Custom Credential Providers
I've made a simple console application that calls Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() which will display CredentialUIBroker.exe to authenticate with an external FIDO2 security key. I'm trying to integrate that application with my…
WebauthN c++ Native Windows API in credential provider
Hi team, I've made a simple console application that calls Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() which will display CredentialUIBroker.exe to authenticate with an external FIDO2 security key and platform Windows authenticator…