2,716 questions with Windows API - Win32 tags

Sort by: Updated
0 answers

How to register your app in the Notifications and Actions Center of Windows 11

I am developing an app (it's a normal GUI app written in DART and C++). It is NOT a packaged UWP app. I am able to show the app's item/entry in the Windows 11 Notifications and Actions center by writing this .iss innosetup script: [Registry] Root: HKCU;…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,007 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.
5,743 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,716 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,547 questions
asked 2025-01-25T14:19:39.0966667+00:00
Ashish Rana 0 Reputation points
edited a comment 2025-01-27T12:55:21.3733333+00:00
Ashish Rana 0 Reputation points
1 answer

why uiautomation findFirst is slow and can i correct it?

Hello, I want to find some ui elements in windows apps but when i find it using uiautomation findAll or findFirst it slows down programs. I undertand that there are many elements in ui and it requires going throug many elements but for example in…

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.
5,743 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,716 questions
asked 2025-01-25T14:19:43.4133333+00:00
Артур Абубакиров 0 Reputation points
commented 2025-01-27T11:50:02.5066667+00:00
Артур Абубакиров 0 Reputation points
1 answer

How to enable the accent border instead of the title bar when enabling mica effect?

I have enabled the "Display accent color on the title bar and window borders" option in Windows settings. I applied the Mica effect to my Python program using the Win32API. The window display effect, the window Style viewed with Spy++, and 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,716 questions
asked 2025-01-18T06:07:24.2933333+00:00
XiaoYouChR 0 Reputation points
commented 2025-01-27T08:55:10.67+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
1 answer

I want to lock the current HDMI port in C# WPF (.NET Framework)?

I want to lock the HDMI port. If a HDMI port is used for a monitor then if other HDMI port is used then i want to lock existing port. How to do so in C# WPF?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,067 questions
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,818 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,716 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.
11,238 questions
asked 2025-01-16T08:11:55.82+00:00
Vishal2 Bansal 225 Reputation points
commented 2025-01-27T08:54:03.0933333+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
0 answers

Disabling or detecting the use of Desktop Duplication API

We provide software that locks down devices in order to ensure the user remains within our application, and that they don't have access to any outside resources. One class of software that we block is remote desktop clients. We block this through several…

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,716 questions
asked 2025-01-15T12:21:37.38+00:00
HFU-8017 0 Reputation points
commented 2025-01-27T08:53:44.86+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
1 answer

How to run the Windows Function Example Codes independently?

I am not able to test and run the sample exemplary code of IP adapter address or for that reason any other exemplary sample codes of Windows functions. How can I independently test and check if this code helps me to get all the required information which…

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.
814 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,716 questions
asked 2025-01-23T05:41:06.8066667+00:00
Prem Jha 95 Reputation points
commented 2025-01-27T08:47:48.57+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
1 answer

SetSystemCursor not honoring cursor size

I'm currently trying to set the system cursor to loading cursor while I'm processing certain information on my software then restoring the default cursor. But I'm facing an issue when my computer accessibility configuration has the size of mouse computer…

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,716 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,834 questions
asked 2025-01-23T20:07:56.85+00:00
Julian Castillo 0 Reputation points
commented 2025-01-27T02:55:50.9933333+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
1 answer

Restrict printer selection while printing in WinUI app

In a WinUI app, I want to restrict the user from selecting any printer, only allowing a predefined set of printers. Additionally, the user should not be able to modify the print settings, such as altering the paper size or page range; they should only be…

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.
814 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,716 questions
asked 2025-01-24T10:24:43.7566667+00:00
Navaneeth 21 Reputation points
edited the question 2025-01-27T01:25:44.65+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
0 answers

Refresh rate control on IDXGISwapChain1

I play video on my application on xbox with 120Hz, but it seems to be played with 60Hz. Interval between time samples is ~16ms instead of 8ms. I checked few different videos with different fps and the result is the same (I thought that the problem 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,716 questions
asked 2025-01-09T15:01:37.3+00:00
Marek 0 Reputation points
commented 2025-01-24T06:54:16.56+00:00
Jeanine Zhang-MSFT 10,526 Reputation points Microsoft Vendor
2 answers

Where are the Samples for TAPI in the SDK as referred to in Learn. Code for C & VB etc.

Hi, Have installed the SDK, every single option ticked. I think had most before as was using Visual Studio before. As below, looking for TAPI Programs as mentioned on https://learn.microsoft.com/en-us/windows/win32/tapi/tapi-quick-start Specifically VB…

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,716 questions
asked 2025-01-21T12:12:36.48+00:00
Gregory Reed 0 Reputation points
commented 2025-01-22T10:52:50.6533333+00:00
RLWA32 46,561 Reputation points
1 answer One of the answers was accepted by the question author.

I want to disable/enable usb and HDMI port whenever my c# wpf (.net Framework 4.7.2) app runs.

Online resources are not present for above queries. I want solution for both admin/non-admin user account. Please help to provide me the solution.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,067 questions
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,818 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,716 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.
11,238 questions
asked 2025-01-15T12:29:34.7333333+00:00
Vishal2 Bansal 225 Reputation points
accepted 2025-01-22T05:07:30.16+00:00
Vishal2 Bansal 225 Reputation points
0 answers

Why GetBestInterfaceEx doesn't consider routes added via command line?

Consider the case where there are two network interfaces connected to the system (Ethernet and WiFi). Both will add 0.0.0.0/0 route in the routing table but, one of the interface will have a lower metric (say Ethernet gets the lower metric).…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,007 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,716 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.
808 questions
asked 2024-06-19T09:27:31.26+00:00
Deepan Negi 0 Reputation points
commented 2025-01-21T06:45:02.6833333+00:00
Deepan Negi 0 Reputation points
1 answer One of the answers was accepted by the question author.

SetSystemTimeAdjustment disable clock adjust rather than changing the RTC clock rate

I need to override w32tm to adjust the DateTime clock-rate in C#. When I call the kernel32 API: SetSystemTimeAdjustment(ref dwTimeAdjustment, ref bTimeAdjustmentDisabled); I get a return of true, indicating it worked, but when I read back 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,716 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.
11,238 questions
asked 2025-01-20T03:59:44.49+00:00
Tom Stoltz 20 Reputation points
commented 2025-01-20T17:32:05.6533333+00:00
Tom Stoltz 20 Reputation points
0 answers

OpenEventLog returns RPC_S_SERVER_UNAVAILABLE on Windows 24H2

We have a tool that parse data from the eventlog. However this has stopped working to access remote servers when run Windows 24H2 machines, with either of the following errors: RPC_S_SERVER_UNAVAILABLE RPC_X_BAD_STUB_DATA The following 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,716 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,834 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,547 questions
asked 2024-11-13T12:07:58.58+00:00
Ljungberg, Ted 5 Reputation points
commented 2025-01-20T15:30:48.2466667+00:00
Kevin Stanush 0 Reputation points
3 answers

IUpdate2::CopyToCache method Windows 11

It seems that this method no longer works on Windows 11: https://learn.microsoft.com/en-us/windows/win32/api/wuapi/nf-wuapi-iupdate2-copytocache Interface not registered Do you have an idea?

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,716 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,547 questions
asked 2024-12-12T12:09:00.7133333+00:00
Simon Fonteneau 45 Reputation points
answered 2025-01-20T13:24:36.4066667+00:00
Simon Fonteneau 45 Reputation points
2 answers

How to avoid minimize on show desktop or peek desktop from an application.

Hi, I am trying to create a desktop widget like application which need to be visible on desktop at all times. To hide it from taskbar and alt + tab menu I am using WS_EX_TOOLWINDOW window style. The problem is the application is minimized when using Peek…

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,716 questions
asked 2024-12-06T18:42:36.9766667+00:00
Bhushan Kolhe 0 Reputation points
commented 2025-01-17T11:46:34.6766667+00:00
RLWA32 46,561 Reputation points
0 answers

After a hot or cold start of the device, a crash occurs when a third-party application calls the interface WinVerifyTrust in the system library wintrust.dll

A third-party application crashes when calling the interface WinVerifyTrust in wintrust.dll. The crash occurs in the function TppRaiselnvalidParameter of the system library ntdll.dll

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,716 questions
asked 2024-11-22T10:20:06.5866667+00:00
yang 0 Reputation points
commented 2025-01-16T16:37:19.03+00:00
Darran Rowe 1,346 Reputation points
0 answers

Issue with GetAddrInfoExW: Only Receiving IPv4 Addresses, Not IPv6

Hello, I'm using the GetAddrInfoExW function in my application to resolve both IPv4 and IPv6 addresses for a given hostname (e.g., google.com). However, I'm only receiving IPv4 addresses in the results, and I don't see any IPv6 addresses, even though I…

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,716 questions
asked 2025-01-09T12:51:37.7033333+00:00
Harshal Goyal 20 Reputation points
commented 2025-01-16T07:25:06.09+00:00
Jeanine Zhang-MSFT 10,526 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

FCIAddFile function returns FCIERR_TEMP_FILE

While using FCIAddFile function to cab the file, FCIAddFile failed with "FCIERR_TEMP_FILE : Could not create a temporary file. Errortype = 0" followed by below error: ERROR_CODE: (NTSTATUS) 0xc0000409 - The system detected an overrun of 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,716 questions
asked 2025-01-13T07:26:26.1766667+00:00
AK_CuriousMind 20 Reputation points
edited a comment 2025-01-15T11:55:19.07+00:00
RLWA32 46,561 Reputation points
0 answers

SymFromAddr api returning 487 error code

SymFromAddr api returning 487 error codex for the following code: DWORD64 dwDisplacement = 0; char buffer[sizeof(SYMBOL_INFO) + MAX_SYM_NAME * sizeof(CHAR)]; PSYMBOL_INFO pSymbol = (PSYMBOL_INFO)buffer; pSymbol->SizeOfStruct =…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,007 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,716 questions
asked 2024-12-16T09:54:13.1066667+00:00
Ashutosh Kumar Verma 0 Reputation points
edited a comment 2025-01-15T07:18:35.6366667+00:00
Ashutosh Kumar Verma 0 Reputation points