2,502 questions with Windows API - Win32 tags

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

How to use VirtualAlloc2 memory api

Encountered a problem while compiling, error LNK2019: unable to resolve external symbols __imp_VirtualAlloc2. But VirtualAlloc is fine.

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,502 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,618 questions
asked 2020-10-17T06:33:49.107+00:00
Akali 21 Reputation points
accepted 2020-11-08T02:05:07.64+00:00
Akali 21 Reputation points
0 answers

Reporting hydration errors to Clould Filter

I'm trying to simulate transfer data errors with ClouldMirror sample setting opParams.TransferData.CompletionStatus = STATUS_UNSUCCESSFUL when calling CfExecute. However, my explorer status icon remains "sync in progress" forever. What is 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,502 questions
asked 2020-11-06T08:59:53.53+00:00
MikeB 1 Reputation point
1 answer One of the answers was accepted by the question author.

How to draw on a full screen but show drawing on a specific rectangle/window? (C++)

Hi, I have a window. I want to draw inside the window (with a pen, like in paint), but I don't want to have the drawing to be attached to the window, i.e. I don't want the drawing to move with the window, when the window is moved. I would like 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,502 questions
asked 2020-10-30T11:22:01.713+00:00
Davit 136 Reputation points
accepted 2020-11-05T13:54:16.917+00:00
Davit 136 Reputation points
2 answers One of the answers was accepted by the question author.

IXAudio2MasteringVoice error when enclosed in a ComPtr : 'Release': is not a member of 'IXAudio2MasteringVoice'

I'm following XAudio2 tutorial from Microsoft: https://video2.skills-academy.com/en-us/windows/win32/xaudio2/how-to--initialize-xaudio2 I'm on Windows 8.1 x64, Visual Studio 2017. This is my code: #include "com_initializer.h" #include…

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,502 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,618 questions
asked 2020-10-21T13:52:10.857+00:00
KeyC0de 31 Reputation points
accepted 2020-11-04T10:59:57.897+00:00
KeyC0de 31 Reputation points
2 answers One of the answers was accepted by the question author.

How to avoid SetCurrentProcessExplicitAppUserModelID causing duplicating of the taskbar icon?

Hi! I edited the official Microsoft sample of using custom Jump Lists in that way it invokes SetCurrentProcessExplicitAppUserModelID system call right when wWinMain started. Then if I pin the built application to the taskbar and run it, 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.
2,502 questions
asked 2020-10-30T10:30:06.03+00:00
Nikita Provotorov 21 Reputation points
accepted 2020-11-03T17:35:12.42+00:00
Nikita Provotorov 21 Reputation points
3 answers

IMFPMediaPlayer (Microsoft Media Foundation)

Dear All, I am currently involved with the application of a video playback application using the Microsoft Media Foundation. The Media Foundation API requires the usage of the header mfplay.h. More info can be found here:…

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,502 questions
asked 2020-10-21T09:02:19.807+00:00
MChulek 1 Reputation point
answered 2020-11-03T16:31:44.277+00:00
Roman R 331 Reputation points
0 answers

OpenEventLog rc = 1783 on Windows Server 2019

