2,589 questions with Windows API - Win32 tags

Sort by: Updated
1 answer

How Can I fix lParam pointer Error in Pinvoke/Win32 ?

Hi there, currently I need to dig up some Win32 code which is a part of my project, Actually, it's a part of my WPF application where access Win32 APIs using the traditional Pinvoke method. But Currently I facing some error at lParam pointer…

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,589 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,853 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,692 questions
asked 2024-09-18T11:32:18.04+00:00
MERUN KUMAR MAITY 576 Reputation points
commented 2024-09-18T18:56:08.81+00:00
MERUN KUMAR MAITY 576 Reputation points
0 answers

Win32_TSLicenseReport not generating report when AD has Japanese usernames

$fileName = (Invoke-WmiMethod Win32_TSLicenseReport -Name GenerateReportEx).FileName $fileEntries = (Get-WmiObject Win32_TSLicenseReport | Where-Object FileName -eq $fileName).FetchReportEntries(0, 0).ReportEntries These commands succeed when I have…

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,589 questions
asked 2024-09-18T18:52:50.6866667+00:00
Nithin Thankachan 0 Reputation points
edited the question 2024-09-18T18:54:05.9933333+00:00
Nithin Thankachan 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to fix the Win32 API function error: 1312 (GetTokenInformation) occurring for the below code used for creating a windows application.

I have used the below code and it is working fine for most of the cases but for one windows machine it is failing at the section where we call 'GetTokenInformation' win32 API function and throws an error as ERROR: API = GetTokenInformation, error code =…

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,589 questions
asked 2024-09-10T04:38:49.8933333+00:00
Prem Jha 25 Reputation points
accepted 2024-09-18T11:33:52.0333333+00:00
Prem Jha 25 Reputation points
4 answers

Self-closing MessageBox

What would the code look like that displays a message that will close in 5 seconds? I'm interested in Win32 functions, not the capabilities of programming languages ​​(C#, C++, etc.).

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,589 questions
asked 2024-09-09T13:05:47.51+00:00
Participant 41 Reputation points
commented 2024-09-18T11:28:09.37+00:00
RLWA32 45,236 Reputation points
0 answers

How to view all Visual Tree UI elements of any UI controls, Which is using styles & templates on windows 11 OS environment using VisualUIAVerifyNative tool?

VisualUIAVerifyNative is not displaying few UI elements If TextBox uses style, which has TextBlock as PlaceholderText, then the placeholder textblock UI element is not getting displayed in VisualUIAVerifyNative on windows 11 machine <Style…

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,589 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-09-11T12:08:30.5+00:00
Kavitha T 0 Reputation points
edited the question 2024-09-18T06:13:08.6433333+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
1 answer

How to format USB & CD-Rome

Hi, I'm using net 8, I would like to format. 1.USB include bit locker. 2.CD-Rome Can you supply full coe how to do it? Thanks,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,801 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,589 questions
asked 2024-07-30T11:01:04.0133333+00:00
Dani_S 3,726 Reputation points
commented 2024-09-18T02:17:40.6133333+00:00
Castorix31 84,546 Reputation points
0 answers

Can I integrate MS Project with Airtable?

Can I integrate MS Project with Airtable to get all dates such as Milestones and Critical Path? directly into the airtable?

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,589 questions
asked 2024-09-17T17:05:42.42+00:00
Aakash 0 Reputation points
commented 2024-09-18T01:19:55.6033333+00:00
Jeanine Zhang-MSFT 9,661 Reputation points Microsoft Vendor
0 answers

How to set PerMonitor DpiAwareness for .NET 8 Windows desktop application in WPF?

Hi, I am having problem setting WPF window based desktop .NET 8 application to work as PerMonitor DpiAware. System default automatic scaling schema... When user changes Windows 10 display setting scale, WPF-Window is being scaled accordingly. Also,…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 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,589 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,853 questions
asked 2024-09-03T11:03:57.19+00:00
MERUN KUMAR MAITY 576 Reputation points
commented 2024-09-17T13:05:45.7+00:00
MERUN KUMAR MAITY 576 Reputation points
1 answer

Is it possible to Intercept and postprocess all audio streams coming from any app or process running on Windows device?

We want to build some app ( C++/Python) for intercepting and processing all audio streams coming from any applications/process like Youtube in browser, inbuilt music app on Windows Device .   The program should apply some filters to audio first 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,589 questions
asked 2024-09-16T18:02:17.9033333+00:00
Sumit Kumar 0 Reputation points Microsoft Employee
edited a comment 2024-09-17T08:59:05.94+00:00
Castorix31 84,546 Reputation points
1 answer One of the answers was accepted by the question author.

EDIT control will disappear when I clear the window using direct3d?

first I created EDIT. I use direct3d to BeginDraw and EndDraw then present the EDIT will disappear. and If I use direct2d to do it .it will be ok. why I can not use direct3d? here is the project I create:https://github.com/ljzj2/testedit

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,589 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,692 questions
asked 2024-09-13T01:18:36.8466667+00:00
mc 4,436 Reputation points
commented 2024-09-16T08:33:21.7066667+00:00
mc 4,436 Reputation points
1 answer One of the answers was accepted by the question author.

