2,434 questions with Windows API - Win32 tags

Sort by: Updated
0 answers

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 or 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,845 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,812 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,434 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,735 questions
asked 2024-05-15T10:27:43.9533333+00:00
Bakya ABL 21 Reputation points
1 answer

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,434 questions
asked 2024-05-15T07:18:16.3466667+00:00
Shyam Butani 40 Reputation points
edited a comment 2024-05-15T09:23:37.9733333+00:00
Shyam Butani 40 Reputation points
2 answers

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,812 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,434 questions
asked 2024-05-02T16:39:51.1233333+00:00
Saito, Makoto (SIE) 0 Reputation points
commented 2024-05-15T08:58:02.91+00:00
Tong Xu - MSFT 1,811 Reputation points Microsoft Vendor
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,434 questions
asked 2020-09-23T11:59:32.183+00:00
Victor Chen 106 Reputation points
commented 2024-05-15T05:01:47.4466667+00:00
Castorix31 81,841 Reputation points
0 answers

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,434 questions
asked 2024-05-14T17:23:25.8266667+00:00
grease 0 Reputation points
commented 2024-05-15T02:13:49.7+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
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,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,434 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,326 questions
asked 2024-05-13T21:28:00.4833333+00:00
MERUN KUMAR MAITY 511 Reputation points
answered 2024-05-14T08:13:48.94+00:00
Hongrui Yu-MSFT 165 Reputation points Microsoft Vendor
0 answers

Disabling a physically connected devices which are involved in an IO operation

Problem statement: I'm trying to disable a device using the setup apis, but sometimes I'm experiencing an error due to it is involved in IO operations. Im looking for a way to make a device behave like it is removed physically or in some way to abruptly…

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,434 questions
asked 2024-05-11T11:15:51.6266667+00:00
praveen 0 Reputation points
commented 2024-05-14T08:07:13.5633333+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
1 answer

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,812 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,434 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,548 questions
asked 2024-05-10T14:33:43.0133333+00:00
Aditya Pingle 0 Reputation points
edited an answer 2024-05-14T02:04:16.8533333+00:00
Tong Xu - MSFT 1,811 Reputation points Microsoft Vendor
0 answers

How to add an application SID to component services DCOM Config security permissions?

How to add an application SID to component services DCOM Config security permissions? I have a COM Service which is logon as Network Service and I want to start another COM application(with DCOM) in this Service with CoCreateInstance, Local…

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,434 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,548 questions
asked 2021-03-04T03:08:08.713+00:00
Ji Shirley 181 Reputation points
commented 2024-05-13T13:52:42.04+00:00
Edison Henrique Andreassy 0 Reputation points
2 answers

Win11 22H2 (10.0.22621) can't support TB_BUTTONCOUNT message of System Toolbar

TB_BUTTONCOUNT message can't get system tray icon's count any more after Win11 22H2 (10.0.22621). https://learn.microsoft.com/en-us/windows/win32/controls/tb-buttoncount The following code can get system tray icon's information in the Win10 system, 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,434 questions
asked 2024-01-08T08:37:11.82+00:00
Ryan 0 Reputation points
commented 2024-05-13T05:19:50.46+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
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,434 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,548 questions
asked 2024-05-03T12:58:05.9266667+00:00
Dada Khalandhar Gooty 0 Reputation points
edited the question 2024-05-10T20:55:51.7233333+00:00
Rob Caplan - MSFT 5,422 Reputation points Microsoft Employee
2 answers

How to communicate with the SIM card in the external SIM card slot of the surface pro9 device?

I want to use the surface pro9 device to access the SIM card in the external SIM card slot. After inserting the card, the device can log in to the 5G network. In my application, I can list Microsoft UICC ISO card readers. Resetting can return the correct…

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,434 questions
asked 2023-10-25T03:14:19.5433333+00:00
junzilan 0 Reputation points
answered 2024-05-10T11:54:46.8966667+00:00
Helen Daniel 0 Reputation points
1 answer

