2,660 questions with Windows API - Win32 tags

Sort by: Updated
1 answer

How to disable frame (and titlebar) but keep resizing and snap features when using SendMessage to drag the window?

I'm trying to disable the titlebar (and frame), but keep the ability to resize the window and have it so the snap layouts work when triggering SendMessage. I have the trigger work, but when I remove all the bit flags returned from GetWindowLong that gets…

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,660 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,772 questions
asked 2024-11-19T04:56:46.9233333+00:00
Stanlyhalo 0 Reputation points
edited an answer 2024-11-19T10:50:28.3066667+00:00
Castorix31 86,041 Reputation points
1 answer

UWP pipe client and C++ Fulltrustprocess pipe server - Access to the path is denied

Hello UWP experts, I get "Access to the path is denied" when connecting a UWP namedpipeclient to C++ Fulltrust process namedpipe server in packaged (WAPP) and non packaged mode. Its a simple piece of code to see how the namedpipe works betweek…

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,660 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.
11,042 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,772 questions
asked 2024-11-19T04:13:17.18+00:00
DotNET Fan 271 Reputation points
edited a comment 2024-11-19T08:54:33.23+00:00
DotNET Fan 271 Reputation points
1 answer

Can native Win32 exe show a WinUI3 Page?

I need to show a WinUI3 page from a native Win32 exe. I cannot make modifications to the Win32 exe. The architecture is like this: native Win32 .exe -> links to a C++/CLI dll with a known native C++ interface C++/CLI dll -> references and makes…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,940 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,660 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
338 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.
11,042 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,772 questions
asked 2024-11-18T15:30:26.94+00:00
Eric Brandt 0 Reputation points
commented 2024-11-19T08:15:36.26+00:00
TRANVANHUAN-7557 0 Reputation points
1 answer

Issue with IUpdateHistoryEntry2 interface

Trying to get category Ids for the installed updates on the machine. From IUpdateHistoryEntry2 we get ICategoryCollection. Which provides ICategory object on iteration. Calling get_CategoryId always returns empty. Try the same through…

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,660 questions
asked 2024-11-17T18:30:10.42+00:00
Saurabh Srivastava 0 Reputation points
commented 2024-11-18T13:25:29.1166667+00:00
RLWA32 45,701 Reputation points
0 answers

How do I query Korean keyboard's hardware keyboard type?

Hello, I'm writing an application in C++, and I want to know if the user is using 2-set type Korean or 3-set type Korean (Dubeolsik or Sebeolsik). That is, I'd like to know which option the user has chosen for this: I've looked through all the functions…

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,660 questions
asked 2024-11-10T07:58:24.8866667+00:00
Joonho Hwang 0 Reputation points
commented 2024-11-18T03:20:59.2433333+00:00
Roy Li - MSFT 33,461 Reputation points Microsoft Vendor
0 answers

OpenEventLog returns RPC_S_SERVER_UNAVAILABLE on Windows 24H2

We have a tool that parse data from the eventlog. However this has stopped working to access remote servers when run Windows 24H2 machines, with either of the following errors: RPC_S_SERVER_UNAVAILABLE RPC_X_BAD_STUB_DATA The following application…

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,660 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,772 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,988 questions
asked 2024-11-13T12:07:58.58+00:00
Ljungberg, Ted 0 Reputation points
commented 2024-11-15T05:48:12.8333333+00:00
Jeanine Zhang-MSFT 9,866 Reputation points Microsoft Vendor
0 answers

Help with Windows Named Pipes

Win32 experts, I'm writing an app that includes a master process written in C# that forks a subprocess written in Python and compiled into an exe. I am attempting to open named pipe between the two and despite working through all online tips and all…

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.
5,533 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,660 questions
asked 2024-11-13T15:36:38.7066667+00:00
Ken Gibson 0 Reputation points
commented 2024-11-14T21:34:41.0433333+00:00
Ken Gibson 0 Reputation points
0 answers

MIDL Compiler generates wrong year

Using the MIDL compiler with IDL statements to generate a .TLB file, the compiler inserts a text line into the .TLB such as: Created by MIDL version 8.01.0628 at Mon Jan 18 19:14:07 2038. The year should be the year the .TLB was created (e.g., 2024), NOT…

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,660 questions
asked 2024-11-11T17:47:47.58+00:00
RDan 0 Reputation points
commented 2024-11-12T10:26:56.32+00:00
RLWA32 45,701 Reputation points
2 answers One of the answers was accepted by the question author.

Is user32.dll has any dependency?

I want to use HDC to draw text in android. So can I copy user32.dll to android and then use HDC ? to get bitmap with some text? I will specify font and font-size

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,660 questions
asked 2024-11-07T03:17:11.1033333+00:00
mc 4,696 Reputation points
accepted 2024-11-12T07:15:54.42+00:00
mc 4,696 Reputation points
0 answers

Win32 HDC issue

I have a problem with drawing HDC outside WM_PAINT message, I draw in function with while(true) loop void quadcycle() { while(true) { hdc = GetDC(hwnd); RECT rc = {50,50,150,150}; FillRect(hdc, &rc,…

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,660 questions
asked 2024-11-06T21:47:39.6033333+00:00
someone 20 Reputation points
commented 2024-11-12T01:39:23.78+00:00
Roy Li - MSFT 33,461 Reputation points Microsoft Vendor
0 answers

why some language will change when remove some code?

in some contries language like Arab the text will change its shape when remove some of them. مرحبا I just remove last one مرحب the first will change too I remove again. مرح you can see it totally changed. حبا to ح what I want to do is to create each…

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,660 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,772 questions
asked 2024-11-08T02:58:22.0466667+00:00
mc 4,696 Reputation points
commented 2024-11-09T23:01:49.48+00:00
Darran Rowe 1,041 Reputation points
1 answer One of the answers was accepted by the question author.

how to create ID2D1Bitmap using direct2d?

how to load bitmap there is png file and how to create ID2D1Bitmap?

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,660 questions
asked 2024-11-03T15:21:44.5466667+00:00
mc 4,696 Reputation points
commented 2024-11-08T07:43:08.2366667+00:00
mc 4,696 Reputation points
0 answers

Exception Handling in Windows

Windows provides the following exception handling frameworks: Structured Exception Handling (SEH) Vectored Exception Handling (VEH) SEH is just the Windows's version of the C++ try-catch, and documentation suggests using the C++ try-catch blocks. 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,660 questions
asked 2024-10-25T07:40:37.14+00:00
CSK 1 Reputation point
commented 2024-11-08T06:01:54.98+00:00
CSK 1 Reputation point
0 answers

The behavior of the SetWindowDisplayAffinity API differs depending on the Windows 10 build version.

The behavior of the SetWindowDisplayAffinity API differs depending on the Windows 10 build version. API: SetWindowDisplayAffinity(hwnd, WDA_MONITOR); Windows 10 1909 (18363.418): Works correctly; when my dialog is captured, it turns black. Windows 10…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,760 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,660 questions
asked 2024-11-07T04:34:36.78+00:00
영준 최 0 Reputation points
commented 2024-11-07T08:05:02.7233333+00:00
Jeanine Zhang-MSFT 9,866 Reputation points Microsoft Vendor
0 answers

DXGI_ERROR_ACCESS_DENIED when trying to draw a triangle with DirectX 12

So, I'm currently working on drawing a triangle with DirectX 12 and making some helper functions for myself, but CreateCommitedResource keeps failing with DXGI_ERROR_DEVICE_REMOVED and the removal reason being DXGI_ERROR_ACCESS_DENIED. I've been…

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,660 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,772 questions
asked 2024-10-02T23:56:28.9766667+00:00
CakeDev 70 Reputation points
commented 2024-11-06T07:09:02.53+00:00
Roy Li - MSFT 33,461 Reputation points Microsoft Vendor
0 answers

'SysListView32' Bug with multiple items selection: still not fixed in Windows 11 23H2

When I use our own 32 bit application, the mouse cursor still jumps to a corner when I do the lasso selection in a listview (click and drag a rectangle to select multiple listview items). From what I've found in the internet, the program might use 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,660 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,772 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,988 questions
asked 2024-10-16T14:45:32.1733333+00:00
HenningD 0 Reputation points
commented 2024-11-06T07:05:05.0066667+00:00
Roy Li - MSFT 33,461 Reputation points Microsoft Vendor
0 answers

Decryption failure error with crypt32.dll, CertGetSubjectCertificateFromStore API

We have an application which transfer EDI documents using AS2 protocol where when our business partner and send data to us, we can’t decrypt it. We are reading the certificate from windows certificate store using CertGetSubjectCertificateFromStore api…

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,660 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,772 questions
asked 2024-10-25T09:51:58.47+00:00
Mehul Donga 0 Reputation points
commented 2024-11-06T07:03:20.35+00:00
Roy Li - MSFT 33,461 Reputation points Microsoft Vendor
0 answers

Why GetPerTcpConnectionEStats always return strange value.

I have following code to read TCP congestion stats: Tried a whole day, the read out path_rod is always strange, like: What should I try next?

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,660 questions
asked 2024-10-18T14:01:09.1966667+00:00
xing-9122 0 Reputation points
edited a comment 2024-11-06T03:37:33.14+00:00
xing-9122 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to use function `CreateIconIndirect` with 32 bit bitmaps?

Most icon related documentation is still written with the assumption that the user will want to create a black and white icon, even though we are in the year 2024. A 32 bit bitmap has both the color information and the transparency mask in the same…

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.
5,533 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,660 questions
asked 2024-11-03T20:53:08.11+00:00
László Szerémi 35 Reputation points
commented 2024-11-05T07:25:50.66+00:00
Castorix31 86,041 Reputation points
1 answer

How can I mark my structure as `com_class` in Rust?

Hello, I am implementing a COM object in DLL in Rust. Every single tutorial I found (including ChatGPT and Github Copilot) describes that I need to use #[com_class] macro with my CLSID over my…

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,660 questions
asked 2024-11-02T03:50:13.6333333+00:00
Piotr Kosek 0 Reputation points
commented 2024-11-04T01:19:20.3833333+00:00
Jeanine Zhang-MSFT 9,866 Reputation points Microsoft Vendor