2,491 questions with Windows API - Win32 tags

Sort by: Updated
0 answers

Documentation clarification for MF_MT_AUDIO_AVG_BYTES_PER_SECOND for AAC encoder

The documentation here: https://video2.skills-academy.com/en-us/windows/win32/medfound/aac-encoder States that for AAC encoding the valid values for **MF_MT_AUDIO_AVG_BYTES_PER_SECOND **are 12000, 16000, 20000, 24000. It then says that * 6 those values should…

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,491 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,608 questions
asked 2024-06-19T03:01:32.6166667+00:00
mb 0 Reputation points
commented 2024-06-20T02:54:33.68+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
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.
11,033 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,491 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.
694 questions
asked 2024-06-19T09:27:31.26+00:00
Deepan Negi 0 Reputation points
commented 2024-06-19T16:21:42.9866667+00:00
David Lowndes 2,470 Reputation points MVP
1 answer One of the answers was accepted by the question author.

Not able to create new object of DesktopWindowXamlSource after closing one

Hi, I'm working on Win32 application with Xaml Island. I'm facing the issue with DesktopWindowXamlSource. If I create two objects of DesktopWindowXamlSource, it's working as expected. However, If I create one object and close it using Close() method.…

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.
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,491 questions
asked 2024-06-18T05:49:24.7766667+00:00
Shyam Butani 160 Reputation points
accepted 2024-06-19T10:05:39.8833333+00:00
Shyam Butani 160 Reputation points
2 answers One of the answers was accepted by the question author.

How can I be sure my Windows desktop application is signed with a timestamp?

We use DigiCert to create certificates for our Windows desktop apps. The certificate expires in June, and I want to make sure this won't impact the users on the existing versions they use, and the digital signature on the file will remain valid even…

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,491 questions
asked 2024-05-21T09:24:04.67+00:00
Ahinoam Tayari Dvir 20 Reputation points
commented 2024-06-19T07:39:13.1066667+00:00
Ahinoam Tayari Dvir 20 Reputation points
2 answers One of the answers was accepted by the question author.

Direct2D drawing quality is inconsistent

This is the result drawn in the window(HwndRenderTarget) This is the result of drawing in WicBitmapRenderTarget

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,491 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,608 questions
asked 2024-06-17T03:24:16.3466667+00:00
HoWe Yu 41 Reputation points
accepted 2024-06-18T17:43:56.8966667+00:00
HoWe Yu 41 Reputation points
1 answer One of the answers was accepted by the question author.

How do i get information about language settings, codepageinfo from WINAPI?

I'm trying to get information about the Windows language settings. In Windows 11, how can I get information about the language settings on Windows and what information do I need to get? I've found "winnls.h", and am referencing it but i have 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,491 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,744 questions
asked 2024-06-16T05:17:21.4566667+00:00
손 상현 20 Reputation points
accepted 2024-06-18T08:44:09.36+00:00
손 상현 20 Reputation points
0 answers

Finding window element using MSAA

I'm trying to detect the "Previous" and "Next" buttons of the Spofity MiniPlayer window using MSAA, however, sometimes these buttons don't get detected, I don't understand why, it's like luck, I need to reopen the window uncountable…

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,491 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,608 questions
asked 2024-06-14T20:07:42.4333333+00:00
Laila 0 Reputation points
commented 2024-06-18T07:55:27.1+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
1 answer

When will `CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE` be invoked

When the user clicks Free up space in the Explorer menu, CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE and CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE_COMPLETION are not invoked. In the Cloud Mirror Sample, it uses ReadDirectoryChangesW and checks FILE_ATTRIBUTE_UNPINNED flag…

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,491 questions
asked 2024-06-11T13:55:29.0466667+00:00
229 ho 20 Reputation points
commented 2024-06-18T05:41:11.1+00:00
Xiaopo Yang - MSFT 12,071 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

When will `CF_CALLBACK_TYPE_NOTIFY_RENAME_COMPLETION` be invoked

I am implemented CF_CALLBACK_TYPE_NOTIFY_RENAME and response successful status but CF_CALLBACK_TYPE_NOTIFY_RENAME_COMPLETION is not invoked. Is this expected or is something going wrong?

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,491 questions
asked 2024-06-15T15:23:33.56+00:00
229 ho 20 Reputation points
accepted 2024-06-18T03:13:37.9633333+00:00
229 ho 20 Reputation points
2 answers One of the answers was accepted by the question author.

Open any file

