Documentation clarification for MF_MT_AUDIO_AVG_BYTES_PER_SECOND for AAC encoder
The documentation here: https://learn.microsoft.com/en-us/windows/win32/medfound/aac-encoder States that for AAC encoding the valid values for **MF_MT_AUDIO_AVG_BYTES_PER_SECOND **are 12000, 16000, 20000, 24000. It then says that * 6 those values should…
Why GetBestInterfaceEx doesn't consider routes added via command line?
Consider the case where there are two network interfaces connected to the system (Ethernet and WiFi). Both will add 0.0.0.0/0 route in the routing table but, one of the interface will have a lower metric (say Ethernet gets the lower metric).…
Not able to create new object of DesktopWindowXamlSource after closing one
Hi, I'm working on Win32 application with Xaml Island. I'm facing the issue with DesktopWindowXamlSource. If I create two objects of DesktopWindowXamlSource, it's working as expected. However, If I create one object and close it using Close() method.…
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…
Direct2D drawing quality is inconsistent
This is the result drawn in the window(HwndRenderTarget) This is the result of drawing in WicBitmapRenderTarget
How do i get information about language settings, codepageinfo from WINAPI?
I'm trying to get information about the Windows language settings. In Windows 11, how can I get information about the language settings on Windows and what information do I need to get? I've found "winnls.h", and am referencing it but i have a…
Finding window element using MSAA
I'm trying to detect the "Previous" and "Next" buttons of the Spofity MiniPlayer window using MSAA, however, sometimes these buttons don't get detected, I don't understand why, it's like luck, I need to reopen the window uncountable…
When will `CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE` be invoked
When the user clicks Free up space in the Explorer menu, CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE and CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE_COMPLETION are not invoked. In the Cloud Mirror Sample, it uses ReadDirectoryChangesW and checks FILE_ATTRIBUTE_UNPINNED flag…
When will `CF_CALLBACK_TYPE_NOTIFY_RENAME_COMPLETION` be invoked
I am implemented CF_CALLBACK_TYPE_NOTIFY_RENAME and response successful status but CF_CALLBACK_TYPE_NOTIFY_RENAME_COMPLETION is not invoked. Is this expected or is something going wrong?
Open any file
Which API to use? You can call the system to open the specified file. I tried to use the call browser to open the full path (with file://) but some files open in a non-standard way (e.g., MP3 files won't play in win11).
How to Utilize SetColor(Windows::UI::Colors::Red) from a Non-UWP and Non-C++/WinRT DLL File
Hi, I have developed a C++ DLL without utilizing UWP or C++/WinRT. Within this DLL, I am employing Windows::Devices::Lights::LampArray^ lamp to retrieve information about the lamp, such as lamp->IsConnected, lamp->LampCount, and…
WSUSSCN2.cab file for Windows 11
I have been using a the wsusscn2.cab file and WUA in a script for years to determine the latest non-superseded applicable UpdatesIDs so that I can download them and bring them to my offline networks. Now that we are moving to Windows 11 it seems to me…
Can i use user32.dll in Windows Service ?
I need to automate mouse movement, within certain time period, for that i have wrote a Windows service with using user32.dll to automate mouse movement, it works in debug mode, but when i run it as service it doesnt seems to work. Is there any limitation…
Swift开发,文字合成语音SDK,在文字合成语音的时候,调用speakText方法时一直在用听筒播放,请问怎么能够使用扬声器播放。
Swift开发,文字合成语音SDK,在文字合成语音的时候,调用speakText方法时一直在用听筒播放,请问怎么能够使用扬声器播放。
How to programatically get NPU utilization using C/C++/C#
如果一台PC有NPU,那么在Windows 11任务管理器中,“性能”页面就会显示NPU的信息(包括使用率),一般来说,这个页面显示的信息从“性能计数器(PDH)”中获取,但是我并没有找到对应的计数器。有谁知道这个NPU使用率从哪儿获取吗? If a PC has an NPU, then in the Windows 11 Task Manager, the "Performance" page will display the information of the NPU…
BackupWrite sets lpContext to 0xFFFF.... when called with nNumberOfBytesToWrite=0 in versions after 2022
Seems like behavior of BackupWrite (https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-backupwrite) changed after Server 2022. In versions windows 10.0.20348.2461 and before, BackupWrite when called with nNumberOfBytesToWrite=0 does…
NotifyIpInterfaceChange function (netioapi.h) does not notify on manual DNS changes
I work on the c-ares open source asynchronous DNS library (https://c-ares.org) and we have recently added automatic configuration reloading when we detect a network configuration change has occurred. We get notifications properly when network…
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…
Why do I get this error when I run my project as a .DLL but not as a .EXE
I've got a .dll project in which I'm utilizing Direct 2D to draw on a window. For some reason, one line is continually giving me errors when I attempt to run it: // Create a Direct2D factory. hr = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED,…
Why is my panning in Direct 2D drifting at the edge of the window?
I'm going through a windows tutorial for Direct 2D drawing a small picture on a render target and I decided to try to add pan and zoom capabilities. All is working mostly fine but I'm having an issue with the pan. My is supposed to move in sync with…