How to create components with caller information
Currently app_a creates instance app_b by using CoCreateInstance, but how does app_b know which app created it? Is there a function equivalent to CoCreateInstance and can pass input parameters?
Missing VfW methods.
In which DLL are the following VfW methods (Vfw.h) located? /**************************************************************************** * * call these to start stop using VfW from your app. * …
Read S.M.A.R.T attributes with win32
Hello, I have to develop a win32 project that reads all S.M.A.R.T attributes of a fixed disk. I found the following reply and tried it. read-smart-data-from-hdd But not all attributes are displayed. Is there an MS article or another sample code…
ScreenCapture with filter windows
If I want to collect desktop data and filter some windows, what API can Microsoft provide? The magnification API was used before, but the key API MagSetImageScalingCallback is no longer maintained, and there is a memory leak problem with this API, which…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
How to connect AD with LDAPS protocol with DirectoryContext or NtdsApi?
According to following article, setup a LADPS environment: Step by Step Guide to Setup LDAPS on Windows Server After that, I hope to connect the forest by LDAPS protocol, but I found that the .Net class “DirectoryContext” doesn’t provide any…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
WinDNS header/library inconsistency in 32 bit
It seems there's an inconsistency between the compiled DnsAPI.lib library and the windns.h header when compiling in 32 bit. Specifically the issue is with calling conventions: The compiled library is using the __stdcall calling convention, while the…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
Some DNS API functions cause LNK2019 errors in x86 (32 bit) builds
Some DNS API functions (such as DnsServiceConstructInstance(), DnsServiceFreeInstance(), DnsServiceRegister(), DnsServiceDeRegister() and DnsServiceRegisterCancel()) are declared without the WINAPI modifier, causing them to use __cdecl instead of…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
Outdated Windows 10 SDK default option for Desktop development with C+
Hi, I have a little curiosity: why is "Windows 10 SDK 18362" the default option when selecting "Desktop development with C++"? The most updated version should be 19041, right?
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
SetPerTcpConnectionEstats
I have been using this API function a lot on older versions of windows to collect per connection tcp statistics. Its behaviour seems to have changed of late. Previously disabling and re-enabling statistics would reset the counters for the statistics.…
Using EvtQuery API in parallel threads is blocking each other
I am trying to read evtx logs from different machines using EvtQuery API. Each thread will be querying a machine in parallel. But I can observe that all the threads are blocked when the EvtQuery API is called due to an internal critical section wait.…
[TSF-IME] Page size
Hi, i got a question about Text Service Framework, the pages /pagesize and selection index. Do i understand it right that based the the selected candidate the page is set ? Is there a way to get all candidates of the currentpage and/or set a…
Why sync root folder should be Indexed (cfapi)?
CloudMirror sample checks that the sync root folder is indexed. Why is this required? What features will be missing if the sync root is not indexed?
winsock send function in non blocking mode give error 10022
I am trying to create non blocking socket for ssl communication but send function giving me error:10022.so how to fix it?
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
AVI file with inverted image
I've used the sample from https://video2.skills-academy.com/en-us/windows/win32/medfound/tutorial--using-the-sink-writer-to-encode-video and modified it to create as avi file instead of mp4. This works as desired if the input FPS is 30. If I modify it to…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
Should SelectObject be called for each object type after drawing with GDI?
In this MSDN code example, SelectObject(hdc,original) is called only once at the end of the paint code. I guess it replaces the original pen. But it appears that it doesn't replace the original brush. So is that unnecessary? I was under the…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
WMI C++ Application problem WmiMonitorDescriptorMethods WmiGetMonitorRawEEdidV1Block
// ConsoleApplication1.cpp : Defines the entry point for the console application. // include "stdafx.h" define _WIN32_DCOM include <iostream> using namespace std; include <comdef.h> include <Wbemidl.h> pragma comment(lib,…
SymFindFileInPathW returns mismatched modules and symbols
According to https://video2.skills-academy.com/en-us/windows/win32/api/dbghelp/nf-dbghelp-symfindfileinpathw BOOL IMAGEAPI SymFindFileInPathW( HANDLE hprocess, PCWSTR SearchPath, PCWSTR …
cfapi CF_CALLBACK_TYPE_FETCH_PLACEHOLDERS calls back repeatedly
Bringing this here from Stack... I'm working with the cfapi and are attempting to extend the sample project available here https://github.com/Microsoft/Windows-classic-samples/tree/master/Samples/CloudMirror Specifically we are looking to implement…
Using SetParent to dock a window doesn't work on application with uiAccess=true
I'm trying to create a magnification program for accessibility purposes. I want this magnification program to magnify the desktop but also display a docked application that doesn't get magnified. To achieve this I create a TopMost Form set to…
How to hide the OS rendered IME window in TSF(not IMM32) for games running with exclusive fullscreen mode?
For any games(like World of Warcraft Classic) running with exclusive fullscreen mode, the IME Candidate List window has to be renderer by the game manually. To interact with IME in Windows, Windows provide two framework, IMM32 and TSF. IMM32 is for…