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…
the sink writer always stopped or error after 1-3 times success?
i am using sink writer to write sample. here is the code: while(true){ hr = dxgiOutputDuplication->AcquireNextFrame(0, &frame_info, &resource); if (SUCCEEDED(hr)) { ID3D11Texture2D* texture = NULL; hr =…
would you know why URLDownloadToFile fails on windows 10
I have compiled code using watcom c++ compilier under win32 using the function URLDownloadToFile and while this was working on other machines its not working on a brand new install. #include <urlmon.h> HANDLE hr = URLDownloadToFile(NULL, …
Is there a known issue with MapWindowPoints() function?
Hello team, I'm running an application on a multi-monitor setup, one laptop and one monitor (both having 1920x1080 resolution), wherein monitor has been set as Main Display. The scaling on my monitor is 125% and laptop is 150%. My application uses…
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,
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…
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.).
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 =…
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.