2,425 questions with Windows API - Win32 tags

Sort by: Updated
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,425 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,382 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,496 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,425 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,496 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,649 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,425 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,535 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,425 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,425 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 9,181 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,649 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,425 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,535 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,496 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,425 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 9,181 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,425 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,362 questions
asked 2024-03-19T01:44:10.36+00:00
commented 2024-03-19T05:39:55.6566667+00:00
Crystal-MSFT 43,221 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,425 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,535 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 1,361 Reputation points Microsoft Vendor
0 answers

Why do the Text Metrics change in Print Preview?

I am working on an old C++ WIN32 application using mfc in VS2022. The application generates a complex report that can be displayed or printed. In order to calculate where the page breaks will be in the printed version, the Draw() function is called 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,425 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,535 questions
asked 2024-03-12T14:18:15.74+00:00
RichardWhiteside-8349 6 Reputation points
commented 2024-03-18T06:27:09.65+00:00
Minxin Yu 10,031 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Doubts about the window of "program manager"

LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch(uMsg) { case WM_DESTROY: SetParent(hProgman, NULL); UpdateWindow(hProgman); UpdateWindow(hDefView); …

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,425 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,535 questions
asked 2023-10-09T14:53:11.8033333+00:00
Rer 80 Reputation points
commented 2024-03-15T04:04:56.83+00:00
Lee, Kang 0 Reputation points
1 answer

C++ screenshot using DXGI DuplicateOutput of screen is missing Game Bar drawn areas

It seems that the DXGI DuplicateOutput API fails to capture the Windows Game Bar drawn area. Similarly, none of the Game Bar widgets are included in captured screenshots. Why is this happening? Isn't DuplicateOutput supposed to cover all visible area on…

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,425 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,535 questions
asked 2024-03-12T21:10:55.57+00:00
Laszlo Oberlander 5 Reputation points
commented 2024-03-14T19:15:11.9833333+00:00
Laszlo Oberlander 5 Reputation points
3 answers

Windows 10 declare COM port "access denied"

Two existing EXEs, one written in C++ and Windows SDK, one written in C# and .NET 4.5.1, suddenly cannot open COM ports, "access denied". HyperTrm.exe has no problem opening the same ports that both EXE cannot open. Some recent update for…

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,425 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.
10,271 questions
asked 2020-12-19T16:06:28.507+00:00
Frank Natoli 71 Reputation points
commented 2024-03-14T16:15:43.1533333+00:00
Alexis Hellström 0 Reputation points
1 answer

MFTranscodeContainerType_AVI not creating index...

We're trying to move away from AVIFile, so that everything goes through the Windows Media Foundation apis. It looks like there is now a "MFTranscodeContainerType_AVI" container and I can add frames to it perfectly - writes out a big raw avi, 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,425 questions
asked 2020-10-01T19:30:23.477+00:00
Jeff Roberts 21 Reputation points
commented 2024-03-14T09:46:18.5466667+00:00
FactoryX.code 0 Reputation points
0 answers

How can I know which window emits the Compositor tick event?

I have a program that can open multiple windows, and currently, I use DCompositionWaitForCompositorClock to achieve vertical sync refresh rate. However, how can I make multiple windows synchronize at different refresh rates on different monitors? For…

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,425 questions
asked 2024-03-12T07:52:29.34+00:00
峻魁 张 20 Reputation points
commented 2024-03-14T07:35:20.4933333+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How download youtube videos by WinINet?

Hi I have code in Win32/ATL that can download files very well by Wininet api, but youtube url is not just simple file link! How can I download them like youtube downloaders? Thanks

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,425 questions
asked 2023-11-13T09:59:24.7966667+00:00
drjackool 956 Reputation points
answered 2024-03-13T23:17:56.9966667+00:00
Almeda Lmedaone 0 Reputation points
0 answers

AttachThreadInput in the callback of SetWindowsHookExA makes Microsoft Pinyin IME buggy when typing fast.

When I use AttachThreadInput in the callback of SetWindowsHookExA, and use Microsoft Pinyin IME in Chinese mode, and typing really fast, the IME turns buggy. Minimal reproduction code (in rust, minified from [rdev]): #[cfg(test)] mod tests { use…

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,425 questions
asked 2024-03-01T06:56:05.26+00:00
D T 20 Reputation points
commented 2024-03-12T06:32:34.6133333+00:00
Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Bluetooth LE - Programmatically determine if a peripheral has lost its side of the bond keys

A common scenario in Bluetooth LE is for one side of a bonded pair of devices to lose their side of previously exchanged bond keys. The Bluetooth LE spec states that the peripheral shall send a LL_REJECT_EXT_IND with error code 6, "PIN or Key…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,649 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.
2,425 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,206 questions
asked 2024-03-06T21:13:47.2233333+00:00
EricP-8687 60 Reputation points
edited a comment 2024-03-11T22:06:41.6566667+00:00
EricP-8687 60 Reputation points
2 answers One of the answers was accepted by the question author.

RichEdit's text not visible when window first pops up.

#include <Windows.h> #include <Richedit.h> HWND hwnd; HWND hwnd_richedit_panel; HWND richEdit; WNDPROC oldStaticProc; HWND hwnd_green_panel; WNDPROC oldGreenProc; int WINAPI WinMain(HINSTANCE, HINSTANCE, PSTR, int); LRESULT CALLBACK…

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,425 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,535 questions
asked 2024-03-11T04:37:56.38+00:00
Francesco Amatto 45 Reputation points
accepted 2024-03-11T17:46:06.32+00:00
Francesco Amatto 45 Reputation points
1 answer One of the answers was accepted by the question author.

How to draw a border and background color to the limits of a window?

#include <Windows.h> #include <Richedit.h> HWND hwnd; HWND panel; HWND richEdit; WNDPROC oldStaticProc; int WINAPI WinMain(HINSTANCE, HINSTANCE, PSTR, int); LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT msg, WPARAM wParam, LPARAM…

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,425 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,535 questions
asked 2024-03-11T00:17:38.78+00:00
Francesco Amatto 45 Reputation points
commented 2024-03-11T17:45:19.8866667+00:00
Francesco Amatto 45 Reputation points