2,422 questions with Windows API - Win32 tags

Sort by: Updated
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,422 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,334 questions
asked 2024-03-19T01:44:10.36+00:00
commented 2024-03-19T05:39:55.6566667+00:00
Crystal-MSFT 42,961 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,422 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,527 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,061 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,422 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,527 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,422 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,527 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,422 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,527 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,422 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,245 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,422 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,422 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,422 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,422 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,616 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,422 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,164 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,422 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,527 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,422 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,527 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
1 answer One of the answers was accepted by the question author.

Clarification on the nFlags Parameter Default Value for PrintWindow Function

Hello Community, I am currently working with the PrintWindow function for a Windows desktop application test and I came across a question regarding the nFlags parameter. I understand that this parameter can be used with the PW_CLIENTONLY flag to capture…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,616 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.
4,746 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,422 questions
asked 2024-03-08T13:39:02.4733333+00:00
Yucheng Song 41 Reputation points
commented 2024-03-11T15:17:07.64+00:00
Yucheng Song 41 Reputation points
1 answer One of the answers was accepted by the question author.

Would a one-shot timer cause a memory leak?

I created a timer queue, then created some one-shot timer using the below code: CreateTimerQueueTimer( &mut handle, self.timer_queue, Some(timer_runner), Some(ptr as _), duration.as_millis() as u32, 0, WT_EXECUTEONLYONCE, ) I have searched…

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,422 questions
asked 2024-03-08T16:10:35.4766667+00:00
峻魁 张 20 Reputation points
accepted 2024-03-11T08:05:41.84+00:00
峻魁 张 20 Reputation points
0 answers

`FormatMessage()` fails with specific system locales

On systems where the regional and language settings are derived from a common base language, e.g. English (Australia) from English (United Kingdom) or English (United States), the following call to the Windows API FormatMessageW() or FormatMessageA() 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,422 questions
asked 2024-03-07T18:41:32.6333333+00:00
Klaus Triendl 0 Reputation points
commented 2024-03-11T06:08:18.56+00:00
Tong Xu - MSFT 1,061 Reputation points Microsoft Vendor
1 answer

Is there a way to put HTML files on the screen without building them in WinUI3?

Hello, In the winUI3 project, The code I posted below is currently my project code. As you can see from the code I wrote, I tried to create an html inside the project and use webView 2 to organize the screen with the local path of the project. …

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,422 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,245 questions
asked 2024-03-07T02:09:11.04+00:00
차준혁 40 Reputation points
commented 2024-03-08T06:26:08.5433333+00:00
차준혁 40 Reputation points
1 answer One of the answers was accepted by the question author.

Does the `PrintWindow` function's behavior depend on the calling process's DPI awareness?

Hello, everyone! I am a student learning Windows programming using Python and the ctypes library. I have a question regarding the behavior of the PrintWindow function in relation to DPI awareness. I am currently working on a project that involves…

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,422 questions
asked 2024-03-06T17:03:45.01+00:00
Yucheng Song 41 Reputation points
accepted 2024-03-08T05:51:17.6566667+00:00
Yucheng Song 41 Reputation points
0 answers

compositor clock api question

Waiting on the compositor clock is done by a call to DCompositionWaitForCompositorClock(), which looks like it is probably a wrapper around something like WaitForMultipleObjects() and some compositor event object(s). Wouldn't it have been better 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,422 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,527 questions
asked 2024-02-21T00:46:30.2833333+00:00
Geoff Hale 0 Reputation points
commented 2024-03-07T19:46:09.1833333+00:00
Geoff Hale 0 Reputation points
1 answer

How can the loading speed of WebView2 be increased?

In the official WebView2 example, WebView2APISample, added code to debug output the time interval from the beginning of page loading to the completion of loading. Loading the following two websites takes more than 10 seconds each, and the debug output…

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,422 questions
asked 2024-03-04T09:03:14.9366667+00:00
si zuo 20 Reputation points
commented 2024-03-07T02:21:18.05+00:00
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor