Microsoft Q&A

Windows API - Win32

1,890 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,890 questions with Windows API - Win32 tags

Sort by: Updated
2 answers

Code C unlock window with usb like usb raptor use winapi

I use visual studio code 2022 and i want to code a program to unlock my window laptop. I don't know where to start, someone can give me some function win api related to my problem? (I used to code some program basic like scan directory, find file, ... by…

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,890 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,486 questions
asked 2022-11-27T09:00:41.33+00:00
Trường Hoàng 1 Reputation point
commented 2023-01-30T18:38:11.96+00:00
Trường Hoàng 1 Reputation point
1 answer

CfApi: How to implement Streaming Mode?

I want to implement the Cloud Files drive with streaming mode support. I guess this allows building a cloud drive with higher security - no data will be kept on the client-side on disk and all file content and folder content will be automatically…

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,890 questions
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.
430 questions
asked 2021-11-20T10:09:59.357+00:00
WebDAV 101 Reputation points
commented 2023-01-30T14:37:42.3833333+00:00
Umang Mital 1 Reputation point
1 answer

GetSystemCpuSetInformation function fail in i5-13600K

Hi there. I'm expecting to divide P / E core index in my program. But when I call the GetSystemCpuSetInformation, It doesn't work. The function returned FALSE. Below is the code and envrionment CPU : 13th Gen Intel(R) Core(TM) i5-13600K (14 CPUs),…

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,890 questions
asked 2023-01-30T04:31:15.0733333+00:00
windwolf 0 Reputation points
answered 2023-01-30T09:11:16.29+00:00
Castorix31 65,366 Reputation points
1 answer

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,890 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
edited an answer 2023-01-30T07:54:59.3366667+00:00
Junjie Zhu - MSFT 5,956 Reputation points Microsoft Employee
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,890 questions
asked 2023-01-19T08:48:58.2766667+00:00
Donthu, Gangadhar 41 Reputation points
commented 2023-01-30T06:30:22.1666667+00:00
Junjie Zhu - MSFT 5,956 Reputation points Microsoft Employee
1 answer

VS C++ converting int to char (string)

Hello. I have a problem with such thing. Output is as show at the bottom of page. Can anyone know how to show text inside the edit window as number? (and how to get a number from window as text) Help pages on the internet are not readable. The output 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.
1,890 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-28T11:40:41.69+00:00
Wojciech Sobiesiak 21 Reputation points
edited the question 2023-01-30T05:08:21.13+00:00
Tianyu Sun-MSFT 12,846 Reputation points Microsoft Employee
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,890 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,890 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,890 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,890 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,890 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,366 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,890 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,890 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,923 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,890 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,890 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,923 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,890 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.
133 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,366 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,890 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.
133 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,939 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,890 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,890 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,486 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 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,890 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.
133 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,961 Reputation points