2,492 questions with Windows API - Win32 tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Question about KEYBDINPUT structure

I'm reading this article: https://video2.skills-academy.com/en-us/windows/win32/api/winuser/ns-winuser-keybdinput In the Remarks part, it says that "The virtual key value of a key may alter depending on the current keyboard layout or what other keys…

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,492 questions
asked 2020-09-09T09:48:27.373+00:00
Xiaodong Hu 21 Reputation points
accepted 2020-09-10T06:49:14.813+00:00
Xiaodong Hu 21 Reputation points
2 answers

How to update pinned file (cfapi)?

I am using the Cloud Files API. Here is my scenario: Files are synchronized from server to client. One file is pinned. The pinned file is changed on the server. The server notifies the client that the pinned file is modified. Now how do 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,492 questions
asked 2020-08-18T04:29:36.543+00:00
WebDAV 21 Reputation points
commented 2020-09-10T02:24:31.713+00:00
Fei Xue - MSFT 1,111 Reputation points
2 answers One of the answers was accepted by the question author.

A midi controller in a desktop program freezes the graphic controls, though they still function

I have made a music program in Visual Studio for Windows with C and Fmod that contains a graphical keyboard, a selection of sound files etc., and which also contains a midi controller. I use the midi controller by connecting a midi keyboard to 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,492 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 2020-08-28T10:56:33.447+00:00
Keitel 61 Reputation points
accepted 2020-09-09T11:22:27.01+00:00
Keitel 61 Reputation points
0 answers

How do I limit the length of text that can be entered in the Text Services Framework?

I am trying to use the Text Services Framework to implement the function to enter player names for a game. I want to set the maximum length of text that can be entered to the length of the player's name. I was able to ignore alphanumeric characters…

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,492 questions
asked 2020-09-08T10:03:30.007+00:00
tomoki kawasaki 1 Reputation point
commented 2020-09-09T03:08:14.633+00:00
Rita Han - MSFT 2,161 Reputation points
1 answer

How to get the category of Windows Update logs?

Hi, In Window10, the Windows Update is divided into different categories, such as featrue updates, quality updates etc. The capture of Windows Update History page in system is below: I have already known that I can get the list of updates…

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,492 questions
asked 2020-09-02T10:35:32.63+00:00
Zhu Jeremy 1 Reputation point
commented 2020-09-08T02:05:46.89+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

Is it possible to encrypt a non-multiple of 16 bytes when chaining BCryptEncrypt calls using AES in GCM mode?

Is it possible, using Windows CNG API and AES in GCM mode, to encrypt a buffer of data with a size that is not a multiple of 16 bytes (128 bits) when chaining is enabled? When I try to pass a buffer of 60 bytes to the BCryptEncrypt function with chaining…

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,492 questions
asked 2020-09-04T12:48:02.727+00:00
louise 1 Reputation point
commented 2020-09-07T10:09:47.313+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

C++ crash when deleting file after unload from LoadLibrary (custom deleyloading) Help

I unpack dll files from application (when it start) and use load helper for delayloading. That means, I load dll with LoadLibrary from helper function. After app exit I want delete the extracted dlls from app. I unload dll with helper function…

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,492 questions
asked 2020-08-29T18:16:00.293+00:00
Code Wanderer 396 Reputation points
commented 2020-09-07T08:23:38.333+00:00
RLWA32 42,366 Reputation points
1 answer

BluetoothFindNextDevice can't find BLE device

BluetoothFindNextDevice and BluetoothFindFirstDevice functions can't find BLE mouse. I am sure the mouse is in discovering state. I can find the mouse via System Settings-> Bluetooth. How to find BLE device programmatically?

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,492 questions
asked 2020-09-01T10:19:35.99+00:00
猿小白 1 Reputation point
commented 2020-09-04T05:31:11.113+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

dxva2 decode h264 output format

when I use dxva2 decode h264 in ffmpeg,the output format in surface sometimes is nv12,and sometime is nv21,how can I know which format is .D3DSURFACE_DESC Format is same.

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,492 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 2020-08-30T06:03:49.01+00:00
老周 杂家 1 Reputation point
commented 2020-09-02T09:15:59.23+00:00
Rita Han - MSFT 2,161 Reputation points
0 answers

dxva2 decode h264