Hello. I am creating a program that reads the Windows Event log, but when I run it on Windows Server 2019, there are always cases where it fails with OpenEventLog rc = 1783. (This occurs when acquiring the event log of another Windows machine from…

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,502 questions
asked 2020-10-15T15:25:28.773+00:00
Kuri55 21 Reputation points
commented 2020-11-03T13:02:03.517+00:00
Kuri55 21 Reputation points
1 answer

How to obtain the network access destination using Windows API?

Hello, I want to monitor the destination of network access in my system, such as destination IP, domain and so on. But I can't find a Windows API to help me achieve it. In some other articles, I find that I can capture the network log by the third…

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,502 questions
asked 2020-11-03T08:42:55.1+00:00
Zhu Jeremy 1 Reputation point
commented 2020-11-03T12:20:59.343+00:00
Castorix31 82,846 Reputation points
3 answers

How to disable both the Recent and Frequent categories of a custom Jump List (ICustomDestinationList)

Hello! When I create instance of ICustomDestinationList , then start the Jump Lists's building session via ICustomDestinationList::BeginList, then DO NOT invoke ICustomDestinationList::AppendKnownCategory, then end the building session via…

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,502 questions
asked 2020-10-23T04:10:49.93+00:00
Nikita Provotorov 21 Reputation points
commented 2020-11-03T02:36:27.093+00:00
Rita Han - MSFT 2,161 Reputation points
1 answer

Getting a Specific Server (CA?) Ceritificate (most recently installed, specifically) from CA Store

I have a web server app I wrote in C++ that I had a Let's Encrypt certificate issued for. I was using it by copy-pasting the contents into a header file, but I want to try to loading the certificate from the server store so I installed it to the CA…

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,502 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,618 questions
asked 2020-10-26T23:00:33.007+00:00
Osman Zakir 121 Reputation points
commented 2020-11-03T02:30:54.497+00:00
Rita Han - MSFT 2,161 Reputation points
1 answer One of the answers was accepted by the question author.

Win32Api Network Adapter set Power Managament

Hello! I want to change Network adapter's power managament settings. I want to check 3 checkboxes. I searched this on google but i couldn't successfull. I changed…

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,502 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,618 questions
asked 2020-10-31T13:30:49.527+00:00
Emre Demircan 21 Reputation points
commented 2020-11-01T14:08:26.99+00:00
Emre Demircan 21 Reputation points
2 answers One of the answers was accepted by the question author.

Advice on the best suited architecture for our application

We are developing an application which needs to communicate to displays and a cloud server. Since we need to run the application when nobody is logged in, we run our application as Windows Service. However, we also need to be able to show a UI and talk…

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,502 questions
asked 2020-10-28T11:08:41.62+00:00
Vannoote, Frederik 21 Reputation points
commented 2020-10-31T02:39:56.693+00:00
Sean Liming 4,511 Reputation points
1 answer One of the answers was accepted by the question author.

obtain the camera privacy of the application

How to obtain the camera privacy of the application through C++ programming? Is there a callback after the camera privacy setting?

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,502 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,618 questions
asked 2020-10-26T13:12:13.217+00:00
大山 孙 21 Reputation points
accepted 2020-10-30T08:52:02.453+00:00
大山 孙 21 Reputation points
2 answers

How to correctly use CertFindCertificateInStore with needed parameters

I marked the other question as solved because I figured that just knowing what function to use is enough for it. But I still need to know how to correctly use that function and how to pass it the information I need to pass it, so I decided to open a 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,502 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,618 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,775 questions
asked 2020-10-28T14:41:02.897+00:00
Osman Zakir 121 Reputation points
commented 2020-10-29T08:16:43.85+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

Under what license is the Win32 API (sepecifically GDI+) is distributed?

Recently, I used parts of the Win32 API (GDI+) in my C++ project. Although I tried to find the license of the Win32 API or GDI+, unfortunately I couldn't find any. My questions are the following: Under what license is GDI+ distributed? 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,502 questions
asked 2020-10-28T02:00:22.687+00:00
SuperKogito 1 Reputation point
answered 2020-10-28T06:54:32.933+00:00
Fei Xue - MSFT 1,111 Reputation points
1 answer One of the answers was accepted by the question author.

Error code for WSAGetLastError function

When WinSock's Bind function fails, the The error code obtained by the WSAGetLastError function is recorded in the log file. In that error log, the error code "204" is recorded as an error code, and I'm investigating what that error code…

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,502 questions
asked 2020-10-27T04:35:54.307+00:00
和夫 新田 21 Reputation points
accepted 2020-10-27T07:48:42.223+00:00
和夫 新田 21 Reputation points
1 answer

DirectX 11 No Members Found in DXGI_SWAP_CHAIN_DESC

Hello, I am an Beginner to Direct11, I Dont know Why Visual Studio Intellisense tell me No Members found This is my Direct3dcpp file #include "Direct3d.h" #include <cstdint> #include <dxgi.h> #pragma…

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,502 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,618 questions
asked 2020-10-24T14:38:04.263+00:00
MMS 27 1 Reputation point
answered 2020-10-24T15:13:50.783+00:00
Castorix31 82,846 Reputation points
1 answer

Create IDXGISurface from array ID3D11Texture2D

I am trying to get HW accelerated video decoding to work in an UWP app. When using D3D11, my decoder will return a ID3D11Texture2D and an index. The texture has an ArraySize of 28. For rendering samples into UWP, I need to convert the texture to 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,502 questions
asked 2020-08-10T20:15:30.447+00:00
Lukas F 6 Reputation points
commented 2020-10-23T06:44:50.617+00:00
Roman R 331 Reputation points
0 answers

Unable to read a specific file H.264 file using Media Foundation Library (Application stall)

I am from MathWorks and using the Media Foundation Library for reading video files on Windows from MATLAB. Recently, a customer of ours reported a H.264 video file that is stalling MATLAB when reading the file. Debugging our code showed that the method…

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,502 questions
asked 2020-10-20T21:35:33.197+00:00
Upanita Goswami 1 Reputation point
commented 2020-10-23T06:36:42.773+00:00
Roman R 331 Reputation points
3 answers

Media Foundation crash under Windows 10 only with some ASF files

Here is a minimal project that exhibits a bug of MSMF (Microsoft Media Foundation) when decoding some ASF files. The code just opens an ASF, parse the samples to get the timestamps, then reparse the samples to decode them as RGB. It runs flawlessly…

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,502 questions
asked 2020-09-17T11:22:56.417+00:00
Pierre Chatelier 81 Reputation points
answered 2020-10-22T19:43:53.307+00:00
Pierre Chatelier 81 Reputation points