2,492 questions with Windows API - Win32 tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

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?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,608 questions
asked 2020-09-24T09:09:48.783+00:00
youqiang wu 21 Reputation points
accepted 2020-09-28T02:21:58.153+00:00
youqiang wu 21 Reputation points
1 answer One of the answers was accepted by the question author.

Missing VfW methods.

In which DLL are the following VfW methods (Vfw.h) located? /**************************************************************************** * * call these to start stop using VfW from your app. * …

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-27T19:09:46.02+00:00
Tony 96 Reputation points
commented 2020-09-27T22:58:20.357+00:00
Tony 96 Reputation points
3 answers One of the answers was accepted by the question author.

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-26T20:11:17.07+00:00
MAORVERED MAORVERED 21 Reputation points
accepted 2020-09-27T15:17:03.233+00:00
MAORVERED MAORVERED 21 Reputation points
1 answer

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-08-28T07:21:56.07+00:00
JunPing Li 1 Reputation point
commented 2020-09-27T05:31:32.17+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers One of the answers was accepted by the question author.

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-18T12:13:45.91+00:00
FelixChen 21 Reputation points
commented 2020-09-25T06:50:56.227+00:00
Rita Han - MSFT 2,161 Reputation points
1 answer

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-24T08:49:25.033+00:00
Frederik Juul 1 Reputation point
commented 2020-09-25T01:25:20.817+00:00
Rita Han - MSFT 2,161 Reputation points
0 answers

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-24T04:01:57.417+00:00
Davide Beatrici 1 Reputation point
commented 2020-09-24T06:02:16.77+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

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?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,814 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,608 questions
asked 2020-09-19T13:08:24.333+00:00
ALESSANDRO BELLIA 1 Reputation point
commented 2020-09-23T06:23:37.227+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

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.…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-07-27T14:25:57.127+00:00
Andrew Turnbull 1 Reputation point
commented 2020-09-22T14:36:30.007+00:00
Andrew Turnbull 1 Reputation point
0 answers

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.…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-17T11:05:50.693+00:00
satyan 1 Reputation point
commented 2020-09-22T11:58:00.003+00:00
RLWA32 42,366 Reputation points
1 answer One of the answers was accepted by the question author.

[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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,608 questions
asked 2020-09-05T20:16:50.627+00:00
Oliver Sradnick 21 Reputation points
commented 2020-09-20T15:47:06.317+00:00
Oliver Sradnick 21 Reputation points
1 answer One of the answers was accepted by the question author.

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?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-16T04:28:35.32+00:00
WebDAV 21 Reputation points
accepted 2020-09-20T07:21:22.353+00:00
WebDAV 21 Reputation points
1 answer

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?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-11T13:00:46.2+00:00
ashutosh singh 1 Reputation point
commented 2020-09-17T07:15:38.793+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,608 questions
asked 2020-09-14T07:34:14.15+00:00
Shyamala Devi 1 Reputation point
commented 2020-09-16T08:17:08.93+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-12T02:02:37.467+00:00
loop123123 1 Reputation point
commented 2020-09-16T08:13:12.727+00:00
Rita Han - MSFT 2,161 Reputation points
3 answers One of the answers was accepted by the question author.

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,…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-15T09:24:38.743+00:00
Robins.Lee 21 Reputation points
answered 2020-09-16T03:10:33.247+00:00
Robins.Lee 21 Reputation points
1 answer One of the answers was accepted by the question author.

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 …

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-09-10T15:51:52.513+00:00
p_jaholkowski 41 Reputation points
accepted 2020-09-15T10:31:03.693+00:00
p_jaholkowski 41 Reputation points
1 answer

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-08-14T09:50:38.29+00:00
Chris Wheeler 1 Reputation point
commented 2020-09-15T05:31:56.617+00:00
WebDAV 106 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,868 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-08-21T07:09:00.64+00:00
Johannes Bergman 41 Reputation points
commented 2020-09-14T08:47:11.613+00:00
Johannes Bergman 41 Reputation points
0 answers

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,492 questions
asked 2020-08-02T12:28:51.97+00:00
Ryan Cheung 1 Reputation point
commented 2020-09-10T23:50:59.533+00:00
Ryan Cheung 1 Reputation point