Issue with GetAddrInfoExW: Only Receiving IPv4 Addresses, Not IPv6
Hello, I'm using the GetAddrInfoExW function in my application to resolve both IPv4 and IPv6 addresses for a given hostname (e.g., google.com). However, I'm only receiving IPv4 addresses in the results, and I don't see any IPv6 addresses, even though I…
Refresh rate control on IDXGISwapChain1
I play video on my application on xbox with 120Hz, but it seems to be played with 60Hz. Interval between time samples is ~16ms instead of 8ms. I checked few different videos with different fps and the result is the same (I thought that the problem is…
What does the POINTER_INFO frameId really mean or guarantee?
I'm having trouble understanding what the frameId really means. Are all devices generating simultaneous pointers combined into one frame with the same frame id? I am having trouble understanding this description: "An identifier common to multiple…
Error State Icon on Placeholder
Hi, we are developping a sync engine using Cloud Filter API. If we place a file in a synced folder, the upload to the server might fail on any reason. We would like to set the file state to an error icon instead of the Pending or In Sync state…
how to read cross stich pattern file ?
how to read cross stitch parttern file ? I have cross stitch file but it can not upload it here it is .xsd (or .xsp) files?
Use Win32 API to simulate Windows NB as BLE peripheral
Dear Team, I am trying to develop a Win32 console app and use Win32 API to simulate Windows NB as BLE peripheral. I have found examples of UWP, but I don’t understand the usage of Win32 API. Is there any example that I can refer to? Thank you!!
SymFromAddr api returning 487 error code
SymFromAddr api returning 487 error codex for the following code: DWORD64 dwDisplacement = 0; char buffer[sizeof(SYMBOL_INFO) + MAX_SYM_NAME * sizeof(CHAR)]; PSYMBOL_INFO pSymbol = (PSYMBOL_INFO)buffer; pSymbol->SizeOfStruct =…
How to avoid minimize on show desktop or peek desktop from an application.
Hi, I am trying to create a desktop widget like application which need to be visible on desktop at all times. To hide it from taskbar and alt + tab menu I am using WS_EX_TOOLWINDOW window style. The problem is the application is minimized when using Peek…
Information not available, no symbols loaded for AppxPackaging.dll
Hi guys, I want to validate AppxBlockMap.xml through AppxSignature.p7x. I used IAppxFactory::CreateValidatedBlockMapReader method (appxpackaging.h) to validate the blockmap. When I debuged my code, the result seems good. But I noticed there are…
C++ animate anything correctly
I want to understand how to correctly display something in win32. For example, how to make a square that will move with sin() up and down, so that it is correct and not as I did it through CreateCompatibleDC and create a Bitmap and then move all of it…
Issue while Writing\Updating .ini files using RegSetValueEx\WritePrivateProfileString
I’m encountering an issue while updating an INI file. Initially, I attempted to write the value to the registry and then update the INI file using the RegSetValueEx() WinAPI. Although the function executes without returning any errors, the value is not…
why use SetupDiGetDeviceRegistryProperty get SPDRP_CLASSGUID always return the same id
I use the following demo to simultaneously obtain the instanceId and guid of the device, but on my computer, all devices obtain the same SPDRP_CLASSGUID value. Why is this? int main() { HDEVINFO hDeviceInfoSet =…
Windows Function to get network related details.
Hello Folks, I am looking forward to implement Windows Functions to print the following windows server's network related details. all network interface name, type, ip dhcp, mtu, ip address, ip cidr, default gateway address and matrix, hardware address…
IUpdate2::CopyToCache method Windows 11
It seems that this method no longer works on Windows 11: https://learn.microsoft.com/en-us/windows/win32/api/wuapi/nf-wuapi-iupdate2-copytocache Interface not registered Do you have an idea?
Choosing Between GetAddrinfoEx and DNSQueryEx for Efficiently Resolving Multiple IP Addresses from Hostnames
Hi everyone, I’m working on a project where I need to resolve hostnames or Fully Qualified Domain Names (FQDNs) to a list of IP addresses. The use case involves resolving a hostname to about a dozen or two IP addresses, and I’m evaluating which function…
Question about Using SetFileCompletionNotificationModes with IOCP in Non-blocking Winsock Operations
Hello everyone, I'm currently working on a project where I am using WinSock to create both UDP and TCP sockets. The sockets are set in non-blocking mode using ioctl, and I am using overlapped operations with an I/O Completion Port (IOCP) to handle…
VS2022 Resource Editor Problems
I've been following through the Microsoft Learn documentation for Getting Started with Win32 and C++ but I've run into a lot of problems with the resource editor in Visual Studio 2022. (…
How should we manage the Memory of the parameters passed by OS in WindowProc
Hi, Im working in Win32 desktop application in cpp. When a Window Proc is triggered with some WM_* msg, We may receive some LPARAM and WPARAM data. These parameters are different concerning the MSG passed. This can hold variable-length data like pointers…
How can I create a Gaussian blur with a printer render target using Direct2D?
I am using Direct2D to generate diagrams. I want to create a glow-effect around diagram boxes, using Gaussian blur. In order to do this, I paint a rectangle to an off-screen render target, blur it, and then get the off-screen render target's bitmap and…
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. …