2,649 questions with Windows API - Win32 tags

Sort by: Updated
1 answer

How can I mark my structure as `com_class` in Rust?

Hello, I am implementing a COM object in DLL in Rust. Every single tutorial I found (including ChatGPT and Github Copilot) describes that I need to use #[com_class] macro with my CLSID over my…

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,649 questions
asked 2024-11-02T03:50:13.6333333+00:00
Piotr Kosek 0 Reputation points
answered 2024-11-02T04:23:27.4366667+00:00
Piotr Kosek 0 Reputation points
0 answers

How to handle touch device mapping in multi-monitor setups using Windows API?

When the Windows settings are adjusted to use only the external monitor, my application—designed for hardware diagnostics and reliant on the Windows API—still allows the touchscreen module to be activated and tested. This is problematic because 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,649 questions
asked 2024-10-30T17:17:27.23+00:00
Julio Silva20 5 Reputation points
commented 2024-11-01T21:58:19.1433333+00:00
Darran Rowe 1,026 Reputation points
0 answers

Add a local IPP printer queue programmatically or with Powershell when Windows protected print mode is enabled

After enabling Windows protected print mode I am no longer able to add a printer queue programmatically using the Win32 API nor using Powershell. Windows protected print mode requires me to use the built-in driver called Microsoft IPP Class Driver. 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,649 questions
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
688 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,577 questions
asked 2024-11-01T16:27:40.0233333+00:00
Jan 5 Reputation points
0 answers

Install a local IPP printer queue programmatically or with Powershell when Windows protected print mode is enabled

After enabling Windows protected print mode I am no longer able to add a printer queue programmatically using the Win32 API nor using Powershell. Windows protected print mode requires me to use the built-in driver called Microsoft IPP Class Driver. It…

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,649 questions
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
688 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,847 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,577 questions
asked 2024-11-01T16:21:16.49+00:00
Jan 5 Reputation points
2 answers One of the answers was accepted by the question author.

CoreWebView2.NavigateToString(String) method fails to load an HTML page

I am using an instance of WebView2 class to display some HTML content in a UI panel for a VS 2022 extension. I can retrieve the HTML content that I want to display in the WebView2 control as a string, and then I am trying to use…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,176 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,649 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,997 questions
asked 2024-10-31T17:08:20.23+00:00
AdiGeo 20 Reputation points
commented 2024-11-01T15:08:24.2166667+00:00
AdiGeo 20 Reputation points
0 answers

Issues with WFP engine in Windows 11 24H2 26100.2033 and later

Hi, If this question is not suited for this community, please point me to the correct one. I develop the app which uses WFP (Windows Filtering Platform) capabilities to block UDP traffic for certain applications. Particularly I add a set of network…

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,649 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,847 questions
asked 2024-10-31T17:16:02.3966667+00:00
Anton Ryzhov 0 Reputation points
edited the question 2024-10-31T17:16:39.0933333+00:00
Anton Ryzhov 0 Reputation points
1 answer

Win32 Console Input: How to differentiate between 0xE0 as a Start-Of-Sequence and 0xE0 as the 1st byte of a UTF-8 sequence/as a codepage character?

I use _getch() for reading input character by character, but there seems to be no way to tell whether the next character still belongs to the last read character or not. It seems that there is no way to tell if a 0xE0 is the 1st of two bytes in a…

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,649 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,755 questions
asked 2024-10-28T21:25:39.0133333+00:00
RobinLe 0 Reputation points
answered 2024-10-31T15:23:56.9033333+00:00
Darran Rowe 1,026 Reputation points
1 answer

How to get policy value after set?

Hi, Is there a way to check if the state has been assigned? I tried this but the return value of v=11 DWMNCRENDERINGPOLICY v; auto k = DwmGetWindowAttribute(hwnd, DWMWA_NCRENDERING_POLICY, &v, 4); <- v return 11. BOOL v; auto k =…

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,649 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,755 questions
asked 2024-10-24T08:01:21.67+00:00
D.D.K-2637 966 Reputation points
commented 2024-10-30T12:06:48.6933333+00:00
D.D.K-2637 966 Reputation points
0 answers

Why GetPerTcpConnectionEStats always return strange value.

I have following code to read TCP congestion stats: Tried a whole day, the read out path_rod is always strange, like: What should I try next?

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,649 questions
asked 2024-10-18T14:01:09.1966667+00:00
xing-9122 0 Reputation points
commented 2024-10-29T06:51:22.4766667+00:00
Roy Li - MSFT 33,371 Reputation points Microsoft Vendor
0 answers

'SysListView32' Bug with multiple items selection: still not fixed in Windows 11 23H2

When I use our own 32 bit application, the mouse cursor still jumps to a corner when I do the lasso selection in a listview (click and drag a rectangle to select multiple listview items). From what I've found in the internet, the program might use a…

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,649 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,755 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,847 questions
asked 2024-10-16T14:45:32.1733333+00:00
HenningD 0 Reputation points
commented 2024-10-29T06:50:44.8966667+00:00
Roy Li - MSFT 33,371 Reputation points Microsoft Vendor
1 answer

How to make XAudio2 throw a Device Lost flag/error?

Hi, I was wondering how I can produce a Device Lost message for XAudio2. I tried using the dxcaps -forcetdr command in the Developer Command Prompt window for Visual Studio, but it did not work. I am using C++ and programming for Windows 10. Derek

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,649 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,755 questions
asked 2024-10-01T02:15:50.39+00:00
Derek Todd 0 Reputation points
commented 2024-10-29T06:47:38.32+00:00
Roy Li - MSFT 33,371 Reputation points Microsoft Vendor
0 answers

SetLayeredWindowAttributes() is no work

this winapi <SetLayeredWindowAttributes()> in d3d12 is no work , but it in d3d9-11 is work , i want to use in d3d12 , why dose this problem arise ? what should i do ?

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,649 questions
asked 2024-10-15T18:09:44.7633333+00:00
志鸿 吴 0 Reputation points
commented 2024-10-28T15:38:24.9833333+00:00
Darran Rowe 1,026 Reputation points
0 answers

Exception Handling in Windows

Windows provides the following exception handling frameworks: Structured Exception Handling (SEH) Vectored Exception Handling (VEH) SEH is just the Windows's version of the C++ try-catch, and documentation suggests using the C++ try-catch blocks. I…

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,649 questions
asked 2024-10-25T07:40:37.14+00:00
CSK 1 Reputation point
commented 2024-10-28T13:31:10.82+00:00
Darran Rowe 1,026 Reputation points
0 answers

Decryption failure error with crypt32.dll, CertGetSubjectCertificateFromStore API

We have an application which transfer EDI documents using AS2 protocol where when our business partner and send data to us, we can’t decrypt it. We are reading the certificate from windows certificate store using CertGetSubjectCertificateFromStore api…

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,649 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,755 questions
asked 2024-10-25T09:51:58.47+00:00
Mehul Donga 0 Reputation points
commented 2024-10-28T03:03:43.4533333+00:00
Jeanine Zhang-MSFT 9,766 Reputation points Microsoft Vendor
0 answers

how to read txt file which has char or unicode ?

I can not use std::fstream right? If I set locale I can not read normal char If I do not set it I can not read unicode bytes.

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,649 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,755 questions
asked 2024-10-25T14:11:12.06+00:00
mc 4,576 Reputation points
commented 2024-10-26T10:51:23.86+00:00
RLWA32 45,691 Reputation points
1 answer One of the answers was accepted by the question author.

the bitmap was blank which create from duplication?

I create bitmap from desktop duplication but it is blank of black. hr = dxgiOutputDuplication->AcquireNextFrame(500, &frame_info1, &resource); ID3D11Texture2D* texture1 = NULL; hr = resource->QueryInterface(__uuidof(ID3D11Texture2D),…

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,649 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,755 questions
asked 2024-10-24T11:20:12.8666667+00:00
mc 4,576 Reputation points
commented 2024-10-26T01:50:11.1166667+00:00
mc 4,576 Reputation points
0 answers

CreateProcess on notepad.exe fails due to a crash in ApiSetHost.AppExecutionAlias.dll

Hi guys, First time I do a question here so hope it is in the right format. We have encountered a problem in which when calling CreateProcess() on notepad.exe fails due to a crash in ApiSetHost.AppExecutionAlias.dll. While have a couple of settings in…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,688 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,649 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,755 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,847 questions
asked 2024-10-22T10:03:03.6033333+00:00
Bram Nijenkamp 0 Reputation points
commented 2024-10-25T16:21:31.17+00:00
Frank 0 Reputation points
0 answers

What does the HRESULT code 0x80193AFC mean?

On Windows 10 Enterprise LTSC Version 1809 Build 17763.6054 I try to run the Windows Win32 API syscall within my rust program: windows::Win32::Management::MobileDeviceManagementRegistration::RegisterDeviceWithManagement This function will register 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,649 questions
asked 2024-10-22T11:28:56.6333333+00:00
Subconscious Compute 0 Reputation points
commented 2024-10-23T11:39:54.4766667+00:00
Subconscious Compute 0 Reputation points
0 answers

signature verification issue with crypt32.dll CryptMsgControl api

We have an application which transfer EDI documents using AS2 protocol where When we send data to one of our business partner and try to verify the signature of the MDN that business partner return to us and we can`t verify the signature of the MDN that…

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,479 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,649 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,755 questions
asked 2024-10-11T14:56:22.9666667+00:00
Mehul Donga 0 Reputation points
commented 2024-10-23T09:06:23.9666667+00:00
Jeanine Zhang-MSFT 9,766 Reputation points Microsoft Vendor
0 answers

Media Foundation AAC encoder trimming early samples and unable to process short files

Hi, We're using Media Foundation to convert WAV files to AAC/MP4 in our asset importer, and we observed that the smallest size of acceptable files increased in the later versions. Previously, we were able to convert files of at least 1025 samples, but…

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,649 questions
asked 2024-10-22T19:10:02.3933333+00:00
Vincent Doré-Millet 0 Reputation points
commented 2024-10-23T05:39:28.59+00:00
Jeanine Zhang-MSFT 9,766 Reputation points Microsoft Vendor