2,422 questions with Windows API - Win32 tags

Sort by: Updated
2 answers

Appropreate message to initiate window move with the mouse button up

Unfortunately I was asking the wrong way. I know how to move the form by setting its Location property. I have a working solution without p/invoke on github although quite convoluted for my taste. My question is "can I avoid this convolution by…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,828 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,422 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,249 questions
asked 2022-12-17T11:19:29.73+00:00
adamstyl 1 Reputation point
edited an answer 2024-04-18T22:03:36.0866667+00:00
Gavin Landon 0 Reputation points
0 answers

How to cope with Microsoft's design flaw of the MFT_MESSAGE_NOTIFY_END_OF_STREAM message, when using the standard media session pipeline with multiple input MFTs ?

Hello! I dont know if this is the right place to ask the following question. But since the MSDN was shutdown by MIcrosoft a few years ago this seems to be the only place. And i will not ask it on Stackoverflow, as i would propably be the best candidate…

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,422 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,527 questions
asked 2024-04-14T21:58:40.37+00:00
FrancisG 0 Reputation points
edited a comment 2024-04-18T07:34:20.4433333+00:00
FrancisG 0 Reputation points
1 answer

Accessing GPS Sensor on Surface Go LTE (model 1825)

I have a Surface Go LTE (model 1825), running Windows 10 Pro, Version 22H2, Build 19045.4291. According to the specifications it has standalone GPS/GNSS capability. In the privacy settings, access to location services has been enabled. In the device…

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,422 questions
asked 2024-04-17T19:59:43.4466667+00:00
twocan_plugin 5 Reputation points
commented 2024-04-18T07:03:20.1233333+00:00
twocan_plugin 5 Reputation points
2 answers One of the answers was accepted by the question author.

Create a traditional Windows Desktop application (C++)

Hello ! "I have Visual Studio 2022 and have followed the instructions for creating a traditional Windows Desktop application (C++) available on the page…

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,422 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,527 questions
asked 2024-04-08T17:52:01.1633333+00:00
Benny Hill 20 Reputation points
commented 2024-04-17T14:46:53.0966667+00:00
RLWA32 40,286 Reputation points
5 answers

SetWindowDisplayAffinity bad usecase

Hey, We have a classroom of exam computers that are monitored by the class admin through a remote feed that uses the Windows API to take screenshots at specified intervals. Some students have found that if they execute an app with…

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,422 questions
asked 2024-04-10T09:58:17.7933333+00:00
Marius Ukt 0 Reputation points
commented 2024-04-17T09:06:39.96+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
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,422 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,527 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,543 questions
asked 2022-11-03T14:24:56.677+00:00
DawidW-5205 11 Reputation points
commented 2024-04-17T05:44:08.21+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
0 answers

InternetSetOption not work on windows 10 2004