How to add custom parameter and its corresponding value in the HTTP header using the Windows-win32-webservices.h library

I have implemented a SOAP web service client in C++ using MS Visual Studio 2019 and library “WebServices.h”, in order to consume a SOAP web service. SOAP webservice that I am consuming requires a custom parameter and its corresponding value in the HTTP…

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,434 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,548 questions
asked 2024-05-08T09:23:10.42+00:00
Shree (Contractor) 0 Reputation points
answered 2024-05-10T02:33:32.65+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

LoopbackCapture (`ActivateAudioInterfaceAsync` with `VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK` ), m_AudioClient->GetMixFormat failed with E_NOTIMPL

Hi, I use the applicationloopbackaudio-sample to record system audio, it works fine. However, the capture format is hard coded: // The app can also call m_AudioClient->GetMixFormat instead to get the capture format. // 16 - bit PCM format. …

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,434 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,548 questions
asked 2022-12-12T12:57:24.777+00:00
TianpingHsu 26 Reputation points
answered 2024-05-09T15:30:03.31+00:00
Tony 96 Reputation points
1 answer

How to use IAudioEndpoint and connect it to Audio Engine?

I want to create a new audio endpoint in user mode. So the audio player can work normally without a physical sound card. I find the API https://learn.microsoft.com/en-us/windows/win32/termserv/terminal-services-audioendpoint-api-reference. As the doc…

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,434 questions
asked 2024-03-18T13:33:22.4633333+00:00
mkckr0 0 Reputation points
answered 2024-05-07T13:39:57.14+00:00
mkckr0 0 Reputation points
1 answer

Is it possible to get PID from Media Sessions?

As title says, is it possible to get PID or some other unique identifier from the Media Sessions the API provides? I'm afraid of issues with multiple instances of my program running, and some way to distinguish them would be very…

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,434 questions
asked 2024-05-06T08:19:41.74+00:00
Dolezal, Vojtech 0 Reputation points
commented 2024-05-07T06:43:33.03+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

How can I launch my application automatically on system reboot?

Is there an API or method that I can use to make sure my application launches automatically when the system restarts? I would appreciate any help or guidance on this matter.

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,434 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,322 questions
asked 2024-05-02T13:09:11.53+00:00
Rohan Pande 315 Reputation points
commented 2024-05-06T10:23:13.5866667+00:00
RLWA32 40,856 Reputation points
1 answer

I am working in SSL using webservice.h. I want to modify the HTTP header information in the request by adding Keyid = "value"

I am working on SSL (using webservice.h). Please find below the request. In the highlighted headers below , I want to add Keyid = "Value". I am trying to do this but not able to get any clue. I have tried using WsAddCustomHeader 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,434 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.
659 questions
asked 2024-04-23T09:17:25.6866667+00:00
Sriram Mahalingam (Contractor) 0 Reputation points
edited a comment 2024-05-06T07:40:50.6833333+00:00
Tong Xu - MSFT 1,811 Reputation points Microsoft Vendor
0 answers

Connect to a paired Bluetooth device from C#.

It is a duplicate of my question on StackOverflow. There is a "Connect" and "Disconnect" buttons in Windows Bluetooth settings. I want to create a console application which would make Windows connect and disconnect from…

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,434 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,326 questions
asked 2022-02-01T18:40:41.643+00:00
PolarGoose 11 Reputation points
commented 2024-05-04T17:17:06.5+00:00
Eric 0 Reputation points
0 answers

Getting VSS Error ID 8200 while taking VSS Snapshot backup. API IVssWriterComponentsExt.GetWriterInfo is failed with error VSS_E_INVALID_XML_DOCUMENT

We are developing an application to backup our filesystem files via VSS. We are getting an issue while gathering writer component info which is blocking us to move ahead with building the tool. Can someone please help? Detailed logs…

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,434 questions
asked 2024-04-29T14:11:06.7166667+00:00
Subodh Agnihotri 21 Reputation points
commented 2024-05-03T07:29:23.73+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor