File permissions precedence
Hi, By setting , via Win32 API , following permissions on a file Everyone group : deny GENERIC_READ , GENERIC_WRITE , GENERIC_EXECUTE Onwer User : allow GENERIC_READ , GENERIC_WRITE , GENERIC_EXECUTE then , when trying to acces to file ( i.e.…
How to get the length of text found with CurrentCulture?
Suppose I have a text "MaxGroßenIsHere". CurrentCulture is set to "de-DE" in my app. German has the character ß, which can often be written as ss, especially in computers. Therefore,…
Mozilla Firefox installation failed
I tried to deploy latest version of Mozilla Firefox through intune (win32) . I am using MSI file and it's throwing a detection error in all devices..I've used these detection rules - 1. MSI - (this was automatic for MSI), 2. File - c:\program…
DwmExtendFrameIntoClientArea doesn't paint border in Win10
I tested the source example found in https://learn.microsoft.com/en-us/windows/win32/dwm/customframe and it works in Windows 11. However, when testing it in Windows 10, the border disappears when the window is active. On the other hand, when the window…
![](https://techprofile.blob.core.windows.net/images/N330SdAG0kqrzdPjkrhKeA.png?8DAB57)
How to use DeviceIOCommand (IOCTL_STORAGE_PROTOCOL_COMMAND) integrate with ufs device
Hi, Currently i'm working on sending query request upiu to ufs device by using DeviceIOControl(IOCTL_STORAGE_PROTOCOL_COMMAND) but i'm getting ERROR_INVALID_FUNCTION on getLastError(). Can you please provide sample code or documentation on…
![](https://techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
Having trouble with retrieving device path using SetUpApi and Hidsdi
I'm currently having an issue with my code that detects HID devices with a specific VID and PID for joy-cons. I'm using SetUpApi and Hidsdi that I platform invoked, but the device path is only showing as question marks. Can someone assist in finding a…
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 =…
Using XAML Islands in a Win32 Project, using the most basic example from MS-Learn, WindowsXamlManager::InitializeForCurrentThread() throws a fatal exception.
The following code from an MS-Learn page about XAML-Islands, crashes at the call to: WindowsXamlManager winxamlmanager = WindowsXamlManager::InitializeForCurrentThread(); I have added the following two NuGet packages to the…
Where can I find sendmsg and recvmsg refered to in https://learn.microsoft.com/en-us/windows/win32/winsock/winsock-ecn
See page https://learn.microsoft.com/en-us/windows/win32/winsock/winsock-ecn. I tried to find sendmsg and recvmsg functions, but couldn't find them. In which header are they defined? Or are these wrapper functions I have to write myself?
![](https://techprofile.blob.core.windows.net/images/N330SdAG0kqrzdPjkrhKeA.png?8DAB57)
Can't reverse back to shortpath?
Hi, I have this folder path in short-form like this C:\Users\admin\Downloads\NEWFOL~2\NEWFOL~1\...\NEWFOL~1 using GetLongPathName, then I have C:\Users\admin\Downloads\New folder (2) - Copy - Copy test\New folder\...\New folder but now using…
![](https://techprofile.blob.core.windows.net/images/mTRjBkXqiU2SgoIJJ1L84Q.png?8D8BC5)
When using the Win32 GetAppliedGPOList in C, the GPO list pointer is always NULL even when trying multiple GUIDs and even when the API returns success.
In the code below, pGPOList (the GPO list) is always NULL even when the GetAppliedGPOList returns success. I have tried multiple group policy extension GUIDs, but no luck. What am I doing wrong? This also happens when I try GetAppliedGPOList with user…
Taskbar (Shell_TrayWnd) Alignment of items using Win32 API
Currently, I have a problem with changing the alignment of items such as Start Button, Search, Pinned items. I wrote code, which works in a Console Application, but it won't work in a WinUI 3 or UWP Packaged Desktop application because of restrictions…
win32 When trying to convert string to LPCWSTR, the result is Japanese characters
I want to make what key the user presses added to a string and then displayed in SetWindowText, but the output is Chinese characters case WM_CHAR: { ifpressed; static std::string getwparam; getwparam.push_back( wParam ); SetWindowText(hwnd,…
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…
When modify the keyboard layout of explorer.exe by WM_INPUTLANGCHANGEREQUEST, the keyboard will always be automatically reverted to ENG
I am using SendMessage in AHK v2 (Sorry but I have not yet mastered the syntax for hooking the keyboard and using Windows API in other languages. ) to call WM_INPUTLANGCHANGEREQUEST in order to create a quick input method switcher. When tested in other…
Thumbnail Preview Title Icon
Is it possible to customize/modify the icon showed in the title bar of a thumbnail? For example, if a window doesn't have an icon in the title bar, its thumbnail does display an icon... the standard application icon (please see attachments). Is there any…
Not able to decode file permissions mask by using Win32API
Hello, I'm trying , by using Win32 API on C langage , to retrieve owner and permissions of a file .Retrieving onwer is O.K. Concerning retrieving file permissions , I'm able to list the 5 ACEs related to the security descriptor of the file. The DACL…
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…
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+…
MSWord closes unexpectedly when clicking "Print" button in "Envelopes and Labels" dialog
I'm embedding MSWord in my WinForms app using Microsoft Library, and I'm following this guideline to set the window style to ws_child to support the child window. However, when I click the "Print" button in the "Envelopes and Labels"…