Appropreate message to initiate window move with the mouse button up
Unfortunately I was asking the wrong way. I know how to move the form by setting its Location property. I have a working solution without p/invoke on github although quite convoluted for my taste. My question is "can I avoid this convolution by…
How to cope with Microsoft's design flaw of the MFT_MESSAGE_NOTIFY_END_OF_STREAM message, when using the standard media session pipeline with multiple input MFTs ?
Hello! I dont know if this is the right place to ask the following question. But since the MSDN was shutdown by MIcrosoft a few years ago this seems to be the only place. And i will not ask it on Stackoverflow, as i would propably be the best candidate…
Accessing GPS Sensor on Surface Go LTE (model 1825)
I have a Surface Go LTE (model 1825), running Windows 10 Pro, Version 22H2, Build 19045.4291. According to the specifications it has standalone GPS/GNSS capability. In the privacy settings, access to location services has been enabled. In the device…
Create a traditional Windows Desktop application (C++)
Hello ! "I have Visual Studio 2022 and have followed the instructions for creating a traditional Windows Desktop application (C++) available on the page…
SetWindowDisplayAffinity bad usecase
Hey, We have a classroom of exam computers that are monitored by the class admin through a remote feed that uses the Windows API to take screenshots at specified intervals. Some students have found that if they execute an app with…
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…
InternetSetOption not work on windows 10 2004
static BOOL SetSystemProxyPacUrl( wchar_t* proxy_full_addr) { INTERNET_PER_CONN_OPTION_LISTW list; BOOL bReturn; DWORD dwBufSize = sizeof(list); // Fill out list struct. list.dwSize = sizeof(list); // Set three options. …
Improving Performance by Switching Automatic Windows Services to “Manual”
I use Windows 10 (64-bit) (v10.0.19045.4170). To improve performance, are there any automatic Windows Services to be switched to “Manual?”
How do I download "Windows Media Device Manager 11 SDK" ?
Hi, I'm developing a device management application. I want to download "Windows Media Device Manager 11 SDK". https://learn.microsoft.com/en-us/windows/win32/wmdm/windows-media-device-manager-11-sdk But download link is broken. How do I…
Would calling RIOReceive() on a closed socket potentially cause a crash?
Hello, I would like to inquire about a crash that occurred when calling the RIOReceive() function. Please understand that the sentences may be strange because I used a translator. What happens is that thread A performs closesocket(sock) on the previously…
Windows cursor size
How do i get correct size value of mouse pointer? I have try: SystemParametersInfo() and cursor bitmap size info. They both return default values. Starting from win3.x Now the Win10 has this change mouse cursor size feature. That make life more easy.…
Porting DirectX 9 to latest version
Iam porting an existing project with DirectX 9, Is DirectX 11 or 12 should be considered for this subject Kindly advice.
"Unresolved external "int __cdecl invoke_main(void)" after VS2017 15.6.1 update" -- Part 2
I am porting a number of mature Win32 apps developed using VS 2015 under Windows 7 Professional to be built using VS 2019 under Windows 10 . Some edits to the original source and heading files are necessary to accommodate VS 2019 idiosyncrasies. I have…
C++ RealTimeStylus is dead and doesn't handle any touch messages
After some testing, I found that the RTS touch library on win7sp1 systems has a probability of triggering an error: RealTimeStylus does not trigger, i.e. it does not trigger the touch callback class even if there is a touch point that has been pressed on…
Why PackageManager.FindPackagesForUser method not fetching all the store app details
I'm attempting to retrieve details of installed Store apps on the machine using the PackageManager class in C++/WinRT. However, I'm encountering an issue where I only receive a partial result. For example, if there are 20 Store apps installed, only 10…
Getting logs for WinHTTP system error.
Hi, All! Recently, during development of an application, I've started facing troublesome issue: calls to WinHTTP subsystem (specifically, WinHttpReadData/WinHttpQueryDataAvailable APIs) present me with 12004 ERROR_WINHTTP_INTERNAL_ERROR outcome. Doesn't…
How to cancel the "print preview" option in the printer preferences by coding?
I want to cancel the "print preview" option in the printer preferences by coding, maybe can use c++ windows api or C#. Then how to do it ? Thank you !
Repaint issue with DWM, WM_NCCALSIZE WVR_VALIDRECTS, and Scroll Bars
The following program is based on code from Raymond Chen's The Old New Thing blog post from September 15th, 2003 (https://devblogs.microsoft.com/oldnewthing/20030915-00/?p=42493). I added a menu and scroll bars to test/verify that non-client parts of the…
How to Enable/Disable audio devices
Hi, I want to enable/disable audio devices listed in sound control panel (mmsys.cpl) but either through programmatically or through any power shell commands/scripts or windows internal utilities(pnputil, devcon). I tried using WMI APIs, Core Audio APIs,…
How to remove thin black border while printing bitmap in Win32 app
Hello, I'm working on C++/WinRT application, and trying to print bitmap using printer. But I'm getting thin black border on the printed page. I'm doing similar to below code snippet. // Printer HDC HDC hdc_printer = CreateDCW (NULL, L"My…