2,894 questions with Windows development | Windows API - Win32 tags
How to compile C program developed with Microsoft Visual C/C++ 6.0 in Linux system
I need to compile C program developed with Microsoft Visual C/C++ 6.0 in Linux system? Thanks, Fen
Windows development | Windows API - Win32
How Do I Retarget a C++ Application?
Hello Folks: Developing on Windows 10 Pro on the Extended Security Update program, VS 2019 Community Version 16.11.53, all C++. I'm getting the following error. error MSB8020: The build tools for v143 (Platform Toolset = 'v143') cannot be…
Windows development | Windows API - Win32
Update app from code
Hello https://dori-uw-1.kuma-moon.com/en-us/windows/msix/store-developer-package-update Is it possible to check if an update is available, and download/install it in .Net Framework WinForms apps? (full trust store packaged) Thanks in advance.
Windows development | Windows API - Win32
4625- Security Microsoft Unified Security Protocol Provider SChannel
While calling sslStream.AuthenticateAsServer(this.serverCertificate, true, SslProtocols.Tls12, false) method throwing below Audit information error An account failed to log on. Subject: Security ID: NULL SID Account Name: - Account Domain: - Logon…
Windows development | Windows API - Win32
Is it possible in cmd to set the character cell size to exactly 1x1 pixels?
Hello, I am experimenting with cmd and I would like to know if it is possible to configure the console font so that each character cell is rendered as exactly 1x1 pixels. I have already tried several approaches, but none of them achieved this goal: …
Windows development | Windows API - Win32
Is the MsRdpClient11NotSafeForScripting::SendKeys() method broken or disabled on Windows11? All the other API calls work except this one. I am bit encoding the fields for the lParam, and have tried both bool and VARIANT_BOOL to indicate keys up/down.
I am using the MsRdpClient11NotSafeForScripting class to write a C++ RDP client. All the other needed functions/methods work except SendKeys(). I need to know if it is known broken / disabled on Windows 11 method broken or disabled on Windows11? I use a…
Windows development | Windows API - Win32
Is There a Practical Size/Page Limit for Print Spooling in Win32 Printing?
I'm building a WinUI2 (WinRT/C++) application that includes a custom printing workflow. Instead of relying on the system-provided Printer Dialog, we're generating our own UI and sending print jobs directly using Win32 APIs. To print, I'm obtaining the…
Windows development | Windows API - Win32
rescap Capability
Hello My .NET Framework WinForms msix packaged app has declared runFullTrust Capability. It works fine on my end when accessing the Internet to send/receive data. But I've seen many similar apps on the store that declare both runFullTrust and…
Windows development | Windows API - Win32
How to obtain information about CPU, RAM, GPU
I have been making a small tool recently One of the functions requires obtaining the current CPU, RAM, GPU usage rate of the system How can I currently obtain the usage rate of CPU, RAM, and GPU? Are there any APIs available? My tool is compatible with…
Windows development | Windows API - Win32
msix Registry.dat usage
Hello My desktop Framework WinForms packaged app has a Registry.dat to have some preloaded entries. However, adding these keys to my Registry.dat which only packaged app has access to it, will have any effect? Thanks. HKLM\SOFTWARE\Microsoft\Internet…
Windows development | Windows API - Win32
How to download CertPurge?
Hello I need to download the CertPurge: https://techcommunity.microsoft.com/blog/coreinfrastructureandsecurityblog/pki-basics-how-to-manage-the-certificate-store/259419 But I get AuthorizationFailure error, how to get it? Thanks in advance.
Windows development | Windows API - Win32
Program crash when creating MagnificationAPI window in Windows 11
While executing the following statement, programs on the target computer crash without warning and without a runtime error pop-up box. hwndMag = CreateWindow(WC_MAGNIFIER, TEXT("IdtScreenMagnifierMag"), WS_CHILD | MS_CLIPAROUNDCURSOR |…
Windows development | Windows API - Win32
Developer technologies | C++
Automatic launch of non-UWP application in kiosk mode with autologon
I created an executable (app.exe) that needs to be started automatically on a kiosk-mode workstation with autologon enabled. Issues encountered: app.exe does not run correctly under non-administrator accounts: the launch fails or the application freezes…
Windows development | Windows API - Win32
How can I enable my software to trigger cloud filter placeholder retrieval?
I have a cloud filter provider which is running just fine, however I have noticed that if I programmatically traverse directories, the placeholders aren't fetched - it's only when doing it using explorer or command line. Is there something I can do to…
Windows development | Windows API - Win32
[CFAPI] file handle from CfGetWin32HandleFromProtectedHandle cannot be used to read data.
Hi, I'm trying to implement a sync logic to upload local change to cloud. In this case I need to open local file for read, but it does not work as expected: Get a protected handle protected_handle from CfOpenFileWithOplock, works fine; Get a win32…
Windows development | Windows API - Win32
How to install legacy Visual Studio 6 (with VB6) on my computer today?
I need to find a CD image to install Visual Basic 6 on my Win11. I can't find the ISO-image download.
Windows development | Windows API - Win32
How can I implement macOS-style modifier + trackpad zoom (system-wide magnifier) on Windows using Win32/C#?
I am trying to recreate the macOS accessibility zoom feature on Windows. On macOS, holding Control and performing a two-finger scroll on the trackpad triggers a system-wide zoom: The entire screen zooms The zoom centers on the mouse cursor Moving the…
Windows development | Windows API - Win32
D2D DWrite encountered error 0x88985001 while loading a custom font. Repeated debugging attempts failed to pinpoint the issue. Please help me.
I am attempting to add a TTC font to an IDWriteFontCollection and have chosen to register a custom loader using RegisterFontCollectionLoader(collectionLoader);. The font file is located within a resource file (.rc). The font file format is .ttf, but…
Windows development | Windows API - Win32
How to Enable/Disable audio devices
Hi, I want to enable/disable audio devices listed in sound control panel (mmsys.cpl) but either through programmatically or through any power shell commands/scripts or windows internal utilities(pnputil, devcon). I tried using WMI APIs, Core Audio APIs,…
Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | User experience | Other
Will using RegisterHotKey in a WinUI 3 packaged app pass Microsoft Store certification?
Hello, I am currently developing a WinUI 3 packaged app that I plan to distribute through the Microsoft Store. My app would benefit from global keyboard shortcuts, and I am considering using the Win32 API RegisterHotKey to implement this…
Windows development | Windows API - Win32