Content
MS BMP specification issue
Hello. I have some question about BMP specification, been talking to my very good friend GPT and he couldn't help with it. Question is What is the purpose of this 0 , 0 after color arrays (2x2 pixels) unsigned char tablica[] =…
ES_DISPLAY_REQUIRED
Hello, I am building a Windows Forms application and am implementing the thread execution state ES_DISPLAY_REQUIRED (0x00000002) to prevent screen timeout while the application is active.…
GattCharacteristic.WriteValueAsync Method is directly throwing the exception when called after the BLE device is disconnected.
I am trying to build the console application to interact with BLE device and I am referring to windows BLE sample UWP program. GattCharacteristic.WriteValueAsync Method works perfectly fine when BLE device is connected. But directly goes to…
WASAPI Capture shared event driven mode not working in Windows Vista to Windows Server 2016.
I am building an application to capture audio from the device using WASAPI Where all the API used support Windows vista and above devices. Initially, I captured audio from the device with WASAPI Capture as shared timer driven mode where there will be a…
In the windows 22H2 version, which windows api is used to modify the windows printer configuration
I want to modify the Borderless Print switch configuration of windows printer by programming. As shown below, windows Settings->Bluetooth and other devices->Print preferences (inside print properties) -> advanced ->Borderless Print For…

Delay issue with lAudioClient::Initialize method (audioclient. h)
Hello, We have recently started facing a delay issue with lAudioClient::Initialize method (audioclient. h) at customer end. As per the logs it is taking 5-7 seconds to return back from the function call. In good cases on other machines, it takes 200 to…

Expression: (_osfile(fh) & FOPEN)
Microsoft Visual C++ Runtime Library Debug Assertion Failed! Program: E:\code\dyzbuild\bin\Debug\xxx.exe File: minkernel\crts\ucrt\src\appcrt\lowio\close.cpp Line: 56 Expression: (_osfile(fh) & FOPEN) For information on how your program can cause…

Memory leak inside ntdll.dll internal function RtlpDosPathNameToRelativeNtPathName()
We've discovered a memory leak which we've traced to the ntdll.dll internal function RtlpDosPathNameToRelativeNtPathName(). When CopyFile is called, if the source file name + path is below MAX_PATH in length, the full source file path leaks within…

I dont't know why ImmSetOpenStatus() not work in the lastest IME on Windows 11?
I use ImmSetOpenStatus() to open/close Input Method Editor (IME). ImmSetOpenStatus() work correctly in previous version of IME in Windows 10. However, ImmSetOpenStatus() does not work in the lastest IME on Windows 11. May you tell the reason? This…
Windows Core Audio API : How can I access multiple Volume levels of a USB Device
For an audio device Control Software we need to access the different Windows volume levels of our device (Speaker level and Microphone level). We are using the Windows Core Audio API and right now we are able to access the Speaker level using a…
BCryptEncrypt is failing when AES-128-GCM algorithm called with 16 byte IV
I am trying to use Microsoft Bcrypt libraries to encrypt using AES 128 bit GCM. The BCryptEncrypt function works well as long as IV size is <= 12 bytes. When I use 16 byte IV then BCryptEncrypt fails with INVALID PARAMETER(0xC000000D) Error. Are there…
Looking for WinHttp API related support.
Hi We have developed an application using Windows APIs. We are using WinHttp APIs in particular. The application has been installed on millions of users on Windows. However, we see for about 300-400 users, the application is not working as intended. On…
RPC Extended Error information: updated detection location list
Hi, I was wondering if it was possible to have https://learn.microsoft.com/en-us/windows/win32/rpc/extended-error-information-detection-locations updated for recent versions of Windows (the page only contains detection locations for Windows XP), or if…
For what parameter changes, NotifyIpInterfaceChange API invokes the callback function. What are the steps to get the notification
I am able to receive notifications on gateway interface operational status flap using the NotifyIpInterfaceChange API. Would like to know when notifications are received for parameter changes like link cost /metric/mtu etc.. What are the commands that…
how to control enable audio enhancements with code
Hi all, is there a way to disable the microphone audio enhancements from C++ code? When the audio enhancement function is enabled, the microphone data collected by our software will be affected, resulting in problems such as echo can not be…
IOCTL_KEYBOARD_QUERY_INDICATORS always returns 0 for led lights even though IOCTL_KEYBOARD_SET_INDICATORS works
I have a win32 program that I am trying to give multi-keyboard support to multiple users. i.e. multiple keyboard plugged into the computer and each user has a keyboard that they can use to type into my program and indepently interact with my program. And…
c++ open animation controls and elements in the window
I originally wanted to use code to enable "animation controls and elements within the window" in the visual effects. The results I found on the Internet are all about using the registry to modify and then restarting the computer, but this is…
Is it possible to have editable embeded files(excel, word) on a website?
I need to be able to programmatically take a file from one drive and change it to be embedded into an iFrame. I believe that's doable but I need it to be editable inside of that iFrame but not only from me but for multiple users and they can see any…
How to stop search process in Automation?
Hi, Is there a way to safely terminate the IUIAutomation search process? Here is the code I am using: element->GetCurrentPatternAs(UIA_TextPatternId, IID_PPV_ARGS(&telement)); I created a keyboard_hook that stops my code. However, if I press the…


Disconnect RDP
There are methods to shut down Windows. If I am in an RDP session, how can I disconnect?