how to create bitmap and draw text on it?
I know I can create bitmap using ID2D1DeviceContext and then how to draw Text on it? with out bind render target. I have bind the render target to my window.
how to set image of Picture Control?
I use direct2d create ID2D1Bitmap how to set this bitmap as Picture Controls's Source?
How to retrieve User Locale of another user account through impersonation?
I am developing a Win32 (C++) application that has a thread to impersonate another user account to access their information. I need to retrieve the user locale for the impersonated account but I am not able to get the expected locale information unless…
Is the Dialog Resource is MFC in C++?
I creating Win32 Application and I find that there is Dialog Resource File Is it MFC? or just win32?
how to draw the button of dialog box?
I am using DialogBoxW(hInstance, MAKEINTRESOURCEW(IDD_ABOUTBOX), hwnd, WND_ABOUTUS); to open Dialog box. and how to change the UI of the Button in the dialog?
the h264 plays faster than it should be.
I am using IMFTransform to capture desktop to H264 file. but it plays very fast. why? then I use SinkWriter to write . I tried: NV12 to H264 succeeded write but still very fast. RGB to H264 (input mediaType is B8G8R8A8 output media Type is h264)…
how to use async IMFTransform?
how to use IMFTransform for async? I want to encode nv12 to h264. I have to use while and again and again . Is there is way to do nothing .and do not need to start thread. If I need to ProcessInput then it will call my asynccallback?
EvtSubscribe not returning signal when using pull subscription , what am i doing wrong?
I used the same code given in [Microsoft documentation] (https://learn.microsoft.com/en-us/windows/win32/wes/subscribing-to-events#pull-subscriptions) to collect logs in real-time by subscribing to the event source "Application" in the event…
how to get the value of the edit control?
I am using DialogBoxW(hInstance, MAKEINTRESOURCEW(IDD_MYRESOURCE1), hwnd, watermark_wnd); to create Dialog with edit control the ID of edit is IDC_EDIT1 I can get the length by SendDlgItemMessageW(hwnd,EM_GETLINELENGTH,0,0) but I can not the the value…
how to combine multi-IMFSample to one?
I have three IMFSamples and how to combine them to one? there will be three computers which run my program and they will push IMFSample to me. and I want to combine them to one. in to same screen.(same texture). split a texture into 3 and copy one to…
Startup UWP with file error 0x80270254
On latest Win11, When call IApplicationActivationManager interface method ActivateForFile to start uwp application with file argument, it always return 0x80270254 error code. Anyone know why?
When using Windows API (fileapi.h, ReadFile function) to load large files (about 2GB), the assuming time is unstable because of some mechanism of OS
////////////////// Use the following code to read the file and assign the variable “name” with your own file path /////////////////////////// #include <windows.h> #include <stdio.h> #include <strsafe.h> OVERLAPPED ol = { 0 }; int…
Behavior of the ldap_sslinit() function from wldap32.dll
When using ldap_sslinit(domain, 636, 1) to initiate an LDAP connection over SSL/TLS, on the first attempt, is the LDAP client initially connects to port 389 (the standard LDAP port) to perform a lookup or preliminary actions? Thank you
IDXGIOutputDuplication::AcquireNextFrame() gives black frames when accessing a session through RDP (Windows 11)
I'm trying to use IDXGIOutputDuplication API within an RDP session on a Windows 11 PC that has a NVIDIA GPU, but I get empty frames (filled with zeros). My code is working with a standard console session. The issue is similar to…
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…
Win32 TreeView drag item flickering
I have a basic Win32 tree control I've implemented drag/drop with. The TreeView has been set to double buffer to avoid any flicker. The drag item is drawn no problem as I drag around. However in order to get correct drawing of the underlying view as…
DirectX Tool Kit 12 crashes on Windows 10 Build 18363 (Version 1909)
Hi, I'm testing SimpleSampleWin32DX12 solution of directxtk-samples-main from https://github.com/walbourn/directxtk-samples. After downloading, I integrated DirectXTK12 by using Nuget. It works well on the latest version of Windows 10 Build 19045, but…
SystemParametersInfoA SPI_SETDESKWALLPAPER does not always work?
I don’t know if I’m posting this in the right place… When using (C++) SystemParametersInfoA SPI_SETDESKWALLPAPER, for some reason does not always work.
How to find which processes are using low-level keyboard hooks?
I was looking for a program that could list all those processes which are using low-level keyboard hooks. I was trying to find a way to detect any keyloggers in the user-space. Many queries online are saying that it is not possible to write a program to…
how to use CoreWindow in winforms?
I want to use Direct2D and the link of CreateSwapChainFromCoreWindow says I should Use CreateSwapChainFromCoreWindow and If I use CreateSwapChainForHwnd I can not publish to microsoft store. so Can I use CoreWindow in winform?