2,387 questions with Windows API - Win32 tags

Sort by: Updated
0 answers

Where to find missing referenced items in 'How to Play Media Files with Media Foundation'

I am trying to cut and paste the code for CPlayer in the 'How to Play Media Files with Media Foundation' tutorial. I used code from the following browser search results: 'player.h - Win32 apps' & 'player.cpp - Win32 apps' . I cannot find 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,387 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,482 questions
asked 2024-03-28T17:51:59.62+00:00
Thomas Littlepage 0 Reputation points
1 answer One of the answers was accepted by the question author.

BitBlt is too slow

Is there an analogue of copying a rectangle from the screen that works faster? Or how do I optimize it? _ = BitBlt( h_dc, 0, 0, config.rect.size.x, config.rect.size.y, h_src, config.rect.pos.x, …

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,387 questions
asked 2024-03-27T15:50:07.58+00:00
Артём Лосев 20 Reputation points
accepted 2024-03-28T16:45:28.8766667+00:00
Артём Лосев 20 Reputation points
0 answers

Exception: "Element Not Found" while calling StartDoc() in Visual Studio 2022 debugger

I am attempting to print from a Desktop application using the following APIs: StartDoc (...) StartPage (...) TextOut (...) When I run my application using Visual Studio 2022 Debugger, StartDoc() throws an exception as shown in the image below.…

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,387 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
924 questions
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
638 questions
asked 2024-03-28T09:23:17.2666667+00:00
Shyam Butani 0 Reputation points
commented 2024-03-28T10:08:03.3366667+00:00
David Lowndes 2,225 Reputation points MVP
0 answers

What does the WTS_E_EXTRACTIONPENDING HRESULT returned by IThumbnailCache::GetThumbnail mean?

Attemting to call IThumbnailCache::GetThumbnail on an dehydrated placeholder (i.e. from OneDrive or other sync programs that utilize Cloud Filter) which its thumbnail doesn't exist in the Windows Thumbnail Cache results 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.
2,387 questions
asked 2024-03-28T06:12:53.6233333+00:00
jl-syno 0 Reputation points
edited a comment 2024-03-28T08:51:04.23+00:00
Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
0 answers

Logging in to different domain using LogonUser API

Calling LogonUser before a Winforms application starts running. So if the credentials are correct the application starts and if they are wrong the application wont start. So this working fine with the user credentials for the domain my system belongs to.…

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,387 questions
asked 2024-03-20T09:37:38.5933333+00:00
Bhattacharjee, Aditya 0 Reputation points
edited a comment 2024-03-27T05:37:40.2133333+00:00
Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
2 answers

I would like to use the Windows Sensor API to acquire gyro sensor data so that the viewpoint of the camera can be moved.

I would like to use the Windows Sensor API to acquire gyro sensor data so that the viewpoint of the camera can be moved. I'm trying to do the above with Unity, is it possible? If possible, please tell me how to do it. Also, if there is another…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,417 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,387 questions
asked 2021-07-18T06:23:39.313+00:00
aa12234aa 1 Reputation point
answered 2024-03-26T10:45:48.14+00:00
HF Jensen 0 Reputation points
0 answers

How the media bitrate information is obtained in file property

The following code to query the video encoding bitrate of a media file (mp4) yields a number that deviates significantly from the value obtained by viewing it with other tools like mediainfo/ffprobe: #include <windows.h> #include…

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,638 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,387 questions
asked 2024-03-11T03:06:41.4566667+00:00
domo 0 Reputation points
commented 2024-03-26T06:22:32.0366667+00:00
Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
1 answer

Journal Playback Hooks

Good morning, I have a question about the Journal Playback Hooks (https://learn.microsoft.com/en-us/windows/win32/winmsg/journalplaybackproc). On this page I find the quote: "are unsupported starting in Windows 11 and will be removed in a future…

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,638 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,387 questions
asked 2024-03-01T13:38:46.2566667+00:00
DasElias 0 Reputation points
commented 2024-03-26T02:34:18.9066667+00:00
Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
2 answers

WaitForInputIdle

Hi everyone, I'm working on a Windows C++ application where I need to wait for a multi-threaded process to finish processing its initial. I'm aware that WaitForInputIdle from winuser.h only waits for one thread in the target process to be idle, which…

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,387 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,482 questions
asked 2024-03-22T11:18:49.5166667+00:00
2ourc3 0 Reputation points
commented 2024-03-25T09:37:36.25+00:00
Jeanine Zhang-MSFT 8,771 Reputation points Microsoft Vendor
1 answer

WFP Define Filter Conditions

Can some on help me whit this. Well i try to Define Filter Conditions. Well, I'm not good to windows but i need to my goal is to access raw data from the network card.. IPv4 and IPv6 in socket IPv6 is restrict by windows so i can't work whit…

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,387 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,482 questions
asked 2024-03-18T22:20:58.6633333+00:00
Hello Junior 0 Reputation points
commented 2024-03-25T05:59:22.0166667+00:00
Jeanine Zhang-MSFT 8,771 Reputation points Microsoft Vendor
2 answers

How to Enable/Disable audio devices

Hi, I want to enable/disable audio devices listed in sound control panel (mmsys.cpl) but either through programmatically or through any power shell commands/scripts or windows internal utilities(pnputil, devcon). I tried using WMI APIs, Core Audio APIs,…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,417 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,387 questions
asked 2024-03-14T09:13:27.3433333+00:00
Ramashankar Agrahari (India) 0 Reputation points
commented 2024-03-25T05:33:03.94+00:00
Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
1 answer

How to export Windows Server logs from Event Viewer GUI

I tried to export different logs from Windows Event Viewer however in many cases, I did get values (= they are codes for some columns values) from the XML presented vue instead of values represented in the Event Viewer GUI interface. so please could 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,387 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,320 questions
asked 2024-03-20T13:10:58.0866667+00:00
Nawres Tahri 0 Reputation points
commented 2024-03-25T02:20:42.38+00:00
Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
1 answer

IMFSourceReader::ReadSample hangs randomly on ARM64

IMFSourceReader::ReadSample hangs randomly on ARM64. This happens very infrequently, but can be easily reproduced with the code below (be patient and let it run for a while). On x64 it seems to work fine, so you really need to compile it for ARM64 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.
2,387 questions
asked 2024-02-25T14:14:17.4133333+00:00
Ianier Munoz 5 Reputation points
commented 2024-03-22T05:13:30.9233333+00:00
Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
1 answer

EnumAdapters often enumerates default adapter twice on multi-GPU PC

My PC has two graphic cards, RTX A4000 and RX6400. But EnumAdapters enumrates 3 graphic cards. A4000, RX6400 and A4000 example code: Microsoft::WRL::ComPtr<IDXGIAdapter1> adapter; for (UINT adapterIndex = 0; S_OK ==…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,417 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,387 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,482 questions
asked 2022-08-06T16:43:41.893+00:00
Suguru Kitsuki 6 Reputation points
edited a comment 2024-03-21T02:23:44.01+00:00
sir yan 0 Reputation points
1 answer

Extending Media Foundation Encoder to support 10-bit video encoding

The HEVC Media Foundation Encoder in Windows will only encode 8-bit video. My GFX NVidia card also supports 10-bit HDR and alpha-mode video encoding, so I decided to create my own IMFTransform to use the NVidia SDK. I 've registered my DLL using…

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,387 questions
asked 2022-05-05T11:56:19.623+00:00
Michael Chourdakis 66 Reputation points
answered 2024-03-20T11:15:11.68+00:00
Michael Chourdakis 66 Reputation points
0 answers

RIOReceive function doesn't work (RIO using IOCP notifications)

hello. I want to using RIO for Winsock and IOCP notifications. naively writes code, source link here . I regist RIORecevie here RIO_NOTIFICATION_COMPLETION type; ... type.Type = RIO_IOCP_COMPLETION; type.Iocp.IocpHandle = hIOCP; …

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,387 questions
asked 2024-03-17T10:14:43.9733333+00:00
범종 김 0 Reputation points
commented 2024-03-20T09:11:22.2166667+00:00
Jeanine Zhang-MSFT 8,771 Reputation points Microsoft Vendor
0 answers

SSL communication to support CA Certificate(Public key certificate)

Hi for the SSL communication with the certificate for the below C/C++ code link how to support the CA certificate (public key certificate which is exported from the site info) …

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,417 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,387 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,482 questions
asked 2024-03-04T08:10:11.2166667+00:00
Harsha 0 Reputation points
commented 2024-03-20T08:14:35.23+00:00
Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
0 answers

How to use IAudioEndpoint and connect it to Audio Engine?

I want to create a new audio endpoint in user mode. So the audio player can work normally without a physical sound card. I find the API https://learn.microsoft.com/en-us/windows/win32/termserv/terminal-services-audioendpoint-api-reference. As the doc…

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,387 questions
asked 2024-03-18T13:33:22.4633333+00:00
mkckr0 0 Reputation points
commented 2024-03-20T07:39:30.1366667+00:00
Jeanine Zhang-MSFT 8,771 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Intune 을 통해 exe 파일을 배포하였으나 0x87D30067 에러가 발생합니다.

intunewin 파일 타입으로 변경하여 배포를 하였으나 0x87D30067 에러가 발생하여 문의 드립니다. 제 생각에는 설치 명령, 제거 명령 쪽에서 오류가 발생한것 같은데요 우선 제거 명령을 어떻게 설치해야할지 몰라서 아무 값이나 입력했습니다.

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,387 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,212 questions
asked 2024-03-19T01:44:10.36+00:00
commented 2024-03-19T05:39:55.6566667+00:00
Crystal-MSFT 41,761 Reputation points Microsoft Vendor
1 answer

HeapReAlloc behavior for different heaps

The behavior below is tested in Visual Studio 2022. Calling HeapReAlloc on a private heap without changing the block size results in a no-op (as one would expect) HANDLE heap = HeapCreate(0, 0, 65536); void *p = HeapAlloc(heap, 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.
2,387 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,482 questions
asked 2024-03-14T21:59:10.3233333+00:00
AndreyT 0 Reputation points
edited an answer 2024-03-19T04:10:57.5433333+00:00
Tong Xu - MSFT 521 Reputation points Microsoft Vendor