How do I access DWriteCore from a C# managed application?

How do I access DWriteCore from a C# managed application? I'm using .Net5 WindowsAppSDK Desktop. I need to get a SYSTEM and CUSTOM FONT COLLECTION LIST using DWriteCore, but I need to do so from a C# App using WindowsAppSDK, which says it includes…

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.
780 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,589 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,853 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,153 questions
asked 2021-10-02T06:36:10.877+00:00
Kenny Brown 51 Reputation points
commented 2024-09-15T16:49:43.5366667+00:00
Castorix31 84,546 Reputation points
4 answers One of the answers was accepted by the question author.

How can i hide the window icon and minimize and maximize button from titlebar using windows api in java swing using, com.sun.jna.platform ?

So basically im new to the windows api and Im trying to hide both maximize, minimize buttons as well as the titlebar icon using the windows api and the java native access library. Here is what i tried so far private void disableTitleBarIcon() { …

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,325 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,589 questions
asked 2024-09-12T20:45:37.04+00:00
AndronikosG 40 Reputation points
accepted 2024-09-14T10:06:43.76+00:00
AndronikosG 40 Reputation points
3 answers One of the answers was accepted by the question author.

Change Accent Color for Taskbar on Windows 11 via Registry

Hi, I would like to know, how to change registry Accent Color value for Taskbar. This color of Taskbar appears, when I change HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\ColorPrevalence to 1

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,589 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,465 questions
asked 2024-09-09T10:51:55.53+00:00
Jacob Mordon 225 Reputation points
accepted 2024-09-13T15:35:49.05+00:00
Jacob Mordon 225 Reputation points
1 answer One of the answers was accepted by the question author.

how to get IStream from char * or std::string?

now I want to use ID2D1DeviceContext5::CreateSvgDocument to create svg document. and how to get IStream from char *? I have svg and I do not want to write it to file.

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,589 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,692 questions
asked 2024-09-13T09:04:54.2+00:00
mc 4,436 Reputation points
accepted 2024-09-13T15:23:50.95+00:00
mc 4,436 Reputation points
2 answers One of the answers was accepted by the question author.

Rust ReportEventW returns The stub received bad data

Hello! Im currently experimenting with the Rust windows crate. I have a problem with the ReportEventW function, its returning the message: "The stub received bad data." and i cant figure out what ive done wrong. Maybe there are a helpful soul…

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,589 questions
asked 2024-09-12T07:45:46.25+00:00
Oliver 20 Reputation points
accepted 2024-09-13T11:56:31.81+00:00
Oliver 20 Reputation points
1 answer

Filter from SetUnhandledExceptionFilter not capturing C++ exceptions from threads started with _beginthread on windows server 2022

We have found a the change in behaviour of the SetUnhandledExceptionFilter API call. On windows server 2016, this enables any uncaught C++ exceptions to be handled by a registered filter, including on our worker threads. In our filter callback we have…

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,325 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,589 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,692 questions
asked 2024-09-11T01:28:04.4433333+00:00
Malcolm Davey 0 Reputation points
commented 2024-09-13T07:40:54.53+00:00
RLWA32 45,236 Reputation points
1 answer One of the answers was accepted by the question author.

how to remove border of picture ?

I create dialog using DialogBoxW(hInstance,MAKEINTERESOURCE(IDD_PICTURE1),O_WND); and there is picture on it how to remove its border.

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,589 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,692 questions
asked 2024-09-05T01:41:12.44+00:00
mc 4,436 Reputation points
accepted 2024-09-13T02:56:32.86+00:00
mc 4,436 Reputation points
1 answer One of the answers was accepted by the question author.

Taskbar Color Reverts When Changing Color Using SetWindowCompositionAttribute in WinUI3

Hi, I am encountering an issue with the taskbar color on Windows. When I change the taskbar color using the SetWindowCompositionAttribute method, the color initially changes as expected. However, as soon as I click the 'Start' button, the taskbar color…

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,325 questions
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.
780 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,589 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,853 questions
asked 2024-09-10T06:38:06.4466667+00:00
Jacob Mordon 225 Reputation points
accepted 2024-09-12T08:54:13.6366667+00:00
Jacob Mordon 225 Reputation points
1 answer

How Do I Customize The Appearance of Custom Controls in the Windows API

Hi, I Am Using Mingw-W64 As My Compiler. How Do I Customize the Appearance of controls. I Know How To Enable Visual Styles. But, I Would like to know if there is a way to Customize The Look of controls Easily, Have Effects, Etc..., Preferably Without…

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,589 questions
asked 2024-09-05T11:10:59.83+00:00
Diya Al deen 20 Reputation points
commented 2024-09-11T06:29:46.12+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
1 answer

PktmonApi.dll does not contain the functions specified in the documentation

Hello, I am trying to use the PktmonApi.dll as described here. The information box states that there is no header and instead you load the DLL at runtime and pull out the function addresses using GetProcAddress. On the reference page it lists a bunch of…

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,589 questions
asked 2024-09-03T12:24:32.49+00:00
Robert Altner 0 Reputation points
commented 2024-09-11T03:31:17.3466667+00:00
Jeanine Zhang-MSFT 9,661 Reputation points Microsoft Vendor