2,525 questions with Windows API - Win32 tags

Sort by: Updated
2 answers

When using the Win32 GetAppliedGPOList in C, the GPO list pointer is always NULL even when trying multiple GUIDs and even when the API returns success.

In the code below, pGPOList (the GPO list) is always NULL even when the GetAppliedGPOList returns success. I have tried multiple group policy extension GUIDs, but no luck. What am I doing wrong? This also happens when I try GetAppliedGPOList with user…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,894 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,525 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,638 questions
asked 2024-07-24T12:56:07.7066667+00:00
Madden, John 5 Reputation points
answered 2024-07-29T15:23:31.39+00:00
Madden, John 5 Reputation points
1 answer One of the answers was accepted by the question author.

File permissions precedence

Hi, By setting , via Win32 API , following permissions on a file Everyone group : deny GENERIC_READ , GENERIC_WRITE , GENERIC_EXECUTE Onwer User : allow GENERIC_READ , GENERIC_WRITE , GENERIC_EXECUTE then , when trying to acces to file ( i.e.…

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,525 questions
asked 2024-07-24T18:12:09.3266667+00:00
Jean-Pierre Ribeauville 80 Reputation points
accepted 2024-07-29T12:04:57.0966667+00:00
Jean-Pierre Ribeauville 80 Reputation points
1 answer One of the answers was accepted by the question author.

How to get the length of text found with CurrentCulture?

Suppose I have a text "MaxGroßenIsHere". CurrentCulture is set to "de-DE" in my app. German has the character ß, which can often be written as ss, especially in computers. Therefore,…

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,525 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,656 questions
asked 2024-07-26T11:23:17.18+00:00
Heiko 1,236 Reputation points
accepted 2024-07-29T10:08:54.3166667+00:00
Heiko 1,236 Reputation points
1 answer

Mozilla Firefox installation failed

I tried to deploy latest version of Mozilla Firefox through intune (win32) . I am using MSI file and it's throwing a detection error in all devices..I've used these detection rules - 1. MSI - (this was automatic for MSI), 2. File - c:\program…

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,525 questions
Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
920 questions
asked 2024-07-29T03:59:54.2066667+00:00
Hunter9676 0 Reputation points
commented 2024-07-29T09:54:03.2566667+00:00
Hunter9676 0 Reputation points
2 answers

DwmExtendFrameIntoClientArea doesn't paint border in Win10

I tested the source example found in https://learn.microsoft.com/en-us/windows/win32/dwm/customframe and it works in Windows 11. However, when testing it in Windows 10, the border disappears when the window is active. On the other hand, when the window…

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,525 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,638 questions
asked 2024-07-26T19:33:39.6933333+00:00
Pedro Gil 30 Reputation points
commented 2024-07-29T07:03:47.6566667+00:00
Tong Xu - MSFT 2,201 Reputation points Microsoft Vendor
0 answers

How to use DeviceIOCommand (IOCTL_STORAGE_PROTOCOL_COMMAND) integrate with ufs device

Hi, Currently i'm working on sending query request upiu to ufs device by using DeviceIOControl(IOCTL_STORAGE_PROTOCOL_COMMAND) but i'm getting ERROR_INVALID_FUNCTION on getLastError(). Can you please provide sample code or documentation 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,525 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,638 questions
asked 2024-07-23T07:42:03.5333333+00:00
yh_yong 0 Reputation points
commented 2024-07-29T06:38:15.82+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Having trouble with retrieving device path using SetUpApi and Hidsdi

I'm currently having an issue with my code that detects HID devices with a specific VID and PID for joy-cons. I'm using SetUpApi and Hidsdi that I platform invoked, but the device path is only showing as question marks. Can someone assist in finding 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,525 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,656 questions
asked 2024-07-27T21:14:24.1833333+00:00
CakeDev 20 Reputation points
accepted 2024-07-28T21:34:53.7033333+00:00
CakeDev 20 Reputation points
0 answers

lAudioClient::Initialize returned 0x8890017

When testing the linphone sip phone software on windows, after hundreds of calls, it fails to intialize the audio interface. The error code is 0x8890017, sometimes 0x8007000e. The initializing code is like this: result =…

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,525 questions
asked 2024-07-16T03:54:09.9566667+00:00
zhangtie 0 Reputation points
commented 2024-07-28T01:52:25.66+00:00
zhangtie 0 Reputation points
2 answers One of the answers was accepted by the question author.

Using XAML Islands in a Win32 Project, using the most basic example from MS-Learn, WindowsXamlManager::InitializeForCurrentThread() throws a fatal exception.

The following code from an MS-Learn page about XAML-Islands, crashes at the call to: WindowsXamlManager winxamlmanager = WindowsXamlManager::InitializeForCurrentThread(); I have added the following two NuGet packages to the…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
752 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,525 questions
asked 2024-07-25T18:48:33.9166667+00:00
Atul Majithia 20 Reputation points
commented 2024-07-26T12:52:44.4233333+00:00
Darran Rowe 571 Reputation points
1 answer

Where can I find sendmsg and recvmsg refered to in https://learn.microsoft.com/en-us/windows/win32/winsock/winsock-ecn

See page https://learn.microsoft.com/en-us/windows/win32/winsock/winsock-ecn. I tried to find sendmsg and recvmsg functions, but couldn't find them. In which header are they defined? Or are these wrapper functions I have to write myself?

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,525 questions
asked 2024-07-23T01:15:22.0466667+00:00
Koen De Schepper 0 Reputation points
commented 2024-07-26T08:28:41.0333333+00:00
Tong Xu - MSFT 2,201 Reputation points Microsoft Vendor
1 answer

Can't reverse back to shortpath?

Hi, I have this folder path in short-form like this C:\Users\admin\Downloads\NEWFOL~2\NEWFOL~1\...\NEWFOL~1 using GetLongPathName, then I have C:\Users\admin\Downloads\New folder (2) - Copy - Copy test\New folder\...\New folder but now 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,525 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,638 questions
asked 2024-07-21T22:47:39.6433333+00:00
DangDKhanh-2637 946 Reputation points
commented 2024-07-26T00:56:29.1733333+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Taskbar (Shell_TrayWnd) Alignment of items using Win32 API

Currently, I have a problem with changing the alignment of items such as Start Button, Search, Pinned items. I wrote code, which works in a Console Application, but it won't work in a WinUI 3 or UWP Packaged Desktop application because of restrictions…

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,108 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,525 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,656 questions
asked 2024-06-14T12:30:53.7566667+00:00
Jacob Mordon 65 Reputation points
commented 2024-07-25T00:49:59.66+00:00
Michael Taylor 51,426 Reputation points
2 answers One of the answers was accepted by the question author.

win32 When trying to convert string to LPCWSTR, the result is Japanese characters

I want to make what key the user presses added to a string and then displayed in SetWindowText, but the output is Chinese characters case WM_CHAR: { ifpressed; static std::string getwparam; getwparam.push_back( wParam ); SetWindowText(hwnd,…

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,525 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,638 questions
asked 2024-07-23T23:57:51.72+00:00
someone 20 Reputation points
accepted 2024-07-24T21:47:57.5966667+00:00
someone 20 Reputation points
0 answers

WinHttp cannot open SSL connection as Network Service -> 12185

I try to make a WinHttp from my service. This service runs in a restricted account (why? well, everyone tells me, that we should do this, because it is safer... but, it is also enormously complicated to find out how the f... to get access to what we need…

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,525 questions
asked 2024-07-08T16:15:56.2166667+00:00
Rudolf Meier 291 Reputation points
commented 2024-07-24T06:56:25.25+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
0 answers

When modify the keyboard layout of explorer.exe by WM_INPUTLANGCHANGEREQUEST, the keyboard will always be automatically reverted to ENG

I am using SendMessage in AHK v2 (Sorry but I have not yet mastered the syntax for hooking the keyboard and using Windows API in other languages. ) to call WM_INPUTLANGCHANGEREQUEST in order to create a quick input method switcher. When tested in other…

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,525 questions
asked 2024-05-26T12:02:23.1966667+00:00
Giresharu Fan 0 Reputation points
commented 2024-07-24T02:40:11.78+00:00
Xiaopo Yang - MSFT 12,231 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Thumbnail Preview Title Icon

Is it possible to customize/modify the icon showed in the title bar of a thumbnail? For example, if a window doesn't have an icon in the title bar, its thumbnail does display an icon... the standard application icon (please see attachments). Is there any…

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,525 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,638 questions
asked 2024-07-23T13:44:15.57+00:00
Pedro Gil 30 Reputation points
commented 2024-07-23T20:08:22.2133333+00:00
Pedro Gil 30 Reputation points
1 answer One of the answers was accepted by the question author.

Not able to decode file permissions mask by using Win32API

Hello, I'm trying , by using Win32 API on C langage , to retrieve owner and permissions of a file .Retrieving onwer is O.K. Concerning retrieving file permissions , I'm able to list the 5 ACEs related to the security descriptor of the file. The DACL…

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,525 questions
asked 2024-07-23T12:15:53.3566667+00:00
Jean-Pierre Ribeauville 80 Reputation points
accepted 2024-07-23T13:42:58.21+00:00
Jean-Pierre Ribeauville 80 Reputation points
0 answers

Why does the interface get stuck for 5-10 minutes when using MF to retrieve camera video streams and calling IMFActivate:: Activated Object to retrieve IMFMediaSource * object?

On Windows 11, when using Media Foundation to capture video streams and frequently inserting a camera, calling the IMFActivate:: Activated Object function to retrieve the IMFMediaSource * object occasionally causes it to freeze for 5-10 minutes. This…

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,525 questions
asked 2024-07-16T08:06:30.7433333+00:00
Pengchao PC13 Wang 0 Reputation points
commented 2024-07-23T01:49:06.6966667+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
1 answer

How do I save ID2D1Bitmap as a file?

Bitmap and text were output to DIALOG using Direct2D. I tried to make this rendered screen into a bitmap and save it as a file. But, I get D2DERR_WRONG_RESOURCE_DOMAIN. Is there a way to transform ID2D1Bitmap to IWICBitmap? My goal is to use GDI+…

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,525 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,638 questions
asked 2024-07-08T05:39:14.6833333+00:00
채문석(jim) 41 Reputation points
commented 2024-07-23T01:42:12.7766667+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
0 answers

MSWord closes unexpectedly when clicking "Print" button in "Envelopes and Labels" dialog

I'm embedding MSWord in my WinForms app using Microsoft Library, and I'm following this guideline to set the window style to ws_child to support the child window. However, when I click the "Print" button in the "Envelopes and Labels"…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 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.
5,108 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,525 questions
asked 2024-07-19T12:06:41.3133333+00:00
Prasanth Vimalanathan 0 Reputation points
commented 2024-07-22T07:48:41.7433333+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor