Where to find missing referenced items in 'How to Play Media Files with Media Foundation'
I am trying to cut and paste the code for CPlayer in the 'How to Play Media Files with Media Foundation' tutorial. I used code from the following browser search results: 'player.h - Win32 apps' & 'player.cpp - Win32 apps' . I cannot find the…
BitBlt is too slow
Is there an analogue of copying a rectangle from the screen that works faster? Or how do I optimize it? _ = BitBlt( h_dc, 0, 0, config.rect.size.x, config.rect.size.y, h_src, config.rect.pos.x, …
Exception: "Element Not Found" while calling StartDoc() in Visual Studio 2022 debugger
I am attempting to print from a Desktop application using the following APIs: StartDoc (...) StartPage (...) TextOut (...) When I run my application using Visual Studio 2022 Debugger, StartDoc() throws an exception as shown in the image below.…
What does the WTS_E_EXTRACTIONPENDING HRESULT returned by IThumbnailCache::GetThumbnail mean?
Attemting to call IThumbnailCache::GetThumbnail on an dehydrated placeholder (i.e. from OneDrive or other sync programs that utilize Cloud Filter) which its thumbnail doesn't exist in the Windows Thumbnail Cache results in…
Logging in to different domain using LogonUser API
Calling LogonUser before a Winforms application starts running. So if the credentials are correct the application starts and if they are wrong the application wont start. So this working fine with the user credentials for the domain my system belongs to.…
I would like to use the Windows Sensor API to acquire gyro sensor data so that the viewpoint of the camera can be moved.
I would like to use the Windows Sensor API to acquire gyro sensor data so that the viewpoint of the camera can be moved. I'm trying to do the above with Unity, is it possible? If possible, please tell me how to do it. Also, if there is another…
How the media bitrate information is obtained in file property
The following code to query the video encoding bitrate of a media file (mp4) yields a number that deviates significantly from the value obtained by viewing it with other tools like mediainfo/ffprobe: #include <windows.h> #include…
Journal Playback Hooks
Good morning, I have a question about the Journal Playback Hooks (https://learn.microsoft.com/en-us/windows/win32/winmsg/journalplaybackproc). On this page I find the quote: "are unsupported starting in Windows 11 and will be removed in a future…
WaitForInputIdle
Hi everyone, I'm working on a Windows C++ application where I need to wait for a multi-threaded process to finish processing its initial. I'm aware that WaitForInputIdle from winuser.h only waits for one thread in the target process to be idle, which…
WFP Define Filter Conditions
Can some on help me whit this. Well i try to Define Filter Conditions. Well, I'm not good to windows but i need to my goal is to access raw data from the network card.. IPv4 and IPv6 in socket IPv6 is restrict by windows so i can't work whit…
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 export Windows Server logs from Event Viewer GUI
I tried to export different logs from Windows Event Viewer however in many cases, I did get values (= they are codes for some columns values) from the XML presented vue instead of values represented in the Event Viewer GUI interface. so please could you…
IMFSourceReader::ReadSample hangs randomly on ARM64
IMFSourceReader::ReadSample hangs randomly on ARM64. This happens very infrequently, but can be easily reproduced with the code below (be patient and let it run for a while). On x64 it seems to work fine, so you really need to compile it for ARM64 and…
EnumAdapters often enumerates default adapter twice on multi-GPU PC
My PC has two graphic cards, RTX A4000 and RX6400. But EnumAdapters enumrates 3 graphic cards. A4000, RX6400 and A4000 example code: Microsoft::WRL::ComPtr<IDXGIAdapter1> adapter; for (UINT adapterIndex = 0; S_OK ==…
Extending Media Foundation Encoder to support 10-bit video encoding
The HEVC Media Foundation Encoder in Windows will only encode 8-bit video. My GFX NVidia card also supports 10-bit HDR and alpha-mode video encoding, so I decided to create my own IMFTransform to use the NVidia SDK. I 've registered my DLL using…
RIOReceive function doesn't work (RIO using IOCP notifications)
hello. I want to using RIO for Winsock and IOCP notifications. naively writes code, source link here . I regist RIORecevie here RIO_NOTIFICATION_COMPLETION type; ... type.Type = RIO_IOCP_COMPLETION; type.Iocp.IocpHandle = hIOCP; …
SSL communication to support CA Certificate(Public key certificate)
Hi for the SSL communication with the certificate for the below C/C++ code link how to support the CA certificate (public key certificate which is exported from the site info) …
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…
Intune 을 통해 exe 파일을 배포하였으나 0x87D30067 에러가 발생합니다.
intunewin 파일 타입으로 변경하여 배포를 하였으나 0x87D30067 에러가 발생하여 문의 드립니다. 제 생각에는 설치 명령, 제거 명령 쪽에서 오류가 발생한것 같은데요 우선 제거 명령을 어떻게 설치해야할지 몰라서 아무 값이나 입력했습니다.
HeapReAlloc behavior for different heaps
The behavior below is tested in Visual Studio 2022. Calling HeapReAlloc on a private heap without changing the block size results in a no-op (as one would expect) HANDLE heap = HeapCreate(0, 0, 65536); void *p = HeapAlloc(heap, 0,…