Microsoft Q&A

Windows API - Win32

1,888 questions

A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.

Browse all Windows tags

1,888 questions with Windows API - Win32 tags

Sort by: Updated
3 answers

CaptureEngine Error 0x80070005 (access is denied)

Hi all, I'm trying the CaptureEngine example from the classic examples but I got the error : MF_CAPTURE_ENGINE_EVENT: {219992BC-CF92-4531-A1AE-96E1E886C8F1} (hr = 0x80070005) Ausnahme ausgelöst bei 0x76B1CA42 (KernelBase.dll) in…

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.
1,888 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.
2,617 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,240 questions
asked 2022-08-19T12:32:27.483+00:00
the_real_boiler 21 Reputation points
edited an answer 2023-01-29T11:20:37.9033333+00:00
Tony 61 Reputation points
1 answer One of the answers was accepted by the question author.

How to make cursor pointer hidden?

Hi, Is there any way I can access this feature? I want to make visible or hidden (indicator) manually in certain time period. what I can find to this is this post but using the registry doesn't seem to have an immediate effect. Thanks 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.
1,888 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.
2,617 questions
asked 2023-01-28T10:44:16.65+00:00
DangDKhanh-2637 706 Reputation points
commented 2023-01-28T13:56:59.96+00:00
DangDKhanh-2637 706 Reputation points
1 answer

Windows Portable Devices can't re-create directory after deletion

