Microsoft Q&A

Windows API - Win32

2,223 questions

A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.

Browse all Windows tags

2,223 questions with Windows API - Win32 tags

Sort by: Updated
2 answers

MS BMP specification issue

Hello. I have some question about BMP specification, been talking to my very good friend GPT and he couldn't help with it. Question is What is the purpose of this 0 , 0 after color arrays (2x2 pixels) unsigned char tablica[] =…

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,223 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,178 questions
asked 2023-09-22T17:55:32.0066667+00:00
Wojciech Sobiesiak 61 Reputation points
edited an answer 2023-09-26T04:23:12.6933333+00:00
Wojciech Sobiesiak 61 Reputation points
1 answer

ES_DISPLAY_REQUIRED

Hello, I am building a Windows Forms application and am implementing the thread execution state ES_DISPLAY_REQUIRED (0x00000002) to prevent screen timeout while the application is active.…

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,223 questions
asked 2023-09-25T00:38:03.4466667+00:00
Neal 0 Reputation points
commented 2023-09-26T00:56:04.48+00:00
Xiaopo Yang - MSFT 8,666 Reputation points Microsoft Vendor
0 answers

GattCharacteristic.WriteValueAsync Method is directly throwing the exception when called after the BLE device is disconnected.

I am trying to build the console application to interact with BLE device and I am referring to windows BLE sample UWP program. GattCharacteristic.WriteValueAsync Method works perfectly fine when BLE device is connected. But directly goes 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,223 questions
asked 2023-09-22T19:18:17.45+00:00
Punith P 0 Reputation points
commented 2023-09-25T11:56:13.6733333+00:00
Punith P 0 Reputation points
0 answers

WASAPI Capture shared event driven mode not working in Windows Vista to Windows Server 2016.

I am building an application to capture audio from the device using WASAPI Where all the API used support Windows vista and above devices. Initially, I captured audio from the device with WASAPI Capture as shared timer driven mode where there will be a…

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,147 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,223 questions
asked 2023-09-19T07:45:11.8666667+00:00
Preethi Ravi 10 Reputation points
commented 2023-09-25T10:27:02.1466667+00:00
Preethi Ravi 10 Reputation points
2 answers

In the windows 22H2 version, which windows api is used to modify the windows printer configuration

I want to modify the Borderless Print switch configuration of windows printer by programming. As shown below, windows Settings->Bluetooth and other devices->Print preferences (inside print properties) -> advanced ->Borderless Print For…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,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,223 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,178 questions
asked 2023-09-22T07:12:10.61+00:00
szmm 0 Reputation points
commented 2023-09-25T09:31:12.6833333+00:00
Castorix31 77,191 Reputation points
1 answer

Delay issue with lAudioClient::Initialize method (audioclient. h)

Hello, We have recently started facing a delay issue with lAudioClient::Initialize method (audioclient. h) at customer end. As per the logs it is taking 5-7 seconds to return back from the function call. In good cases on other machines, it takes 200 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,223 questions
asked 2023-09-22T09:59:13.0866667+00:00
Kulkarni, Alok (Alok) **CTR** 0 Reputation points
edited a comment 2023-09-25T01:51:41.6066667+00:00
Jeanine Zhang-MSFT 6,956 Reputation points Microsoft Vendor
2 answers

Expression: (_osfile(fh) & FOPEN)

Microsoft Visual C++ Runtime Library Debug Assertion Failed! Program: E:\code\dyzbuild\bin\Debug\xxx.exe File: minkernel\crts\ucrt\src\appcrt\lowio\close.cpp Line: 56 Expression: (_osfile(fh) & FOPEN) For information on how your program can cause…

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,223 questions
asked 2023-09-22T10:25:32.2166667+00:00
durongzeskype 0 Reputation points
answered 2023-09-22T13:36:10.7233333+00:00
RLWA32 34,806 Reputation points
1 answer

Memory leak inside ntdll.dll internal function RtlpDosPathNameToRelativeNtPathName()

We've discovered a memory leak which we've traced to the ntdll.dll internal function RtlpDosPathNameToRelativeNtPathName(). When CopyFile is called, if the source file name + path is below MAX_PATH in length, the full source file path leaks within…

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,223 questions
asked 2023-08-15T18:16:02.45+00:00
Phil Peddle 15 Reputation points
commented 2023-09-22T08:51:30.1766667+00:00
Tong Xu - MSFT 116 Reputation points Microsoft Vendor
1 answer

I dont't know why ImmSetOpenStatus() not work in the lastest IME on Windows 11?

I use ImmSetOpenStatus() to open/close Input Method Editor (IME). ImmSetOpenStatus() work correctly in previous version of IME in Windows 10. However, ImmSetOpenStatus() does not work in the lastest IME on Windows 11. May you tell the reason? This…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,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.
3,042 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,223 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,178 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,972 questions
asked 2023-09-21T08:55:32.1233333+00:00
Tuan Le Hoang Anh 0 Reputation points
answered 2023-09-22T07:29:14.6133333+00:00
Xiaopo Yang - MSFT 8,666 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Windows Core Audio API : How can I access multiple Volume levels of a USB Device

For an audio device Control Software we need to access the different Windows volume levels of our device (Speaker level and Microphone level). We are using the Windows Core Audio API and right now we are able to access the Speaker level using 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,223 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,178 questions
asked 2023-09-20T15:07:05.9366667+00:00
kinaar 20 Reputation points
commented 2023-09-21T13:46:35.76+00:00
kinaar 20 Reputation points
1 answer

BCryptEncrypt is failing when AES-128-GCM algorithm called with 16 byte IV

I am trying to use Microsoft Bcrypt libraries to encrypt using AES 128 bit GCM. The BCryptEncrypt function works well as long as IV size is <= 12 bytes. When I use 16 byte IV then BCryptEncrypt fails with INVALID PARAMETER(0xC000000D) Error. Are there…

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,223 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,178 questions
asked 2023-08-29T17:06:22.5166667+00:00
Subbiah Senguttuvan (XC-AN/EPA1) 0 Reputation points
commented 2023-09-21T09:46:24.46+00:00
Subbiah Senguttuvan (XC-AN/EPA1) 0 Reputation points
0 answers

Looking for WinHttp API related support.

Hi We have developed an application using Windows APIs. We are using WinHttp APIs in particular. The application has been installed on millions of users on Windows. However, we see for about 300-400 users, the application is not working as intended. On…

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,223 questions
asked 2023-09-15T11:44:28.1133333+00:00
Seema Kodikanyana 0 Reputation points
commented 2023-09-21T01:41:26.67+00:00
Xiaopo Yang - MSFT 8,666 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

RPC Extended Error information: updated detection location list

Hi, I was wondering if it was possible to have https://learn.microsoft.com/en-us/windows/win32/rpc/extended-error-information-detection-locations updated for recent versions of Windows (the page only contains detection locations for Windows XP), or if…

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,223 questions
Windows Network
Windows Network
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.Network: A group of devices that communicate either wirelessly or via a physical connection.
477 questions
asked 2023-09-19T16:21:19.34+00:00
microw31-6772 20 Reputation points
accepted 2023-09-20T08:15:14.73+00:00
microw31-6772 20 Reputation points
1 answer

For what parameter changes, NotifyIpInterfaceChange API invokes the callback function. What are the steps to get the notification

I am able to receive notifications on gateway interface operational status flap using the NotifyIpInterfaceChange API. Would like to know when notifications are received for parameter changes like link cost /metric/mtu etc.. What are the commands that…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,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,223 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,972 questions
asked 2023-09-10T19:21:36.97+00:00
muthulakshmi radhakrishnan 0 Reputation points
commented 2023-09-19T14:50:40.07+00:00
muthulakshmi radhakrishnan 0 Reputation points
4 answers One of the answers was accepted by the question author.

how to control enable audio enhancements with code

Hi all, is there a way to disable the microphone audio enhancements from C++ code? When the audio enhancement function is enabled, the microphone data collected by our software will be affected, resulting in problems such as echo can not be…

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,223 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,178 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,408 questions
asked 2021-12-20T09:23:01.86+00:00
哲敏 陈 86 Reputation points
commented 2023-09-19T12:19:07.74+00:00
武林 汪 0 Reputation points
1 answer

IOCTL_KEYBOARD_QUERY_INDICATORS always returns 0 for led lights even though IOCTL_KEYBOARD_SET_INDICATORS works

I have a win32 program that I am trying to give multi-keyboard support to multiple users. i.e. multiple keyboard plugged into the computer and each user has a keyboard that they can use to type into my program and indepently interact with my program. And…

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,223 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,972 questions
asked 2023-09-17T06:06:23.2466667+00:00
Christopher VerBurg 0 Reputation points
commented 2023-09-19T06:51:36.4566667+00:00
Xiaopo Yang - MSFT 8,666 Reputation points Microsoft Vendor
1 answer

c++ open animation controls and elements in the window

I originally wanted to use code to enable "animation controls and elements within the window" in the visual effects. The results I found on the Internet are all about using the registry to modify and then restarting the computer, but this is…

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,223 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,972 questions
asked 2023-09-16T14:54:40.43+00:00
XUWANBIN 181 Reputation points
commented 2023-09-19T06:41:31.8933333+00:00
Xiaopo Yang - MSFT 8,666 Reputation points Microsoft Vendor
1 answer

Is it possible to have editable embeded files(excel, word) on a website?

I need to be able to programmatically take a file from one drive and change it to be embedded into an iFrame. I believe that's doable but I need it to be editable inside of that iFrame but not only from me but for multiple users and they can see any…

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,223 questions
Microsoft Graph Workbooks API
Microsoft Graph Workbooks API
A Microsoft API that allows web and mobile applications to read and modify Excel workbooks stored in OneDrive for Business, SharePoint site or Group drive.
73 questions
Microsoft Graph Extensions API
Microsoft Graph Extensions API
A Microsoft API that allows you to extend the graph API resources to save the data of your own application.
53 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,246 questions
asked 2022-06-21T18:51:36.293+00:00
Patrick Rutherford 1 Reputation point
commented 2023-09-18T09:52:29.9766667+00:00
Jack R 0 Reputation points
0 answers

How to stop search process in Automation?

Hi, Is there a way to safely terminate the IUIAutomation search process? Here is the code I am using: element->GetCurrentPatternAs(UIA_TextPatternId, IID_PPV_ARGS(&telement)); I created a keyboard_hook that stops my code. However, if I press 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,223 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,178 questions
asked 2023-09-12T15:33:23.44+00:00
DangDKhanh-2637 821 Reputation points
edited a comment 2023-09-17T07:29:53.7333333+00:00
RLWA32 34,806 Reputation points
2 answers One of the answers was accepted by the question author.

Disconnect RDP

There are methods to shut down Windows. If I am in an RDP session, how can I disconnect?

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,477 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,223 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.
8,973 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,178 questions
asked 2023-09-07T15:44:22.88+00:00
Heiko 1,051 Reputation points
accepted 2023-09-15T14:25:55.54+00:00
Heiko 1,051 Reputation points