static BOOL SetSystemProxyPacUrl( wchar_t* proxy_full_addr) { INTERNET_PER_CONN_OPTION_LISTW list; BOOL bReturn; DWORD dwBufSize = sizeof(list); // Fill out list struct. list.dwSize = sizeof(list); // Set three options. …

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,618 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,422 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,527 questions
asked 2024-04-15T09:13:03+00:00
myibc 11 Reputation points
commented 2024-04-16T06:35:27.95+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
2 answers

Improving Performance by Switching Automatic Windows Services to “Manual”

I use Windows 10 (64-bit) (v10.0.19045.4170). To improve performance, are there any automatic Windows Services to be switched to “Manual?”

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,618 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,747 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,422 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,272 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,543 questions
asked 2024-04-07T04:01:31.98+00:00
R9I1 1 Reputation point
commented 2024-04-16T03:27:31.21+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How do I download "Windows Media Device Manager 11 SDK" ?

Hi, I'm developing a device management application. I want to download "Windows Media Device Manager 11 SDK". https://learn.microsoft.com/en-us/windows/win32/wmdm/windows-media-device-manager-11-sdk But download link is broken. How do I…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
725 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,422 questions
asked 2024-04-12T21:35:45.11+00:00
yukin y 20 Reputation points
commented 2024-04-15T12:18:39.2466667+00:00
yukin y 20 Reputation points
1 answer One of the answers was accepted by the question author.

Would calling RIOReceive() on a closed socket potentially cause a crash?

Hello, I would like to inquire about a crash that occurred when calling the RIOReceive() function. Please understand that the sentences may be strange because I used a translator. What happens is that thread A performs closesocket(sock) on the previously…

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,422 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,527 questions
asked 2024-04-15T02:06:23.07+00:00
형진 김 20 Reputation points
edited the question 2024-04-15T09:29:55.4266667+00:00
형진 김 20 Reputation points
2 answers One of the answers was accepted by the question author.

Windows cursor size

How do i get correct size value of mouse pointer? I have try: SystemParametersInfo() and cursor bitmap size info. They both return default values. Starting from win3.x Now the Win10 has this change mouse cursor size feature. That make life more easy.…

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,422 questions
asked 2022-04-17T15:18:02.253+00:00
Tuukka Lehtinen 21 Reputation points
commented 2024-04-15T08:11:54.93+00:00
Grey 5 Reputation points
2 answers

Porting DirectX 9 to latest version

Iam porting an existing project with DirectX 9, Is DirectX 11 or 12 should be considered for this subject Kindly advice.

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,422 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,527 questions
asked 2024-04-15T06:40:01.19+00:00
Balineni Rohith Sai 0 Reputation points
answered 2024-04-15T07:36:00.23+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

"Unresolved external "int __cdecl invoke_main(void)" after VS2017 15.6.1 update" -- Part 2

I am porting a number of mature Win32 apps developed using VS 2015 under Windows 7 Professional to be built using VS 2019 under Windows 10 . Some edits to the original source and heading files are necessary to accommodate VS 2019 idiosyncrasies. 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,422 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,527 questions
asked 2021-06-25T20:33:27.207+00:00
Robert Hoech 201 Reputation points
commented 2024-04-14T04:37:44.5933333+00:00
Johan 0 Reputation points
0 answers

C++ RealTimeStylus is dead and doesn't handle any touch messages

After some testing, I found that the RTS touch library on win7sp1 systems has a probability of triggering an error: RealTimeStylus does not trigger, i.e. it does not trigger the touch callback class even if there is a touch point that has been pressed 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,422 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,527 questions
asked 2024-04-03T05:26:56.4233333+00:00
RL Chen 165 Reputation points
edited a comment 2024-04-12T07:14:59.8066667+00:00
Roy Li - MSFT 31,826 Reputation points Microsoft Vendor
0 answers

Why PackageManager.FindPackagesForUser method not fetching all the store app details

I'm attempting to retrieve details of installed Store apps on the machine using the PackageManager class in C++/WinRT. However, I'm encountering an issue where I only receive a partial result. For example, if there are 20 Store apps installed, only 10…

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,747 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,422 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,527 questions
asked 2024-04-05T11:58:43.4033333+00:00
checkingrandom 206 Reputation points
commented 2024-04-12T06:28:46.1833333+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
1 answer

Getting logs for WinHTTP system error.

Hi, All! Recently, during development of an application, I've started facing troublesome issue: calls to WinHTTP subsystem (specifically, WinHttpReadData/WinHttpQueryDataAvailable APIs) present me with 12004 ERROR_WINHTTP_INTERNAL_ERROR outcome. Doesn't…

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,747 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,422 questions
asked 2024-04-11T14:03:06.43+00:00
Ivanov 0 Reputation points
answered 2024-04-12T02:40:13.9933333+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to cancel the "print preview" option in the printer preferences by coding?

I want to cancel the "print preview" option in the printer preferences by coding, maybe can use c++ windows api or C#. Then how to do it ? Thank you !

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,422 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,249 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,527 questions
asked 2024-04-10T04:00:43.3266667+00:00
szmm 25 Reputation points
commented 2024-04-11T06:41:00.6566667+00:00
Castorix31 81,726 Reputation points
1 answer One of the answers was accepted by the question author.

Repaint issue with DWM, WM_NCCALSIZE WVR_VALIDRECTS, and Scroll Bars

The following program is based on code from Raymond Chen's The Old New Thing blog post from September 15th, 2003 (https://devblogs.microsoft.com/oldnewthing/20030915-00/?p=42493). I added a menu and scroll bars to test/verify that non-client parts of the…

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,747 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,422 questions
asked 2024-04-05T19:00:00.12+00:00
Jeff Stoner 20 Reputation points
commented 2024-04-10T08:33:11.9466667+00:00
Tong Xu - MSFT 1,061 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to Enable/Disable audio devices

Hi, I want to enable/disable audio devices listed in sound control panel (mmsys.cpl) but either through programmatically or through any power shell commands/scripts or windows internal utilities(pnputil, devcon). I tried using WMI APIs, Core Audio APIs,…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,618 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,422 questions
asked 2024-03-14T09:13:27.3433333+00:00
Ramashankar Agrahari (India) 25 Reputation points
commented 2024-04-10T05:12:26.8833333+00:00
Ramashankar Agrahari (India) 25 Reputation points
1 answer

How to remove thin black border while printing bitmap in Win32 app

Hello, I'm working on C++/WinRT application, and trying to print bitmap using printer. But I'm getting thin black border on the printed page. I'm doing similar to below code snippet. // Printer HDC HDC hdc_printer = CreateDCW (NULL, L"My…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
725 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,422 questions
asked 2024-04-09T12:49:16.9433333+00:00
Shyam Butani 20 Reputation points
answered 2024-04-10T02:03:21.4366667+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor