2,949 questions with Windows development | Windows API - Win32 tags
How to implement IStorageProviderCopyHook in a Desktop Bridge application
Greetings, I would like to know what is a proper way to implement the IStorageProviderCopyHook interface in the context of a 'desktop bridge' application for a cloud sync engine (using the cloud filter API). The available documentation…
Windows development | Windows API - Win32
How to create a shell extension using IExplorerCommand for Windows 11, 10, 8, and 7?
After reading Microsoft's documentation, Raymond Chen's blog, NanaZip implementation, and TortoiseSVN/TortoiseGit implementations, I created a "modern" shell extension implementing IClassFactory, IExplorerCommand, and IObjectWithSelection. …
Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | User experience | Other
[CloudMirror] Placeholder folders remain on disk after uninstall
I have noticed that when I have dehydrated placeholder documents, on uninstall, these disappear, but the directory structure remains Is there some way to configure these placeholder folders to be removed on uninstall too? Its a problem because when…
Windows development | Windows API - Win32
CF_CALLBACK_TYPE_CANCEL_FETCH_PLACEHOLDERS does not ever seem to be called
I refer to https://dotnet.territoriali.olinfo.it/en-us/windows/win32/api/cfapi/ne-cfapi-cf_callback_type CF_CALLBACK_TYPE_CANCEL_FETCH_PLACEHOLDERS This callback is used to inform the sync provider that the contents of a placeholder directory are no longer needed,…
Windows development | Windows API - Win32
Cloud Sync Engine cloud files search (SearchHandlerFactory) does not seem to work with Explorer
The cloud sync engine documentation is pretty clear on this: https://dotnet.territoriali.olinfo.it/en-us/windows/win32/cfapi/build-a-cloud-file-sync-engine#cloud-files-search I should be able implement IStorageProviderSearchHandlerFactory…
Windows development | Windows API - Win32
How to have more than 100 million entries in a Win32 virtual list view
Hi, We need to manage more than 100 million entries in a Win32 virtual list view but it looks like this is an undocumented limit to the number of entries. Trying to add more than 100 million entries will result in it being capped and only showing up to…
Windows development | Windows API - Win32
In Windows 11, is it possible to write raw data to \\.\Physicaldisk0 using POWERSHELL?
Hello, In Windows 11 version 25h2, is it possible to write to \.\Physicaldisk0 (i.e., C:, the boot disk) in raw format using the PowerShell tool, or not? Is there anything to prove this? Also, I was able to read \.\Physicaldisk0 in raw (read-only) form.…
Windows development | Windows API - Win32
how to know if the win32 window is Activated using keyboard keys
Hello, I have a win32 window with a window proc an event Handler and I want to know if that window is Activated using the Mouse or the Keyboard for the mouse I have used the WM_MOUSEACTIVATE but I don't know how to do it with the keyboard also how to get…
Windows development | Windows API - Win32
How I could add The Parent-Child relation ship into my Win32 GUI
Hey, I want the users that are going to use the GUI Framework to be able to add Windows which have the Parent-Child relation ship but I want it like the winui3 style it creates a window but you still can control the parent window and when you close the…
Windows development | Windows API - Win32
how to create this 3d image using direct 3d?
I want to create this 3d image using direct3d. then I can rotate and click the sub image in it. should I : 1.create this using other 3d software and then using direct3d? 2.just create them using direct3d? but how to add the light ?
Windows development | Windows API - Win32
Dbghelp API fails to find symbol files in downstream store
Over time the local store that I used for downloaded symbol files had become quite large. I considered using the AgeStore utility to prune it but it balked because file system last access updating was disabled. So I decided to write a utility using the…
Windows development | Windows API - Win32
Error Handling in user32.lib
CreateWindowEx is trying to call a NULL defined WndProc and silently crashes. If I register a WNDCLASS like this: WNDCLASSA wc = { .lpszClassName = "Test" }; RegisterClassA(&wc); the class is registered successfully. But if…
Windows development | Windows API - Win32
^C sent to the stdin of a program running under a pseudo console does not generate break
I've written a program that launches a console application within a pseudoconsole. Following the documentation, I: Create two anonymous pipes. Call CreatePseudoConsole, passing in the appropriate end of each of the pipes for standard input &…
Windows development | Windows API - Win32
Supported way to detect input or hotkey when Windows session is locked (secure desktop)
Hello, We need to validate a supported architecture for implementing a user-initiated trigger on Windows. Scenario: We have a Windows application or Windows Service running on a client machine. The user session may be signed in but locked. We need to…
Windows development | Windows API - Win32
Need license infomation for BITS service
Hi, Can you provide the license information to use BITS interface https://dotnet.territoriali.olinfo.it/en-us/windows/win32/bits/bits-dot-net Thanks, Kishore
Windows development | Windows API - Win32
How to avoid false positive where modem lines go High upon serial port opening using win32?
I'm using the Win32 library to interact with serial ports. Using pretty standard code, when I call createFile(), I notice that all modem lines suddenly send back a HIGH signal once the call completes. This is causing false positives in my application.…
Windows development | Windows API - Win32
NCryptSetProperty returns error 0x80090026 while deriving session keys using NCryptDeriveKey
I am trying to use NCryptDeriveKey to derive session encryption and authentication keys using HKDF. I can generate ephemeral key-pair NCryptCreatePersistedKey and return the key handle and public key. In another function for deriving session keys I am…
Windows development | Windows API - Win32
OutputDebugStringA not working at all
Neither OutputDebugStringA nor OutputDebugStringB (ODS) are working in my environment, Windows 11, dell intel machine, Visual Studio Community 2022 64-bit. The symptom is that the call is made and returns without error, but the output does not show up…
Windows development | Windows API - Win32
Correct usage of DisplayTask::SetSignal
I can't get Windows.Display.Devices.Core DisplayTask::SetSignal to work as documented Sample application compiles, runs and presents content to my monitor I have created a DisplayFence by opening a shared handle to a D3D11Fence and passed that in as the…
Windows development | Windows API - Win32
new to microsoft learn
hello, I'm new to microsoft learn and I want to read some documentations related to OS development and windows applications development (e.g. direct2d, Win32API, universal C runtime, etc...) but I don't know the suitable "reading…