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)…
![](https://cdn.statically.io/img/techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
Why does the interface get stuck for 5-10 minutes when using MF to retrieve camera video streams and calling IMFActivate:: Activated Object to retrieve IMFMediaSource * object?
On Windows 11, when using Media Foundation to capture video streams and frequently inserting a camera, calling the IMFActivate:: Activated Object function to retrieve the IMFMediaSource * object occasionally causes it to freeze for 5-10 minutes. This…
![](https://cdn.statically.io/img/techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
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…
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…
lAudioClient::Initialize returned 0x8890017
When testing the linphone sip phone software on windows, after hundreds of calls, it fails to intialize the audio interface. The error code is 0x8890017, sometimes 0x8007000e. The initializing code is like this: result =…
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…
does FWPM_CONDITION_IP_DESTINATION_ADDRESS_TYPE have a wrong description?
i see that FWPM_CONDITION_IP_DESTINATION_ADDRESS_TYPE represents "the destination IP address type for forwarded packets." this condition is supported for the following layers FWPM_LAYER_IPFORWARD FWPM_LAYER_OUTBOUND_TRANSPORT …
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.
How do I save ID2D1Bitmap as a file?
Bitmap and text were output to DIALOG using Direct2D. I tried to make this rendered screen into a bitmap and save it as a file. But, I get D2DERR_WRONG_RESOURCE_DOMAIN. Is there a way to transform ID2D1Bitmap to IWICBitmap? My goal is to use GDI+…
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; …
Does URLDownloadToFile still work on a Windows 11 computer without Internet Explorer on it?
I have written a windows console program that uses the win32 URLDownloadToFile function. This then ran for a long time without any problems on a windows 11 machine. However, 2 months ago this PC was reinstalled and since then the program no longer works…
![](https://cdn.statically.io/img/techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
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?
WinHttp cannot open SSL connection as Network Service -> 12185
I try to make a WinHttp from my service. This service runs in a restricted account (why? well, everyone tells me, that we should do this, because it is safer... but, it is also enormously complicated to find out how the f... to get access to what we need…
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 |…