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…
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…
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 =…
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.).
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…
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,
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?
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,…
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…
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
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…
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() { …
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
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.
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…
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…
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.
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…
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…
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…