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,…
Why do the Text Metrics change in Print Preview?
I am working on an old C++ WIN32 application using mfc in VS2022. The application generates a complex report that can be displayed or printed. In order to calculate where the page breaks will be in the printed version, the Draw() function is called from…
Doubts about the window of "program manager"
LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch(uMsg) { case WM_DESTROY: SetParent(hProgman, NULL); UpdateWindow(hProgman); UpdateWindow(hDefView); …
C++ screenshot using DXGI DuplicateOutput of screen is missing Game Bar drawn areas
It seems that the DXGI DuplicateOutput API fails to capture the Windows Game Bar drawn area. Similarly, none of the Game Bar widgets are included in captured screenshots. Why is this happening? Isn't DuplicateOutput supposed to cover all visible area on…
Windows 10 declare COM port "access denied"
Two existing EXEs, one written in C++ and Windows SDK, one written in C# and .NET 4.5.1, suddenly cannot open COM ports, "access denied". HyperTrm.exe has no problem opening the same ports that both EXE cannot open. Some recent update for…
MFTranscodeContainerType_AVI not creating index...
We're trying to move away from AVIFile, so that everything goes through the Windows Media Foundation apis. It looks like there is now a "MFTranscodeContainerType_AVI" container and I can add frames to it perfectly - writes out a big raw avi, as…
How can I know which window emits the Compositor tick event?
I have a program that can open multiple windows, and currently, I use DCompositionWaitForCompositorClock to achieve vertical sync refresh rate. However, how can I make multiple windows synchronize at different refresh rates on different monitors? For…
How download youtube videos by WinINet?
Hi I have code in Win32/ATL that can download files very well by Wininet api, but youtube url is not just simple file link! How can I download them like youtube downloaders? Thanks
AttachThreadInput in the callback of SetWindowsHookExA makes Microsoft Pinyin IME buggy when typing fast.
When I use AttachThreadInput in the callback of SetWindowsHookExA, and use Microsoft Pinyin IME in Chinese mode, and typing really fast, the IME turns buggy. Minimal reproduction code (in rust, minified from [rdev]): #[cfg(test)] mod tests { use…
Bluetooth LE - Programmatically determine if a peripheral has lost its side of the bond keys
A common scenario in Bluetooth LE is for one side of a bonded pair of devices to lose their side of previously exchanged bond keys. The Bluetooth LE spec states that the peripheral shall send a LL_REJECT_EXT_IND with error code 6, "PIN or Key…
RichEdit's text not visible when window first pops up.
#include <Windows.h> #include <Richedit.h> HWND hwnd; HWND hwnd_richedit_panel; HWND richEdit; WNDPROC oldStaticProc; HWND hwnd_green_panel; WNDPROC oldGreenProc; int WINAPI WinMain(HINSTANCE, HINSTANCE, PSTR, int); LRESULT CALLBACK…
How to draw a border and background color to the limits of a window?
#include <Windows.h> #include <Richedit.h> HWND hwnd; HWND panel; HWND richEdit; WNDPROC oldStaticProc; int WINAPI WinMain(HINSTANCE, HINSTANCE, PSTR, int); LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT msg, WPARAM wParam, LPARAM…