2,443 questions with Windows API - Win32 tags

Sort by: Updated
1 answer

Identify display orientation (flipped or not) in Win32 app

Hello, In Win32 app, I want to capture event when display orientation is changed. below is the sample code snippet to get an idea: LRESULT CALLBACK WindowProc(HWND hWnd, UINT messageCode, WPARAM wParam, LPARAM lParam) { switch (messageCode) { …

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,443 questions
asked 2024-05-21T11:57:06.57+00:00
Shyam Butani 70 Reputation points
edited a comment 2024-05-21T15:45:23.1833333+00:00
Castorix31 82,031 Reputation points
1 answer One of the answers was accepted by the question author.

Receiving WM_SETTINGCHANGE instead of WM_THEMECHANGED message on theme change Win32 app

I'm running Win32 app on Windows 11. I want to capture theme-change event, but I'm receiving WM_SETTINGCHANGE instead of WM_THEMECHANGED message when system theme is changed (from settings). Find below sample code snippet to get an idea how I'm…

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,443 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,383 questions
asked 2024-05-21T05:26:32.4733333+00:00
Shyam Butani 70 Reputation points
accepted 2024-05-21T10:48:05.5+00:00
Shyam Butani 70 Reputation points
1 answer

Callback for monitoring the creating of files/folder and the changes in the files in Cloud Files API

In Cloud Files API, The platforms invokes the respective callback function for the callback types. there is a callback type for everything reading, moving, deleting, renaming, list fetching but i am not able to find the callbacks for monitoring the…

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,443 questions
asked 2024-05-15T13:54:18.32+00:00
Vembu Test 0 Reputation points
edited an answer 2024-05-21T09:26:22.7533333+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to get specific image coordinates from within bitmap

hi Is there a special (Library/Class) for such an achievement? which can find and return the coordinates by giving a symbol of a specific image from within the larger image

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,852 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,443 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,603 questions
asked 2024-05-21T03:56:04.6666667+00:00
Mansour_Dalir 1,651 Reputation points
accepted 2024-05-21T08:47:37.27+00:00
Mansour_Dalir 1,651 Reputation points
5 answers

NVMe Sanitize call returns unexpected error 0x13D

Hi, I'm trying to send NVME Sanitize/BlockErase command to NVMe disk which supports that. This shall be available on regular Win11 OS and I'm running 10.0.22000.1098 (10.0.22000.1042 StorNvm driver). I'm receiving absurd last error after…

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,443 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,557 questions
Windows Hardware Performance
Windows Hardware Performance
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.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,553 questions
asked 2022-11-03T14:24:56.677+00:00
DawidW-5205 11 Reputation points
commented 2024-05-21T07:05:13.5+00:00
Winson.Loh 0 Reputation points
0 answers

Audio from WASAPI Capture client is choppy with Express scribe transcription application

I'm working on an application that records audio from the device using the WASAPI capture client.This application records audio and stores raw data in PCM format. My application accurately records every audio that I play in the media player or from any…

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.
4,833 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,443 questions
asked 2024-05-17T10:01:48.4733333+00:00
Preethi Ravi 60 Reputation points
commented 2024-05-21T05:34:43.4733333+00:00
Preethi Ravi 60 Reputation points
1 answer

How to Increase/Decrease mouse pointer moving speed on a WPF application surface?

Hi there, I have a simple WPF application where I need to control the mouse pointer speed. Suppose I run the application and as soon as my mouse pointer enter the application area, the mouse pointer speed should be increase and I want some more…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,686 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,443 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,364 questions
asked 2024-05-13T21:28:00.4833333+00:00
MERUN KUMAR MAITY 511 Reputation points
commented 2024-05-21T03:16:04.15+00:00
Hongrui Yu-MSFT 175 Reputation points Microsoft Vendor
1 answer

Calling Windows WebAuthn API in Custom Credential Providers

I've made a simple console application that calls Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() which will display CredentialUIBroker.exe to authenticate with an external FIDO2 security key. I'm trying to integrate that application with my…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,780 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,443 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,557 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,779 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,383 questions
asked 2023-07-04T08:00:36.2933333+00:00
Steven Chu 15 Reputation points
commented 2024-05-21T02:49:03.56+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
1 answer

WebauthN c++ Native Windows API in credential provider

Hi team, I've made a simple console application that calls Windows WebAuthn API's WebAuthNAuthenticatorGetAssertion() which will display CredentialUIBroker.exe to authenticate with an external FIDO2 security key and platform Windows authenticator…

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,443 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,557 questions
asked 2024-02-19T11:39:47.02+00:00
VIGNESH M 5 Reputation points
commented 2024-05-20T12:19:31.5666667+00:00
Harshit Patidar 0 Reputation points
2 answers

CreateDCW is crashing for Printer on worker thread

Hi, I want to print something using printer. For that I need to get the HDC of the printer like below: HDC hdc = CreateDCW (NULL, L"Printer Name", NULL, NULL); This is crashing with below error: Exception thrown at 0x00007FFAE3B85B0C…

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,443 questions
asked 2024-05-15T07:18:16.3466667+00:00
Shyam Butani 70 Reputation points
edited a comment 2024-05-20T12:08:25.5566667+00:00
RLWA32 40,941 Reputation points
1 answer One of the answers was accepted by the question author.

C++ How to get layered window content image?

My goal is to get an HDC of an image or image of the contents of a layered window in Windows 7 and above. I tried PrintWindow(hwndMag, hdcDest, PW_RENDERFULLCONTENT), but this requires Windows 8.1. Note that layered windows may contain transparency, or…

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.
4,833 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,443 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,557 questions
asked 2024-05-17T13:18:09.3866667+00:00
RL Chen 190 Reputation points
commented 2024-05-20T10:42:45.4533333+00:00
RL Chen 190 Reputation points
1 answer One of the answers was accepted by the question author.

How to programmatically display the Windows taskbar using C#

I would like to know what C# code/instructions are necessary to make the Windows taskbar appear so that I can use a specific item on it. Can someone provide a concise example or resource to help me accomplish this? Thank you.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,852 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,780 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,684 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,443 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,364 questions
asked 2024-05-16T13:35:04.7966667+00:00
Thad T 26 Reputation points
accepted 2024-05-19T23:47:12.7933333+00:00
Thad T 26 Reputation points
1 answer One of the answers was accepted by the question author.

How to get the handle of the mouse cursor icon with API (GetCursorInfo)

hi I need a function to put in the timer and check the status of the mouse cursor every 500 milliseconds. Private Declare Function GetCursorInfo Lib "user32" (ByRef pCI As cursorInfo) As Integer Public Structure POINTAPI Dim x…

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,443 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,603 questions
asked 2024-05-18T15:37:53.0233333+00:00
Mansour_Dalir 1,651 Reputation points
edited a comment 2024-05-19T08:56:37.3733333+00:00
KOZ6.0 5,050 Reputation points
2 answers

Why does my transparent-background window turn into black screen after window ghosting?

I have a pop-up window that acts as a watermark on my application over a parent window. It has a transparent background (WS_EX_TRANSPARENT), but when the application becomes non-responsive, Windows adds a ghost window with a black background. I tried…

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.
4,833 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,443 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,557 questions
asked 2024-05-10T14:33:43.0133333+00:00
Aditya Pingle 0 Reputation points
commented 2024-05-19T08:45:56.5266667+00:00
RLWA32 40,941 Reputation points
1 answer One of the answers was accepted by the question author.

How to create the Left/Right MouseDown And MouseUp click event of Global type(Anywhere from Windows with API)

hi .Require mouse events via API functions

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,443 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,603 questions
asked 2024-05-19T02:28:21.12+00:00
Mansour_Dalir 1,651 Reputation points
commented 2024-05-19T06:08:50.09+00:00
KOZ6.0 5,050 Reputation points
2 answers One of the answers was accepted by the question author.

How to show another window on FSE(FullScreen Exclusive)

私たちは FullScreen Exclusive (FSE) な画面を持つアプリケーションを開発中です。 FSE は SetFullscreenState(TRUE, nullptr) を呼び出すよう実装しています。 FSE上でCreateWindowEx() して、別のウィンドウを表示したいのですが、それは可能でしょうか? …

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.
4,833 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,443 questions
asked 2024-05-02T16:39:51.1233333+00:00
Saito, Makoto (SIE) 20 Reputation points
accepted 2024-05-17T18:14:42.07+00:00
Saito, Makoto (SIE) 20 Reputation points
2 answers One of the answers was accepted by the question author.

How to programmatically disable a playback in the sound control panel?

The original requirement was to switch the communication device in Skype for Business, but since there is no such api (please tell me if there is any way to do this), so I gave up. Then I found that by disable/enable the device, Skype for Business seems…

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,443 questions
asked 2020-09-23T11:59:32.183+00:00
Victor Chen 106 Reputation points
commented 2024-05-17T10:35:06.3166667+00:00
Castorix31 82,031 Reputation points
0 answers

Windows API's CreateFile with CFile gives invalid path error if used drives created with SUBST

A drive is created for a folder using SUBST command. We have a Windows application which reads contents of the and performs some operations. Application does not give any error when read the file path is from actual drive. But when try to read from drive…

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,443 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,557 questions
asked 2024-05-03T12:58:05.9266667+00:00
Dada Khalandhar Gooty 0 Reputation points
edited a comment 2024-05-17T06:32:03.84+00:00
Jeanine Zhang-MSFT 9,186 Reputation points Microsoft Vendor
1 answer

What is the Maximum size of a EventMessage or Event Data in Event Viewer. For Security channel and other channels System, Direcory Service.

What is the maximum size of a single event in Event viewer? Event message maximum length and a Event's size in kb? Does it vary for Security channel and System/ Directory Server channels?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,852 questions
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.
4,833 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,443 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,740 questions
asked 2024-05-15T10:27:43.9533333+00:00
Bakya ABL 21 Reputation points
commented 2024-05-16T07:19:47.2966667+00:00
Bakya ABL 21 Reputation points
1 answer

How to stop command line from spawning separately from the pseudo console?

As the title suggests, I am trying to create a pseudo console with a command line process inside of it. I've been following the microsoft guide on creating a pseudo console session step by step, except I ported the code to Rust. Unfortunately, I have…

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,443 questions
asked 2024-05-14T17:23:25.8266667+00:00
grease 0 Reputation points
answered 2024-05-15T15:49:50.7666667+00:00
grease 0 Reputation points