2,592 questions with Windows API - Win32 tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

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.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,333 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,693 questions
asked 2024-08-29T02:57:34.16+00:00
mc 4,436 Reputation points
accepted 2024-08-29T07:34:41.5066667+00:00
mc 4,436 Reputation points
1 answer One of the answers was accepted by the question author.

how to set image of Picture Control?

I use direct2d create ID2D1Bitmap how to set this bitmap as Picture Controls's Source?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-28T12:16:04.8466667+00:00
mc 4,436 Reputation points
commented 2024-08-29T06:48:49.8166667+00:00
Castorix31 84,546 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-28T07:14:51.08+00:00
James Fang 20 Reputation points
commented 2024-08-29T06:29:28.68+00:00
James Fang 20 Reputation points
2 answers One of the answers was accepted by the question author.

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?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-27T08:42:27.22+00:00
mc 4,436 Reputation points
accepted 2024-08-29T00:13:52.3633333+00:00
mc 4,436 Reputation points
1 answer One of the answers was accepted by the question author.

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?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-27T15:32:22.1433333+00:00
mc 4,436 Reputation points
accepted 2024-08-28T12:17:35.7266667+00:00
mc 4,436 Reputation points
1 answer One of the answers was accepted by the question author.

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)…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-25T15:59:26.7+00:00
mc 4,436 Reputation points
commented 2024-08-28T09:13:39.63+00:00
mc 4,436 Reputation points
1 answer

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?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-20T15:52:43.36+00:00
mc 4,436 Reputation points
commented 2024-08-28T09:12:16.5733333+00:00
mc 4,436 Reputation points
0 answers

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,693 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-08-28T06:21:33.9266667+00:00
Ajay Adithya Udayakumar 15 Reputation points
commented 2024-08-28T07:16:12.13+00:00
Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-27T15:34:32.8866667+00:00
mc 4,436 Reputation points
commented 2024-08-27T23:54:41.5466667+00:00
mc 4,436 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,693 questions
asked 2024-08-19T01:07:55.5766667+00:00
mc 4,436 Reputation points
accepted 2024-08-27T23:53:38.93+00:00
mc 4,436 Reputation points
0 answers

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?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-23T09:14:47.5566667+00:00
Jarvis Xie 0 Reputation points
commented 2024-08-27T09:12:50.6966667+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
0 answers

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-07T07:42:56.03+00:00
Feng Qui 0 Reputation points
commented 2024-08-27T09:10:36.4433333+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
1 answer

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

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-06T14:50:18.38+00:00
Alain Nyeck 0 Reputation points
commented 2024-08-27T09:10:14.39+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
1 answer

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-21T15:13:53.12+00:00
Romain R 10 Reputation points
commented 2024-08-27T01:25:47.15+00:00
Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
1 answer

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2022-05-05T11:56:19.623+00:00
Michael Chourdakis 66 Reputation points
commented 2024-08-26T22:17:49.5666667+00:00
RE:Vision Effects 0 Reputation points
1 answer

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,693 questions
asked 2024-08-02T17:24:18.4833333+00:00
Robinson 141 Reputation points
commented 2024-08-26T01:21:56.0633333+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
0 answers

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…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,500 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-21T08:47:00.64+00:00
Daniel Bruno 0 Reputation points
commented 2024-08-22T02:04:18.3633333+00:00
Jeanine Zhang-MSFT 9,666 Reputation points Microsoft Vendor
1 answer

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.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,500 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,693 questions
asked 2024-08-07T18:59:03.72+00:00
Nick Pendragon 0 Reputation points
commented 2024-08-21T07:30:55.9266667+00:00
Tong Xu - MSFT 2,456 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-04T13:59:36.44+00:00
Ashish Kumar Swarnkar 20 Reputation points
accepted 2024-08-21T05:49:05.06+00:00
Ashish Kumar Swarnkar 20 Reputation points
1 answer

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?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,884 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
asked 2024-08-18T00:09:10.34+00:00
mc 4,436 Reputation points
commented 2024-08-19T09:18:43.6233333+00:00
Darran Rowe 916 Reputation points