2,426 questions with Windows API - Win32 tags

Sort by: Updated
1 answer

how is the windows API (WlanQueryInterface ) response containing enum _WLAN_CONNECTION_MODE mapped into command line wifi connection mode values Auto/ Manual?

windows API (WlanQueryInterface ) response for any particular wifi profile gives connection mode as below Enum _WLAN_CONNECTION_MODE { wlan_connection_mode_profile =…

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,426 questions
asked 2024-04-19T11:53:14.05+00:00
Abhay Yadav 0 Reputation points
commented 2024-04-22T05:22:01.6566667+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 check the Windows setting-Location permission is enabled or not for my Application using win32 C ++

Hi, How to check the Windows setting-Location permission is enabled or not from a Win32 C++ Application. I would like to know the win32 API which can get the status about the Location setting, whether it's enabled for the application or not. I

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,654 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,426 questions
asked 2024-04-05T14:01:22.9633333+00:00
67883078 41 Reputation points
edited a comment 2024-04-20T17:17:12.6533333+00:00
67883078 41 Reputation points
1 answer One of the answers was accepted by the question author.

Win32 Button keeps the blue border on focus lost

In a non-dialog window, is it a known bug or normal behavior that a push button keeps the blue focus border after a control in another window gets focused? I checked to see if the button receives the WM_KILLFOCUS message and yes it does. I noticed that…

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,426 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,537 questions
asked 2024-04-13T02:32:01.41+00:00
NorthernSun 101 Reputation points
edited a comment 2024-04-20T16:13:11.27+00:00
NorthernSun 101 Reputation points
2 answers One of the answers was accepted by the question author.

Recognize whether the user is logged in

In Windows 10 and Windows 11, apps that are started automatically at startup are already started before the user has logged in. In Windows 8.1, such automatically launched apps were only started after the user had logged in. At least this is the case on…

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,676 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,426 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,273 questions
asked 2024-04-18T15:03:37.3466667+00:00
Heiko 1,211 Reputation points
accepted 2024-04-20T12:52:14.77+00:00
Heiko 1,211 Reputation points
1 answer

Information of dirty virtual memory pages

To advise the memory manager to know better which pages should be preferred for paging I need to know which pages are dirty. Obviously I can get a lot of information QueryWorkingSet and QueryWorkingSetEx but what I do not get is if the page is dirty or…

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,426 questions
asked 2022-02-09T23:04:16.157+00:00
Martin Sedlmair 46 Reputation points
commented 2024-04-19T21:42:14.4466667+00:00
Grayson Clark 0 Reputation points
1 answer

How to read PDF file from the disk and print it using printer in C++/winrt/win32 app

I have a PDF file stored at some location filePath, I want to read PDF and print it using printer (I have printer name). How can I achieve it in C++/winrt/win32 desktop application.

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,426 questions
asked 2024-04-02T11:11:15.68+00:00
Shyam Butani 20 Reputation points
edited a comment 2024-04-19T07:34:11.04+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
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,833 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,426 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,273 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,426 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,537 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,426 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,426 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,537 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,571 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,426 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,426 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,537 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,546 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,654 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,426 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,537 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,654 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,770 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,426 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,273 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,546 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.
727 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,426 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,426 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,537 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,426 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,426 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,537 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,426 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,537 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,426 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,537 questions
asked 2024-04-03T05:26:56.4233333+00:00
RL Chen 170 Reputation points
edited a comment 2024-04-12T07:14:59.8066667+00:00
Roy Li - MSFT 32,051 Reputation points Microsoft Vendor