2,592 questions with Windows API - Win32 tags

Sort by: Updated
6 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,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
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,610 questions
asked 2022-11-03T14:24:56.677+00:00
DawidW-5205 11 Reputation points
answered 2024-08-15T08:05:35.23+00:00
MaoliWolf 0 Reputation points
1 answer One of the answers was accepted by the question author.

how to use windows-rs com function CLSIDFromProgID.

Hello, everyone. I am now using windows-rs to migrate previous vb programs. The vb program references a library class. I checked this class through ole/com and found it in Type Libraies, and in HKEY_CLASSES_ROOT in the registry editor, it appears in…

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-13T15:55:42.3033333+00:00
tab shi 20 Reputation points
accepted 2024-08-15T01:33:29.33+00:00
tab shi 20 Reputation points
0 answers

Cannot change Windows 10/11 touch keyboard to Traditional Chinese phonetic layout

I'm an author of a Traditional Chinese Input Method. My IME works very well before Windows 10 Version 1703, but the screen keyboard always shows English layout instead of Chinese Phonetic (Bopomofo) layout after Windows 10 Version 1709. The steps 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-07T12:55:51.2133333+00:00
Bruce You 1 Reputation point
commented 2024-08-14T06:58:51.57+00:00
Jeanine Zhang-MSFT 9,666 Reputation points Microsoft Vendor
1 answer

How to read and output the NPU utilization

Hi All How to use the following MS learning to read and output the NPU utilization. Thank you. https://learn.microsoft.com/en-us/windows/win32/api/activitycoordinatortypes/ne-activitycoordinatortypes-activity_coordinator_resource

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#
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,858 questions
asked 2024-06-18T05:32:45.61+00:00
John Huang 0 Reputation points
commented 2024-08-13T06:44:04.7566667+00:00
Wang, Yang4 0 Reputation points
0 answers

WIFI DIrect API pair always failed

Hi Everyone, My app need use WIFI Direct feature, so I refer to a Microsoft sample Code (WiFiDirectLegacyAPDemo). For some reason, I can't use legacy mode of WIFI Direct, so I need call customer pair when got a connection request, but it always get 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,592 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2024-08-12T03:40:12.68+00:00
zheng cheng 1 Reputation point
commented 2024-08-13T03:21:33.25+00:00
Jeanine Zhang-MSFT 9,666 Reputation points Microsoft Vendor
1 answer

IOCTL_STORAGE_FIRMWARE_DOWNLOAD returns ERROR_INVALID_FUNCTION on eMMC laptop

I am developing software for performing firmware updates on laptops with eMMC storage. However, when I issue IOCTL_STORAGE_FIRMWARE_DOWNLOAD, I receive an ERROR_INVALID_FUNCTION. I have also tried using the Intel eMMC firmware update tool, but it fails…

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-09T16:13:53.24+00:00
yh_yong 0 Reputation points
answered 2024-08-13T01:56:09.3333333+00:00
Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
2 answers

How to programatically get NPU utilization using C/C++/C#

如果一台PC有NPU,那么在Windows 11任务管理器中,“性能”页面就会显示NPU的信息(包括使用率),一般来说,这个页面显示的信息从“性能计数器(PDH)”中获取,但是我并没有找到对应的计数器。有谁知道这个NPU使用率从哪儿获取吗? If a PC has an NPU, then in the Windows 11 Task Manager, the "Performance" page will display the information of the NPU…

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
Windows Performance Toolkit
Windows Performance Toolkit
A collection of Microsoft performance monitoring tools that produce in-depth performance profiles of Windows operating systems and applications.
103 questions
asked 2024-06-06T08:39:18.8033333+00:00
comor 5 Reputation points
answered 2024-08-12T03:23:46.14+00:00
Wang, Yang4 0 Reputation points
1 answer One of the answers was accepted by the question author.

NCryptSignHash returns NTE_INVALID_PARAMETER when signing a SHA512 hash

Hello, I've been updating a program to use CNG but have run into a problem where NCryptSignHash returns NTE_INVALID_PARAMETER when I ask it to sign a SHA512 hash. If I change the hashing algorithm to MD5, SHA1, or SHA256 then the function succeeds fine.…

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-08T16:17:50.06+00:00
Aidan Lee 21 Reputation points
commented 2024-08-10T12:54:02.41+00:00
Aidan Lee 21 Reputation points
2 answers One of the answers was accepted by the question author.

GetWindowPlacement() different values for windows in the exact same location

Why does GetWindowPlacement() give different coordinates for two applications that are positioned in the exact same location. So I opened three different windows of Chrome, and placed them on the exact location all three. One on top of the other. In…

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-07-30T22:18:25.2566667+00:00
Coptil David 20 Reputation points
commented 2024-08-09T07:58:15.2566667+00:00
RLWA32 45,326 Reputation points
0 answers

Apply changes made in registry regarding window metrics

I want to set specific values for: Computer\HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics Is there a way to apply registry changes without the need of logging off and on? Perhaps some service needs restarting? I've tried to restart explorer.exe…

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-04-23T13:05:40.3633333+00:00
Lukas 0 Reputation points
commented 2024-08-07T15:52:58.1266667+00:00
Bikram Sandhu 5 Reputation points
0 answers

Problem with handling tab key (focusing controls) in a window created by a dll

Hello, I'm developing virtual musical instrument software which can be used as a plugin in Digital Audio Workstations (DAW). The software is based on Steinberg's VST3 SDK and it is written in C++ in Visual Studio 2022. VST3 plugins are DLLs. After being…

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-06T16:27:07.8233333+00:00
Michael_L 20 Reputation points
commented 2024-08-07T01:29:13.5066667+00:00
Jeanine Zhang-MSFT 9,666 Reputation points Microsoft Vendor
1 answer

Supplied buffer size is incorrect C#?

Alright, hopefully this is my last question on this topic. Currently, I'm having trouble with a program that reads HID input from Joy-Cons to see their button input. When I try to run my program, I get the error code 1784 from ReadFile for a invalid user…

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#
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,858 questions
asked 2024-08-04T22:59:48.7866667+00:00
CakeDev 50 Reputation points
commented 2024-08-06T02:15:09.4033333+00:00
RLWA32 45,326 Reputation points
1 answer One of the answers was accepted by the question author.

C# HID Input Report Problem.

Currently I'm having a problem with getting input reports from a HID device. What's happening is that I'm getting the device path of the device, but CreateFileW doesn't recognize it as a valid device path. Here's my platform invokes and main function…

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#
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,858 questions
asked 2024-08-04T01:56:29.68+00:00
CakeDev 50 Reputation points
accepted 2024-08-04T18:31:24.15+00:00
CakeDev 50 Reputation points
1 answer One of the answers was accepted by the question author.

Where can I find sendmsg and recvmsg refered to in https://learn.microsoft.com/en-us/windows/win32/winsock/winsock-ecn

See page https://learn.microsoft.com/en-us/windows/win32/winsock/winsock-ecn. I tried to find sendmsg and recvmsg functions, but couldn't find them. In which header are they defined? Or are these wrapper functions I have to write myself?

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-07-23T01:15:22.0466667+00:00
Koen De Schepper 20 Reputation points
commented 2024-08-03T09:48:05.4866667+00:00
Koen De Schepper 20 Reputation points
4 answers One of the answers was accepted by the question author.

IO Completion Ports - error 998

Explain, please, what am I doing wrong? I am trying to make a simple client based on IOCP: But, i always get the gatelasterror error 998 when calling GetQueuedCompletionStatus. I just can't understand - what I'm doing wrong. :(

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 2021-05-15T14:45:00.803+00:00
Andreyka_ 136 Reputation points
answered 2024-08-02T19:10:01.0633333+00:00
stephon110 150 Reputation points
2 answers

C# Printing problem with system.Drawing.Printing from #web API

Hello everyone, I have a situation to print PDF document as a batch from Web API. And I have used System.Drawing.Printing Library to print them. I have noticed the ‘Caution’ mentioned on Microsoft site…

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,762 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 2021-04-15T10:46:22.073+00:00
Manivannan D 1 Reputation point
commented 2024-08-02T08:50:58.86+00:00
MT 0 Reputation points
1 answer

why my application freezes when reading a nvenc-h264 encoded video file in Windows 10 but not on windows 11

Hi Everyone, I have the video file with the following details: General Complete name : D:\this_video_causes_error.avi Format : AVI Format/Info : Audio Video Interleave File size : 16.7 MiB Duration : 1 min 0 s Overall bit rate mode : Variable Overall bit…

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-07-31T05:42:16.1966667+00:00
Ashish Patil 0 Reputation points
commented 2024-08-01T07:07:41.7633333+00:00
Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
1 answer

When using the Win32 GetAppliedGPOList in C, the GPO list pointer is always NULL even when trying multiple GUIDs and even when the API returns success.

In the code below, pGPOList (the GPO list) is always NULL even when the GetAppliedGPOList returns success. I have tried multiple group policy extension GUIDs, but no luck. What am I doing wrong? This also happens when I try GetAppliedGPOList with user…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 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-07-24T12:56:07.7066667+00:00
Madden, John 5 Reputation points
commented 2024-08-01T05:46:15.93+00:00
Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
0 answers

is there any library to extract user information of microsoft logged account other than win32com?

I tried to deploy a web service to azure portal (linux). However, my app service doesn't work and it stated "ModuleNotFoundError: No module named 'win32com'". I believe that win32com is not compatible for linux and exclusively only for…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,980 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-07-31T10:05:45.77+00:00
Syafie Asyraf Sarifudin 20 Reputation points
edited the question 2024-08-01T01:58:44.9766667+00:00
Robin Sheng-MSFT 2,725 Reputation points Microsoft Vendor
0 answers

Office 365 vs Office 2016 API problems

I have a Delphi application that has been running for years leveraging the Excel APIs (very similar structural calls as in VBA). I have even moved to later versions of Office over the years with no issues. I recently had a user begin running the Delphi…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,842 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
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,861 questions
asked 2024-07-31T22:46:35.1233333+00:00
Wayne Belshaw 0 Reputation points