Content
CaptureEngine Error 0x80070005 (access is denied)
Hi all, I'm trying the CaptureEngine example from the classic examples but I got the error : MF_CAPTURE_ENGINE_EVENT: {219992BC-CF92-4531-A1AE-96E1E886C8F1} (hr = 0x80070005) Ausnahme ausgelöst bei 0x76B1CA42 (KernelBase.dll) in…


How to make cursor pointer hidden?
Hi, Is there any way I can access this feature? I want to make visible or hidden (indicator) manually in certain time period. what I can find to this is this post but using the registry doesn't seem to have an immediate effect. Thanks you.


Windows Portable Devices can't re-create directory after deletion
Hi, I am using the documentation provided here: [https://learn.microsoft.com/en-us/windows/win32/wpd_sdk/wpd-application-programming-interface to create an interface to portable devices (Android device and memory sticks). I have implemented the provided…


SetWindowPos scaling behaviour with WS_EX_LAYERED windows
I've written an application on Windows 10 19042.964 which shows four transparent windows (i.e. with WS_EX_LAYERED set) in a square configuration. These windows move back and forth between two external displays with different DPI settings. The primary…


Taskbar Auto hide is enabled
Automatically hide the open state, the mouse moves up, will pop up the taskbar, how to make it always pop up state? (and how to remain hidden),


Timestamp from the llTimestamp is not same as PTS from hardware
Hi, I am using Microsoft Media foundation to capture H264 data in a asynchronous mode. The llTimestamp value coming through SourceReaderCB::OnReadSample() is not showing the PTS time sent from the hardware. Please let me know how do I get PTS? Nor the…


Win Device Geolocation
Hi there, I was reading on API guide on Windows.Devices.Geolocation https://learn.microsoft.com/en-us/uwp/api/Windows.Devices.Geolocation?view=winrt-22621. It mentioned that device will estimate a position from beacons like Wi-Fi access points…
Media Foundation Wrong Size for Video
CComPtr<IMFSourceReader> r; CComPtr<IMFMediaType> NativeMT; MFCreateSourceReaderFromURL(L"file.mp4" 0, &r); r->GetCurrentMediaType((DWORD)MF_SOURCE_READER_FIRST_VIDEO_STREAM, &NativeMT); UINT wi = 0,he = 0; …


Whether full-screen message events can be detected
Can I register a message? Let me know when something else goes full screen. Tells the taskbar to restart, as with RegisterWindowMessageW(L"TaskbarCreated")


Credential Provider not working for Windows 2012 R1 Standard Server
Hey,one issue i'm seeing with windows 2012 r1 standard server is that the ICredentialProvider::GetFieldDescriptorAt method isn't getting called at logon which is causing a blank logon screen with fields not getting populated. All other methods under…


How can I enable Microsoft spatial audio with code?
Hi I'm reasearching Microsoft spatial audio (Windows, XBox series X). When I search for "How to enable Microsoft spatial sound", I always get methods with UI. https://learn.microsoft.com/en-us/windows/win32/coreaudio/spatial-sound Can I do…


How to detect Windows Application Dark mode
What is the way to detect windows application dark mode setting (If it is dark or light), in a C# WPF application. Settings > Personalization > Colors > “Choose your default app mode” Screenshot from Windows 10 operating system. I am aware of…


Self closing Modeless dialog open from Modal Dialog switches Active Window in Windows.
I have a Multiple document application. From a menu / toolbar I open a Modal Dialog. From this Modal Dialog , I open a Self Closing Modeless dialog. Self Closing Modeless dialog : When the dialog is made inactive : handle WA_INACTIVE message : then I…


SetWindowDisplayAffinity on windows 11
Hiding windows from screen capture in windows 10 is a breeze SetWindowDisplayAffinity() with WDA_EXCLUDEFROMCAPTURE and WDA_MONITOR doesn't work on firefox and chrome, but does work on notepad for example (as far as I tested) What changed in windows…


Win32 remove Titlebar but keep Decorations (Border, Shadow, Rounded Corners)
I'm trying to create a Windows Application via the Windows Api (Win32). I want to remove the Windows Titlebar, but keep other Decorations (Border, Shadow, Rounded Corners). I have tried quite a few combinations of window styles, but cant get it to work.…


Netusergetinfo API works only if the user has Admin or group access. Is there any other Microsoft API which works without this privileges?
In general, the user must have admin access or group access for using Windows Active Directory. From customer log, we confirmed that they do not have such access. Since the user do not have the privileges, it fails in the NetUSerGetInfo API call and…


CFAPI documentation for placeholder compatibility mode
Hi I have a question regarding the PEB flag PlaceholderCompatibilityMode which is set by cldflt for each process on start. And if the process image is placed in the Windows folder then mode is auto-set to PHCM_EXPOSE_PLACEHOLDERS otherwise…


How to create a shortcut for Store app on desktop?
I know that I can create a shortcut for a Store app with 'explorer.exe' and 'shell:AppsFolder<AppUserModelId>' as argument, but then I have the explorer icon. If I set the icon to the AppInfo.Package.Logo.AbsolutPath, I have an empty white icon in…
How to set text cursor at coordinate?
Hi, Let's say I have text strings as shown. how do I move cursor to the specify characters? The boxes can be controls in an application example mfc, chrome,... I tried using SetConsoleCursorPosition but the result always returns 0, is that the right…


chm file shows script error , when opening through function call HtmlHelpW
I am using windows 11 machine and I have an ".chm" file which opens perfectly fine when opened in explorer and all the links inside .chm file are also working fine , but when i am trying to open the same file using HtmlHelpW in MFC c++…

