2,621 questions with Windows API - Win32 tags

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

PlayEnhMetaFile fails, without any GetLastError response

Over at https://github.com/python-pillow/Pillow/issues/6980, a user has posted a zip containing an EMF file - https://github.com/python-pillow/Pillow/files/10852640/test_libuemf_ref.zip PlayEnhMetaFile fails to process the file. I attempted find out why…

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,621 questions
asked 2024-10-09T07:55:21.8833333+00:00
radarhere-3869 40 Reputation points
accepted 2024-10-12T04:14:52.6866667+00:00
radarhere-3869 40 Reputation points
0 answers

signature verification issue with crypt32.dll CryptMsgControl api

We have an application which transfer EDI documents using AS2 protocol where When we send data to one of our business partner and try to verify the signature of the MDN that business partner return to us and we can`t verify the signature of the MDN that…

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,402 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,621 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,734 questions
asked 2024-10-11T14:56:22.9666667+00:00
Mehul Donga 0 Reputation points
1 answer

How to make BitBlt() draw in right-to-left orientation?

Hello, I'm using BitBlt() to paint a horizontal bar on top of a splitter in my app, which supports languages that follow left-to-right orientation (English), as well as, right-to-left orientation (Arabic). BitBlt() seems to pretty much follow…

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,621 questions
asked 2024-10-04T11:08:25.4166667+00:00
learner 0 Reputation points
edited a comment 2024-10-11T08:00:13.47+00:00
Jeanine Zhang-MSFT 9,676 Reputation points Microsoft Vendor
0 answers

Media Foundation: got error when tried to create stream reader

can someone help me please with winapi, media foundation particularly? the following list crashes at line 69 (MFCreateSourceReaderFromMediaSource) (located by shot in the dark) and I have no idea…

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,621 questions
asked 2024-10-10T10:53:48.0666667+00:00
Dmitry Titov 0 Reputation points
commented 2024-10-11T01:34:54.4233333+00:00
Jeanine Zhang-MSFT 9,676 Reputation points Microsoft Vendor
2 answers

Cloud Filter API - CF_HYDRATION_POLICY_PROGRESSIVE

While working with cfapi.h, I've tried to map random access over a cloud file. I'm registering the SyncRoot as: CF_SYNC_POLICIES CfSyncPolicies = { 0 }; CfSyncPolicies.StructSize = sizeof(CF_SYNC_POLICIES); CfSyncPolicies.HardLink =…

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,621 questions
asked 2022-10-03T18:43:43.94+00:00
Eduard Suica 1 Reputation point
answered 2024-10-10T06:46:44.1866667+00:00
Max 1 Reputation point
0 answers

Undocumented usage of nCrypt API for Microsoft Passport Key Storage Provider

Hi During couple of weeks I try to integrate Windows Hello inside the app. The app is written in golang, so the app is not UWP based. The Documentation says, that proper way to integrate with Windows Hello is via Key Credential Manager this API is a part…

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,621 questions
asked 2024-10-09T21:23:23.31+00:00
Andrey Pshenkin 0 Reputation points
2 answers

Intermittent failure on GetNamedSecurityInfo while running inside a service as Local System account

Hi, I'm getting a very strange behavior for GetNamedSecurityInfo while running at my own service startup. When running GetNamedSecurityInfoW(pwzFolderPath, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION | PROTECTED_DACL_SECURITY_INFORMATION, NULL, NULL,…

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,621 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,734 questions
asked 2024-10-08T08:36:29.7433333+00:00
Alexandre MONIER 0 Reputation points
commented 2024-10-09T08:40:41.9233333+00:00
RLWA32 45,571 Reputation points
1 answer One of the answers was accepted by the question author.

Incorrect colours from PlayEnhMetaFile?

Over at https://github.com/python-pillow/Pillow/issues/8271, a user has posted a zip containing an EMF file - https://github.com/user-attachments/files/16448240/PillowIssue8271.zip The user maintains that the white in this EMF file should be (255, 255,…

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,621 questions
asked 2024-10-05T10:20:47.56+00:00
radarhere-3869 40 Reputation points
accepted 2024-10-09T07:41:58.5233333+00:00
radarhere-3869 40 Reputation points
1 answer One of the answers was accepted by the question author.

BadgeUpdateManager::CreateBadgeUpdaterForApplication() crashes with WinRT originate error - 0x80070490 : 'Element not found.'

Hello, I'm trying to show badge icon in the taskbar for my WinUI2 application (WinRT/C++). Below is the code snippet: // winrt::init_apartment(apartment_type::single_threaded); XmlDocument badgeXml =…

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,621 questions
asked 2024-10-04T06:40:08.6566667+00:00
Shyam Butani 215 Reputation points
accepted 2024-10-09T06:05:35.6466667+00:00
Shyam Butani 215 Reputation points
1 answer

OMSetRenderTargets is causing an exception.

Got past previous shader problem, unfortunately now I have a problem with setting the render target. I get a dereferenced nullptr/accessing an invalid memory address exception when trying to use OMSetRenderTargets. Here's me calling it. …

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,621 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,734 questions
asked 2024-10-08T00:18:41.0733333+00:00
CakeDev 50 Reputation points
answered 2024-10-08T18:52:16.0966667+00:00
CakeDev 50 Reputation points
0 answers

What are the known folder paths returned by SHGetKnownFolderPath on Windows 11 using OneDrive's Known Folder Move Feature?

OneDrive now includes a feature called Known Folder Move. It is my understanding that for consumers (not managed devices) when OneDrive is used on a Windows 11 system it will implement this feature and several of the known folders will now default 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,621 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,655 questions
asked 2024-10-01T09:00:52.61+00:00
RLWA32 45,571 Reputation points
commented 2024-10-08T12:41:31.1133333+00:00
RLWA32 45,571 Reputation points
1 answer

Issue with SetNamedSecurityInfo Returning Error Code 59 on Shared File

Hello, I am encountering an issue with the **SetNamedSecurityInfo **API while attempting to modify the security settings of shared files. I have five shared files, and the API works as expected on four of them. However, for one specific shared file, 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,621 questions
asked 2024-09-30T09:10:36.2966667+00:00
Rishi C 0 Reputation points
edited an answer 2024-10-08T12:12:12.36+00:00
Tong Xu - MSFT 2,461 Reputation points Microsoft Vendor
1 answer

Why does IAudioClient::GetMixFormat return 8 channels audio even if the system's sound card only has two channels?

为甚么 IAudioClient::GetMixFormat return 8 channels audio ,扬声器实际上仅支持 2 声道 captureClient->GetMixFormat(&m_wfex);

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,621 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,734 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,655 questions
asked 2024-09-29T08:12:47.26+00:00
Yniar GL 0 Reputation points
commented 2024-10-08T08:41:42.9966667+00:00
Yniar GL 0 Reputation points
1 answer

How to make XAudio2 throw a Device Lost flag/error?

Hi, I was wondering how I can produce a Device Lost message for XAudio2. I tried using the dxcaps -forcetdr command in the Developer Command Prompt window for Visual Studio, but it did not work. I am using C++ and programming for Windows 10. Derek

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,621 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,734 questions
asked 2024-10-01T02:15:50.39+00:00
Derek Todd 0 Reputation points
commented 2024-10-07T09:18:03.4166667+00:00
Tong Xu - MSFT 2,461 Reputation points Microsoft Vendor
0 answers

Why doesn't GetNameInfo win32 api resolve Chinese computer names on Windows 11?

0 I have a small lab based Active Directory environment with 3 devices. They have the following OS installed. DC running Windows Server 2022 hosting my AD server. 1.Endpoint running Windows 10 Pro (22H2 Build 19045.4780) [English US installation 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,621 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,734 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,655 questions
asked 2024-10-01T07:31:51.6766667+00:00
Arif Waqas 0 Reputation points
commented 2024-10-07T09:05:36.78+00:00
Tong Xu - MSFT 2,461 Reputation points Microsoft Vendor
0 answers

Problem with HLSL shaders.

I'm working with D3D12, and I've run into another problem. I managed to fix my command list problem, but apparently something is going wrong with my shaders? My code currently is struct Vertex { DirectX::XMFLOAT3 position; // 3D position …

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,621 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,734 questions
asked 2024-10-05T14:22:18.94+00:00
CakeDev 50 Reputation points
commented 2024-10-07T07:41:02.7733333+00:00
Jeanine Zhang-MSFT 9,676 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Is there any way to temporarily hang or disable zero-page thread in windows,i only want to test?

Hi~ Recently I want to emporarily hang or disable zero-page thread to test something, Is there any better way?

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,621 questions
asked 2024-09-29T03:02:16.0933333+00:00
qicheng 20 Reputation points
commented 2024-10-07T05:29:14.2633333+00:00
Jeanine Zhang-MSFT 9,676 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

how to execute func in main thread?

how to execute func in main thread(the wnd proc thread)? If I create thread I want to execute func in main thread.

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,621 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,734 questions
asked 2024-10-06T00:46:47.9933333+00:00
mc 4,516 Reputation points
commented 2024-10-07T05:17:02.3633333+00:00
RLWA32 45,571 Reputation points
2 answers One of the answers was accepted by the question author.

How to make start menu transparent in Win11.

The ui used by Windows11 feels very special, but I have been unable to achieve it by using the method of setting transparency before. May I ask, what api should I use to set transparency of Windows11 start menu?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,893 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,621 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,655 questions
asked 2022-12-10T14:28:31.033+00:00
XUWANBIN 201 Reputation points
commented 2024-10-05T08:55:52.6866667+00:00
gluetheknot 0 Reputation points
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,621 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,734 questions
asked 2024-10-02T23:56:28.9766667+00:00
CakeDev 50 Reputation points
edited the question 2024-10-04T07:15:44.53+00:00
Jack J Jun 24,491 Reputation points Microsoft Vendor