Hi, I am using the documentation provided here: [https://learn.microsoft.com/en-us/windows/win32/wpd_sdk/wpd-application-programming-interface to create an interface to portable devices (Android device and memory sticks). I have implemented the provided…

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.
2,617 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.
1,888 questions
asked 2023-01-26T16:19:53.83+00:00
Guillaume Doucet 0 Reputation points
commented 2023-01-27T12:18:52.3666667+00:00
Guillaume Doucet 0 Reputation points
3 answers

SetWindowPos scaling behaviour with WS_EX_LAYERED windows

I've written an application on Windows 10 19042.964 which shows four transparent windows (i.e. with WS_EX_LAYERED set) in a square configuration. These windows move back and forth between two external displays with different DPI settings. The primary…

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.
1,888 questions
asked 2021-05-04T18:09:56.153+00:00
reuk 6 Reputation points
answered 2023-01-27T11:01:44.5+00:00
Yusuf Ramazan Karagöz 0 Reputation points
3 answers

Taskbar Auto hide is enabled

Automatically hide the open state, the mouse moves up, will pop up the taskbar, how to make it always pop up state? (and how to remain hidden),

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.
1,888 questions
asked 2023-01-17T04:53:23.4633333+00:00
XUWANBIN 181 Reputation points
commented 2023-01-27T10:20:18.41+00:00
Castorix31 65,331 Reputation points
0 answers

Timestamp from the llTimestamp is not same as PTS from hardware

Hi, I am using Microsoft Media foundation to capture H264 data in a asynchronous mode. The llTimestamp value coming through SourceReaderCB::OnReadSample() is not showing the PTS time sent from the hardware. Please let me know how do I get PTS? Nor 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.
1,888 questions
asked 2023-01-19T08:48:58.2766667+00:00
Donthu, Gangadhar 41 Reputation points
commented 2023-01-27T03:47:15.39+00:00
Donthu, Gangadhar 41 Reputation points
2 answers

Win Device Geolocation

Hi there, I was reading on API guide on Windows.Devices.Geolocation https://learn.microsoft.com/en-us/uwp/api/Windows.Devices.Geolocation?view=winrt-22621. It mentioned that device will estimate a position from beacons like Wi-Fi access points…

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.
1,888 questions
Universal Windows Platform (UWP)
asked 2022-11-16T20:06:40.663+00:00
rawcy 1 Reputation point
commented 2023-01-26T22:52:54.3466667+00:00
rawcy 1 Reputation point
2 answers One of the answers was accepted by the question author.

Media Foundation Wrong Size for Video

CComPtr<IMFSourceReader> r; CComPtr<IMFMediaType> NativeMT; MFCreateSourceReaderFromURL(L"file.mp4" 0, &r); r->GetCurrentMediaType((DWORD)MF_SOURCE_READER_FIRST_VIDEO_STREAM, &NativeMT); UINT wi = 0,he = 0; …

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.
1,888 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,909 questions
asked 2022-12-19T20:04:58.193+00:00
Michael Chourdakis 61 Reputation points
accepted 2023-01-26T17:21:48.1766667+00:00
Michael Chourdakis 61 Reputation points
1 answer

Whether full-screen message events can be detected

Can I register a message? Let me know when something else goes full screen. Tells the taskbar to restart, as with RegisterWindowMessageW(L"TaskbarCreated")

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.
1,888 questions
asked 2023-01-23T07:14:28.3066667+00:00
XUWANBIN 181 Reputation points
commented 2023-01-26T09:26:48.9166667+00:00
Junjie Zhu - MSFT 5,956 Reputation points Microsoft Employee
0 answers

Credential Provider not working for Windows 2012 R1 Standard Server

Hey,one issue i'm seeing with windows 2012 r1 standard server is that the ICredentialProvider::GetFieldDescriptorAt method isn't getting called at logon which is causing a blank logon screen with fields not getting populated. All other methods under…

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.
1,888 questions
asked 2023-01-12T21:36:23.21+00:00
Tyagi, Nikhil 5 Reputation points
commented 2023-01-25T19:09:56.89+00:00
Tyagi, Nikhil 5 Reputation points
2 answers One of the answers was accepted by the question author.

How can I enable Microsoft spatial audio with code?

Hi I'm reasearching Microsoft spatial audio (Windows, XBox series X). When I search for "How to enable Microsoft spatial sound", I always get methods with UI. https://learn.microsoft.com/en-us/windows/win32/coreaudio/spatial-sound Can I do…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,909 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.
1,888 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.
2,617 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.
126 questions
asked 2023-01-19T06:38:41.6266667+00:00
Huijae 20 Reputation points
commented 2023-01-25T07:44:19.53+00:00
Castorix31 65,331 Reputation points
1 answer One of the answers was accepted by the question author.

How to detect Windows Application Dark mode

What is the way to detect windows application dark mode setting (If it is dark or light), in a C# WPF application. Settings > Personalization > Colors > “Choose your default app mode” Screenshot from Windows 10 operating system. I am aware of…

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.
1,888 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.
126 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,172 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.
6,923 questions
asked 2023-01-17T13:57:13.0533333+00:00
Deshmukh, Gaurav 30 Reputation points
commented 2023-01-25T05:04:29.7633333+00:00
Deshmukh, Gaurav 30 Reputation points
1 answer One of the answers was accepted by the question author.

Self closing Modeless dialog open from Modal Dialog switches Active Window in Windows.

I have a Multiple document application. From a menu / toolbar I open a Modal Dialog. From this Modal Dialog , I open a Self Closing Modeless dialog. Self Closing Modeless dialog : When the dialog is made inactive : handle WA_INACTIVE message : then 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.
1,888 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.
2,617 questions
asked 2023-01-17T08:57:36.43+00:00
Swapnil Prajapati 20 Reputation points
commented 2023-01-25T05:01:13.1366667+00:00
Swapnil Prajapati 20 Reputation points
3 answers

SetWindowDisplayAffinity on windows 11

Hiding windows from screen capture in windows 10 is a breeze SetWindowDisplayAffinity() with WDA_EXCLUDEFROMCAPTURE and WDA_MONITOR doesn't work on firefox and chrome, but does work on notepad for example (as far as I tested) What changed in windows…

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.
1,888 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.
2,617 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,482 questions
Windows 10 Compatibility
Windows 10 Compatibility
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Compatibility: The extent to which hardware or software adheres to an accepted standard.
369 questions
asked 2022-01-18T19:34:59.073+00:00
sickl8 41 Reputation points
answered 2023-01-24T15:01:27.5233333+00:00
George Taylor 0 Reputation points
2 answers

Win32 remove Titlebar but keep Decorations (Border, Shadow, Rounded Corners)

I'm trying to create a Windows Application via the Windows Api (Win32). I want to remove the Windows Titlebar, but keep other Decorations (Border, Shadow, Rounded Corners). I have tried quite a few combinations of window styles, but cant get it to work.…

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.
1,888 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.
126 questions
asked 2023-01-21T15:42:20.18+00:00
Flurin Brühwiler 1 Reputation point
answered 2023-01-24T09:24:05.85+00:00
Limitless Technology 8,871 Reputation points
0 answers

Netusergetinfo API works only if the user has Admin or group access. Is there any other Microsoft API which works without this privileges?

In general, the user must have admin access or group access for using Windows Active Directory. From customer log, we confirmed that they do not have such access.  Since the user do not have the privileges, it fails in the NetUSerGetInfo API call and…

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.
1,888 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.
2,617 questions
asked 2023-01-20T13:54:03.3033333+00:00
Cmp Sowmya 0 Reputation points
commented 2023-01-24T02:56:13.91+00:00
Junjie Zhu - MSFT 5,956 Reputation points Microsoft Employee
1 answer

CFAPI documentation for placeholder compatibility mode

Hi I have a question regarding the PEB flag PlaceholderCompatibilityMode which is set by cldflt for each process on start. And if the process image is placed in the Windows folder then mode is auto-set to PHCM_EXPOSE_PLACEHOLDERS otherwise…

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.
1,888 questions
asked 2023-01-06T03:31:23.17+00:00
Mikhail Mamedov 1 Reputation point
commented 2023-01-23T17:02:51.37+00:00
Mikhail Mamedov 1 Reputation point
1 answer One of the answers was accepted by the question author.

How to create a shortcut for Store app on desktop?

I know that I can create a shortcut for a Store app with 'explorer.exe' and 'shell:AppsFolder<AppUserModelId>' as argument, but then I have the explorer icon. If I set the icon to the AppInfo.Package.Logo.AbsolutPath, I have an empty white icon in…

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,172 questions
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.
1,888 questions
asked 2023-01-21T13:49:11.01+00:00
Heiko 716 Reputation points
accepted 2023-01-23T15:38:23.7033333+00:00
Heiko 716 Reputation points
1 answer One of the answers was accepted by the question author.

How to set text cursor at coordinate?

Hi, Let's say I have text strings as shown. how do I move cursor to the specify characters? The boxes can be controls in an application example mfc, chrome,... I tried using SetConsoleCursorPosition but the result always returns 0, is that the right…

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.
1,888 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.
2,617 questions
asked 2023-01-22T23:34:18.7466667+00:00
DangDKhanh-2637 706 Reputation points
commented 2023-01-23T12:08:04.92+00:00
DangDKhanh-2637 706 Reputation points
0 answers

chm file shows script error , when opening through function call HtmlHelpW

I am using windows 11 machine and I have an ".chm" file which opens perfectly fine when opened in explorer and all the links inside .chm file are also working fine , but when i am trying to open the same file using HtmlHelpW in MFC c++…

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.
1,888 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.
2,617 questions
asked 2023-01-19T09:29:02.78+00:00
Jayaram666 0 Reputation points
edited a comment 2023-01-23T06:43:37.0866667+00:00
Minxin Yu 3,091 Reputation points Microsoft Employee