Which API to use? You can call the system to open the specified file. I tried to use the call browser to open the full path (with file://) but some files open in a non-standard way (e.g., MP3 files won't play in win11).

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,491 questions
asked 2023-01-13T11:38:22.53+00:00
XUWANBIN 201 Reputation points
commented 2024-06-17T20:29:39.25+00:00
Jessica Wood (NEXTANT LLC) 0 Reputation points Microsoft Vendor
0 answers

How to Utilize SetColor(Windows::UI::Colors::Red) from a Non-UWP and Non-C++/WinRT DLL File

Hi, I have developed a C++ DLL without utilizing UWP or C++/WinRT. Within this DLL, I am employing Windows::Devices::Lights::LampArray^ lamp to retrieve information about the lamp, such as lamp->IsConnected, lamp->LampCount, and…

Universal Windows Platform (UWP)
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,491 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,608 questions
asked 2024-06-16T19:14:55.05+00:00
sunil maurya 21 Reputation points
edited a comment 2024-06-17T09:52:58.8666667+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
2 answers

WSUSSCN2.cab file for Windows 11

I have been using a the wsusscn2.cab file and WUA in a script for years to determine the latest non-superseded applicable UpdatesIDs so that I can download them and bring them to my offline networks. Now that we are moving to Windows 11 it seems to me…

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,491 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,813 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,744 questions
asked 2024-06-13T15:51:07.07+00:00
ArmoredEmu01 0 Reputation points
answered 2024-06-17T02:23:53.45+00:00
Xiaopo Yang - MSFT 12,071 Reputation points Microsoft Vendor
2 answers

Can i use user32.dll in Windows Service ?

I need to automate mouse movement, within certain time period, for that i have wrote a Windows service with using user32.dll to automate mouse movement, it works in debug mode, but when i run it as service it doesnt seems to work. Is there any limitation…

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,491 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,550 questions
asked 2022-09-12T11:35:49.42+00:00
Jayasuriya, Pathum 26 Reputation points
commented 2024-06-15T16:49:12.88+00:00
RLWA32 42,286 Reputation points
0 answers

Swift开发,文字合成语音SDK,在文字合成语音的时候,调用speakText方法时一直在用听筒播放,请问怎么能够使用扬声器播放。

Swift开发,文字合成语音SDK,在文字合成语音的时候,调用speakText方法时一直在用听筒播放,请问怎么能够使用扬声器播放。

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,491 questions
asked 2024-06-14T07:01:00.4033333+00:00
gghl 0 Reputation points
commented 2024-06-14T08:37:19.6166667+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
1 answer

How to programatically get NPU utilization using C/C++/C#

如果一台PC有NPU,那么在Windows 11任务管理器中,“性能”页面就会显示NPU的信息(包括使用率),一般来说,这个页面显示的信息从“性能计数器(PDH)”中获取,但是我并没有找到对应的计数器。有谁知道这个NPU使用率从哪儿获取吗? If a PC has an NPU, then in the Windows 11 Task Manager, the "Performance" page will display the information of the NPU…

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,491 questions
Windows Performance Toolkit
Windows Performance Toolkit
A collection of Microsoft performance monitoring tools that produce in-depth performance profiles of Windows operating systems and applications.
96 questions
asked 2024-06-06T08:39:18.8033333+00:00
comor 0 Reputation points
commented 2024-06-14T07:50:32.4766667+00:00
Tong Xu - MSFT 2,116 Reputation points Microsoft Vendor
0 answers

BackupWrite sets lpContext to 0xFFFF.... when called with nNumberOfBytesToWrite=0 in versions after 2022

Seems like behavior of BackupWrite (https://video2.skills-academy.com/en-us/windows/win32/api/winbase/nf-winbase-backupwrite) changed after Server 2022. In versions windows 10.0.20348.2461 and before, BackupWrite when called with nNumberOfBytesToWrite=0 does…

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,491 questions
asked 2024-06-11T15:26:21.3566667+00:00
Anatol Piotrowski 0 Reputation points
commented 2024-06-12T13:16:29.62+00:00
David Lowndes 2,470 Reputation points MVP
1 answer

NotifyIpInterfaceChange function (netioapi.h) does not notify on manual DNS changes

I work on the c-ares open source asynchronous DNS library (https://c-ares.org) and we have recently added automatic configuration reloading when we detect a network configuration change has occurred. We get notifications properly when network…

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,988 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,491 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,608 questions
asked 2024-06-05T16:21:55.43+00:00
Brad House 0 Reputation points
commented 2024-06-12T08:40:04.97+00:00
Gary Nebbett 5,841 Reputation points
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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,193 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,491 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,774 questions
asked 2022-06-21T18:51:36.293+00:00
Patrick Rutherford 6 Reputation points
commented 2024-06-11T16:47:48.58+00:00
Hector Castaneda 0 Reputation points
1 answer One of the answers was accepted by the question author.

Why do I get this error when I run my project as a .DLL but not as a .EXE

I've got a .dll project in which I'm utilizing Direct 2D to draw on a window. For some reason, one line is continually giving me errors when I attempt to run it: // Create a Direct2D factory. hr = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED,…

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,491 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,608 questions
asked 2024-06-10T22:16:12.87+00:00
Forrest Crawford 60 Reputation points
commented 2024-06-11T10:31:13.3666667+00:00
David Lowndes 2,470 Reputation points MVP
1 answer

Why is my panning in Direct 2D drifting at the edge of the window?

I'm going through a windows tutorial for Direct 2D drawing a small picture on a render target and I decided to try to add pan and zoom capabilities. All is working mostly fine but I'm having an issue with the pan. My is supposed to move in sync 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,491 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,608 questions
asked 2024-06-07T01:27:46.7733333+00:00
Forrest Crawford 60 Reputation points
answered 2024-06-11T02:55:05.2066667+00:00
Xiaopo Yang - MSFT 12,071 Reputation points Microsoft Vendor