2,483 questions with Windows API - Win32 tags

Sort by: Updated
1 answer

cfapi: How to hydrate placeholder file partially

Hi, We have a requirement to partially hydrate a placeholder file based on application read request and do not want hydration of rest of the file to continue in the background. Going by the documentation on the hydration policy…

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,483 questions
asked 2023-05-16T13:17:26.65+00:00
71861387 5 Reputation points
commented 2024-06-20T17:17:54.0166667+00:00
Sharadh Rajaraman 0 Reputation points
1 answer

Veracode error with SetWindowsHookEx win API call

I am getting an Embedded Malicious Code (CWE ID 506) error while using the SetWindowsHookEx win API call and running a Veracode security scan. The error message states that this technique is typically used by rootkits or other malicious code. Can anyone…

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,483 questions
asked 2024-06-10T06:50:57.29+00:00
Aswin mc 0 Reputation points
commented 2024-06-20T09:21:11.8666667+00:00
RLWA32 42,006 Reputation points
1 answer

Taskbar (Shell_TrayWnd) Transparency like in TranslucentTB using Win32 API

I'm trying to implement transparency for the taskbar (Shell_TrayWnd) in Windows, similar to the functionality that TranslucentTB has. However, in my implementation, the problem is that elements such as the Start button, search box, and attached programs…

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,954 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,483 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,512 questions
asked 2024-06-20T07:11:29.3033333+00:00
Jacob Mordon 20 Reputation points
commented 2024-06-20T09:13:41.29+00:00
Jeanine Zhang-MSFT 9,351 Reputation points Microsoft Vendor
2 answers

Potential bug in Windows Media Foundation about seekable IMFByteStream (regression from Windows 7)

I have a minimal sample code that is using Microsoft Media Foundation It works perfectly well under W7, it fails with an error on W10+ The code : opens an existing (valid) *.avi file to create a readonly IMFByteStream tries to create an IMFMediaSource…

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,483 questions
asked 2024-06-12T10:29:40.55+00:00
Pierre CHATELIER 11 Reputation points
edited a comment 2024-06-20T07:11:33.2533333+00:00
Jeanine Zhang-MSFT 9,351 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Taskbar (Shell_TrayWnd) Alignment of items using Win32 API

Currently, I have a problem with changing the alignment of items such as Start Button, Search, Pinned items. I wrote code, which works in a Console Application, but it won't work in a WinUI 3 or UWP Packaged Desktop application because of restrictions…

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,954 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,483 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,512 questions
asked 2024-06-14T12:30:53.7566667+00:00
Jacob Mordon 20 Reputation points
accepted 2024-06-20T07:04:00.6566667+00:00
Jacob Mordon 20 Reputation points
1 answer

How to read and output the NPU utilization

Hi All How to use the following MS learning to read and output the NPU utilization. Thank you. https://learn.microsoft.com/en-us/windows/win32/api/activitycoordinatortypes/ne-activitycoordinatortypes-activity_coordinator_resource

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,483 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,512 questions
asked 2024-06-18T05:32:45.61+00:00
John Huang 0 Reputation points
commented 2024-06-20T06:43:20.45+00:00
Tong Xu - MSFT 2,116 Reputation points Microsoft Vendor
0 answers

How to obtain API keys in OneDrive

We are planning to integrate TANDA to our OneDrive so that the Qualification Documents in TANDA will be automatically synced in our OneDrive folder. This is to avoid unnecessary manual saving of files and to ensure that the file that we have is always…

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,483 questions
asked 2024-06-20T03:18:01.6733333+00:00
Gail Maurice Santos 0 Reputation points
0 answers

Documentation clarification for MF_MT_AUDIO_AVG_BYTES_PER_SECOND for AAC encoder

The documentation here: https://learn.microsoft.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,483 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,600 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,351 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.
10,975 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,483 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.
686 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,455 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.
739 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,483 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,483 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
0 answers

How to use BCryptDeriveKeyCapi with RC4 to replace CryptoAPI code

I have some old code that uses CryptoAPI to encrypt data with RC4. The legacy process is (in summary): CryptAcquireContext() CryptCreateHash("MD5") CryptHashData (password, length) CryptDeriveKey ("RC4", ) CryptEncrypt () The new…

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,483 questions
asked 2024-06-18T12:50:27.4233333+00:00
David Robinson 0 Reputation points
commented 2024-06-19T02:58:59.8866667+00:00
Jeanine Zhang-MSFT 9,351 Reputation points Microsoft Vendor
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,483 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,600 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,483 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,658 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,483 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,600 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,351 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,483 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,066 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,483 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,483 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,483 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,600 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,151 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,483 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,808 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,658 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,066 Reputation points Microsoft Vendor