Win32 API. The FtpGetFileW function does not work with non-English letters.
What should a programmer do to extract a file from the Internet using FTP that has non-English letters in its name? Are there any Win32 API functions (maybe Socket functions) that can be used instead of FtpGetFileW? I am interested in low-level…
Logging the parameters of WMI Methods using WMI-Activity Trace logs
When logging WMI calls and queries via WMI-Activity Trace logs, I can see all the method invocations being logged, but not the method's parameters. As I'm looking to work around certain hardware/driver issues with my laptop, I absolutely must know what…
C++/WinRT background task (non UWP)
Hi, I'm looking to create a win32 app utilizing WinRT to use UWP Background Task I tried to find some samples on the internet and I found two main "official" repos here …
How to change the active partition using SetTapePosition function ?
i am using SetTapePosition function to change the active partition of a LTO tape drive but unable to do so it compiled without any error but didn't change the partition as well, On the other hand i and able to set the dwOffsetLow and it is working…
[win10] The title bar still appears even though I have handled WM_NCCALCSIZE
I am attempting to create an application with a custom-drawn title bar, similar to Chrome. Therefore, I need to handle WM_NCCALCSIZE. However, I found that the title bar still appears under certain conditions: let dpi = unsafe { GetDpiForWindow(handle)…
Not able to reach even wWinMain in Windows Server Core Machine 2022
Hi, I am trying to run a C++ Win32 application with XAML Island as UI Library. I am able to run on normal desktop machines such as Windows 11 but when I try to run the same application on Windows Server core machine it failed and didn't even reach our…
Apply changes made in registry regarding window metrics
I want to set specific values for: Computer\HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics Is there a way to apply registry changes without the need of logging off and on? Perhaps some service needs restarting? I've tried to restart explorer.exe…
SetNamedSecurityInfo() returns : Error: (1307)
Hi, I'm curently trying to buid a chown.exe using Win32API SetNamedSecurityInfo() to change file ownership. When running this .exe in elevated mode or if the new owner is the same as the current owner, it works file. But when targetting an other user as…
Help needed to retrieve the LogonType using Win32LogonSession class in C++
Hello, I am trying to use Win32LogonSession to retrieve the LogonType in my C++ code. However, I'm encountering several errors and I am unsure if I'm writing the correct code. Can anyone provide assistance? Thank you.
shut off monitor will flash display,by use SendMessage command.
SendMessage function Win32 API Windows and Messages Similar problems monitor-will-flash-before-shut-off-or-monitor-will.html screen recording onedrive using System; using System.Runtime.InteropServices; namespace ConsoleApp { …
Changing Taskbar (Shell_TrayWnd) Color to Transparent
0 I found a way to change color to fully transparent, by researching structure of DesktopWindowXamlSource of Taskbar (Shell_TrayWnd). I'm curious is it possible to somehow change BackgroundFill in DesktopWindowXamlSource to Windows.UI.Xaml.Media.Brush…
How can I know if started by WER, the OS is running in a GUI environment?
Hi, I am building a Win32 application using WinUI2 as GUI. Before displaying a window to the user, we are checking our Desktop capabilities from the Operating System has shown below. bool CheckDesktop () noexcept { HDESK thread_desktop; …
Minimize App when all you have is AppUserModelId
I get all the apps from AppsFolder: `ShellObject appsFolder = (ShellObject)KnownFolderHelper.FromKnownFolderId(AppEntry.AppsKnownFolderId);` ```which I enumerate and display each app in a list (name and icon from the shell object). The user selects an…
Where to find correct version information using in C on Windows
I'm looking to programmatically find the correct version information for Windows using the "C" programming language. I've searched online with no luck. Does anyone know where I can find resources to help me achieve this goal?
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 |…
How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?
I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…
Some doubt in Exception Handling
I am trying to learn about the exception handling provided by Windows operating system. Now there are two different types of exception handling: One we probably know where we know that this call could fail -- we could use Structured Exception…
How to record the mouse drag event and simulate it ?
I'm a newbie of Rust, and try to write a windows desktop app. I read the documents then I found SetWindowsHookExA(WH_MOUSE_LL,...) can record the mouse event, but I only record the mouse down, move and up. no drag event produced. I try to simulate them…
How to get the text from the label by the handle with specific coordinates on any part of the desktop screen
I want to extract the text inside the label by giving certain coordinates from the screen, if the type of the coordinates is from the label, then extract the part of the obtained part.
Launching Windows Applications using Voice Assistants
Is there an alternative to Cortana on Windows that I can use to launch my applications using a voice command like "Open Abc App"? I have come across an application named "Voice Access," but I can't find any documentation on how to use…