when I use dxva2 decode h264,CreateDevice success when cable connect monitor,otherwise CreateDevice return fail when turn off monitor。video card is nvidia ti 1080. why?

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,492 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 2020-08-30T06:14:34.007+00:00
老周 杂家 1 Reputation point
commented 2020-09-02T08:19:36.59+00:00
Rita Han - MSFT 2,161 Reputation points
0 answers

waveInPrepareHeader()/waveInAddBuffer() is not returning anything its getting struck only for motorola manufactured dekstop mics and only if the mic is not a system default mic

Hi Team, We are using windows mmeapi's for capturing the PCM data from mic device from very long time about 5 years. We are familial with the API's and usage and capturing the PCM data from mic with winmm API's. We are opening the device(Motorola…

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,492 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 2020-08-31T16:19:41.49+00:00
yugandhar saadili 1 Reputation point
commented 2020-09-02T03:24:29.51+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

MAPI32.dll throws errorEither there is no default mail client

Hi@Anonymous , I have a problem with mapi32.dll Version 1.0.2536 (Product-Version 10.0.18362.145) --> I get the message 'Either there is no default mail client....' when I run the following little test programm: The "crashing"-method 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,492 questions
asked 2020-08-20T12:22:23.47+00:00
Frank8472 1 Reputation point
commented 2020-09-01T12:59:52.717+00:00
Dave Patrick 426.4K Reputation points MVP
0 answers

LDAP search functions null base

Hello! The documentation (https://video2.skills-academy.com/en-us/windows/win32/api/winldap/nf-winldap-ldap_search_s) states that the base parameter is Pointer to a null-terminated string that contains the distinguished name of the entry at which to start 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,492 questions
asked 2020-08-24T17:45:24.833+00:00
Andrei Nacu 1 Reputation point
commented 2020-09-01T03:28:57.537+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
1 answer

How to set my .net Win32 Desktop forms to fit Windows 10 Light and Dark theme?

In Windows 10, after set to dark theme, why my Win32 Desktop .net program will not convert to dark mode? thank 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.
2,492 questions
asked 2020-08-21T08:54:25.147+00:00
Steven Young 261 Reputation points
commented 2020-09-01T03:27:34.937+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
1 answer

how to get the cpu usage by window api

i want to monitor the windows system cpu usage using c/c++ code which api can i use and how to get the cpu usage?

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,492 questions
asked 2020-08-18T12:47:17.713+00:00
Li, Cindy 1 Reputation point
commented 2020-09-01T03:26:21.187+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
0 answers

Programmatically register a SystemPropertyHandler

In general, property handlers are registered at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers. However, for some file types, there are special handlers that are registered at…

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,492 questions
asked 2020-08-19T01:01:12.59+00:00
loop123123 1 Reputation point
commented 2020-09-01T03:24:06.943+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
0 answers

VideoProcessorMft color issue

I use Video Processor MFT to convert nv12 to rgba format, and found that, on a AMD device, the converted color is darker than source.While on intel or NVIDIA device, it feels just like the source.

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,492 questions
asked 2020-08-20T08:00:39.647+00:00
tiff yuan 1 Reputation point
commented 2020-09-01T03:23:25.31+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
1 answer

MSDN Forum: cpu usage caculated by windows API is not same as the value in task manager

below is my code, but the cpu usage caculated by the code is not the same as the value in task manager. Could someone tell me where is wrong, thanks? include <iostream> include <Windows.h> static bool getSystemCPUTime(ULONGLONG…

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,492 questions
asked 2020-08-18T11:47:14.933+00:00
Li, Cindy 1 Reputation point
commented 2020-09-01T03:17:13.303+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
1 answer

How can I create a IMFBytestream out of a memory block which has audio data ?

Hi I've setup TCP server/client in Windows 10. TCP server that sends uncompressed audio data to TCP client. In TCP Client, I would like to play received audio in Windows audio output device. I am planning to use Windows Media Session APIs as…

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,492 questions
asked 2020-08-10T07:56:19.733+00:00
Shakthi Prashanth 1 Reputation point
commented 2020-09-01T03:15:19.817+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor
0 answers

Windows Portable device event monitoring using MFC C++

I need to develop an application to monitor events on Portable devices using C++ MFC. I'm using WPD API for the same. But encountering a few issues. I am not getting the Filename in case of the delete operation. and also not able to register for more…

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,492 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 2020-08-08T19:28:37.127+00:00
Aparna S A 6 Reputation points
commented 2020-09-01T03:12:49.357+00:00
Zhanglong Wu-MSFT 261 Reputation points Microsoft Vendor