Disabling a physically connected devices which are involved in an IO operation
Problem statement: I'm trying to disable a device using the setup apis, but sometimes I'm experiencing an error due to it is involved in IO operations. Im looking for a way to make a device behave like it is removed physically or in some way to abruptly…
Win11 22H2 (10.0.22621) can't support TB_BUTTONCOUNT message of System Toolbar
TB_BUTTONCOUNT message can't get system tray icon's count any more after Win11 22H2 (10.0.22621). https://learn.microsoft.com/en-us/windows/win32/controls/tb-buttoncount The following code can get system tray icon's information in the Win10 system, and…
Why does my transparent-background window turn into black screen after window ghosting?
I have a pop-up window that acts as a watermark on my application over a parent window. It has a transparent background (WS_EX_TRANSPARENT), but when the application becomes non-responsive, Windows adds a ghost window with a black background. I tried…
How to show another window on FSE(FullScreen Exclusive)
私たちは FullScreen Exclusive (FSE) な画面を持つアプリケーションを開発中です。 FSE は SetFullscreenState(TRUE, nullptr) を呼び出すよう実装しています。 FSE上でCreateWindowEx() して、別のウィンドウを表示したいのですが、それは可能でしょうか? …
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…
How to communicate with the SIM card in the external SIM card slot of the surface pro9 device?
I want to use the surface pro9 device to access the SIM card in the external SIM card slot. After inserting the card, the device can log in to the 5G network. In my application, I can list Microsoft UICC ISO card readers. Resetting can return the correct…
How to add custom parameter and its corresponding value in the HTTP header using the Windows-win32-webservices.h library
I have implemented a SOAP web service client in C++ using MS Visual Studio 2019 and library “WebServices.h”, in order to consume a SOAP web service. SOAP webservice that I am consuming requires a custom parameter and its corresponding value in the HTTP…
LoopbackCapture (`ActivateAudioInterfaceAsync` with `VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK` ), m_AudioClient->GetMixFormat failed with E_NOTIMPL
Hi, I use the applicationloopbackaudio-sample to record system audio, it works fine. However, the capture format is hard coded: // The app can also call m_AudioClient->GetMixFormat instead to get the capture format. // 16 - bit PCM format. …
How to use IAudioEndpoint and connect it to Audio Engine?
I want to create a new audio endpoint in user mode. So the audio player can work normally without a physical sound card. I find the API https://learn.microsoft.com/en-us/windows/win32/termserv/terminal-services-audioendpoint-api-reference. As the doc…
Is it possible to get PID from Media Sessions?
As title says, is it possible to get PID or some other unique identifier from the Media Sessions the API provides? I'm afraid of issues with multiple instances of my program running, and some way to distinguish them would be very…
How can I launch my application automatically on system reboot?
Is there an API or method that I can use to make sure my application launches automatically when the system restarts? I would appreciate any help or guidance on this matter.
I am working in SSL using webservice.h. I want to modify the HTTP header information in the request by adding Keyid = "value"
I am working on SSL (using webservice.h). Please find below the request. In the highlighted headers below , I want to add Keyid = "Value". I am trying to do this but not able to get any clue. I have tried using WsAddCustomHeader but this is…
Connect to a paired Bluetooth device from C#.
It is a duplicate of my question on StackOverflow. There is a "Connect" and "Disconnect" buttons in Windows Bluetooth settings. I want to create a console application which would make Windows connect and disconnect from…
Getting VSS Error ID 8200 while taking VSS Snapshot backup. API IVssWriterComponentsExt.GetWriterInfo is failed with error VSS_E_INVALID_XML_DOCUMENT
We are developing an application to backup our filesystem files via VSS. We are getting an issue while gathering writer component info which is blocking us to move ahead with building the tool. Can someone please help? Detailed logs…
InterlockedCompareExchange128 is not found on newer sdk
I'm running into a problem using windows 11 sdk (10.0.22621.0) through Microsoft Visual Studio. However I'm running into a problem where it cannot find "InterlockedCompareExchange128". The specific error message looks like: error C3861:…
How to use C++/WinRt API like as part of DLL without user interface(UI)
Hi, I am attempting to utilize the C++/WinRT code provided in the sample of LampArray, cppwinrt to create a DLL. However due to the tight coupling of this sample with the UI, I am not able to use below API independently within my DLL code, without…
how to get bus reported device description for VSP com port
Hello, I am using C# to detect usb vsp com port for my ARM controller via usb port. My program has been working properly, but I can't get the descriptor on ARM controller because windows use universal serial device driver. I found item "bus reported…
How to change lockscreen wallpaper by using Windows SDK (C++) or modifying registry?
Hi all. My Windows version is Windows 10 22H2 19045.2846, and I'd like to change my lockscreen wallpaper by using Windows SDK (or dll function), but I can't find any function for it. I want to get a function, which is equal to…
Phone Link Api
Hi, i have question Can I get the API for audio access of the call from the mobile to PC (same as phone link app provides)? Is that API available for third party applications??
Want to pass H264 data from IMFSample to cloud
Hi, (Media Foundation Class based) I am receiving H264/H265 stream from camera asynchronously through "OnReadSample". I would like to pass H264/H265 data to a cloud, not IMFSample type. Please suggest and show me a link to working…