2,567 questions with Windows API - Win32 tags

Sort by: Updated
2 answers

WinSock2.h generates expression before comma has no effect warning

This is because of while (0, 0) in the following macros: #define FD_CLR(fd, set) do { \ u_int __i; \ for (__i = 0; __i < ((fd_set FAR *)(set))->fd_count ; __i++) { \ if (((fd_set FAR *)(set))->fd_array[__i] == fd) { \ …

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,567 questions
asked 2020-10-02T16:47:37.563+00:00
Ilia - 1 Reputation point
commented 2020-10-09T02:10:59.933+00:00
Drake Wu - MSFT 991 Reputation points
2 answers

How to specify PeerTokenAccessMask in WSAQuerySocketSecurity?

The PeerTokenAccessMask field is a ULONG in SOCKET_SECURITY_QUERY_TEMPLATE. I need to set it to some value to get PeerApplicationAccessTokenHandle and/or PeerMachineAccessTokenHandle. However I cannot find anywhere how that mask field can be set. …

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,567 questions
asked 2020-09-14T20:44:28.233+00:00
beachbear 1 Reputation point
commented 2020-10-09T01:17:48.17+00:00
Fei Xue - MSFT 1,111 Reputation points
4 answers One of the answers was accepted by the question author.

Finding memory leaks

My code runs fine, but when it finishes in debug mode I see many memory leaks. Here are a few: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgrpt.c(153) : {1208} crt block at 0x273D9DA8, subtype 0, 16 bytes long. Data: < #a > 00 00 00…

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,567 questions
asked 2020-10-07T14:11:16.637+00:00
Don Dilworth 211 Reputation points
commented 2020-10-08T20:23:12.867+00:00
Darran Rowe 691 Reputation points
1 answer One of the answers was accepted by the question author.

WebClient.DownloadFile can't establish secure SSL/TLS channel?

I cannot download a publicly available file from a government webserver using .Net framework 4.8 or .Net core 3.1. I am able to download the file using Chrome, Firefox, or curl. WebClient.DownloadFile() worked for over a year as an Azure 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,567 questions
asked 2020-10-07T02:02:24.313+00:00
J Reynolds 21 Reputation points
accepted 2020-10-07T13:51:18.227+00:00
J Reynolds 21 Reputation points
0 answers

doubt related to RAM

How the Data Loads on RAM with exact proof ? OR how when program runs it first loads on RAM we store data inside a variable how we come to know that it is there in RAM while processing?

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,567 questions
asked 2020-10-06T19:29:02.117+00:00
Suyog Kumawat 1 Reputation point
commented 2020-10-07T08:28:13.417+00:00
Drake Wu - MSFT 991 Reputation points
0 answers

DirectShow / WMF (KSPROPERTY_CAMERACONTROL_EXTENDED_EXPOSUREMODE)

*Before I ask my question I need to state that I am primarily a Linux C++ developer and don't have that much experience with writing Windows applications. * Background For some time, I have been working on a scientific imaging application 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,567 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,674 questions
asked 2020-10-06T01:29:06.24+00:00
AmandaM 1 Reputation point
commented 2020-10-07T01:37:53.413+00:00
Drake Wu - MSFT 991 Reputation points
1 answer

Win32 websocket sample

Hello, I found a wensocket sample code in: Websocket But I need few hints: Is it a server or client ? I tried running it. It runs and exist without any error. Does not wait for a client (e.g chrome to connect). Can you please advise ? …

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,567 questions
asked 2020-10-05T07:20:24.763+00:00
MAORVERED MAORVERED 21 Reputation points
answered 2020-10-06T06:55:10.297+00:00
Strive Sun-MSFT 426 Reputation points
1 answer

Provisioning support for .appinstaller?

We are in an enterprise environment and would like to use the .appinstaller file to install a UWP app provisioned for all users to keep our in-house app up to date. The reason we need the app provisioned for all users is the need to be on shared…

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,567 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,939 questions
asked 2020-10-02T13:50:42.417+00:00
Thomas Mullen 6 Reputation points
commented 2020-10-05T01:23:00.56+00:00
Drake Wu - MSFT 991 Reputation points
1 answer

Memory isn't deallocated - ActiveX control (.NET/C#) used in an MFC application

I have a memory problem with a COM/OLE/ActiveX component. But I don't know more than the basics of ActiveX... I'm reaching out to the ActiveX experts here - I'd be VERY grateful for some help!! I'm doing some maintenance on an old MFC project (a Win32…

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,567 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,674 questions
asked 2020-10-02T11:08:02.587+00:00
Anders Olsson 1 Reputation point
answered 2020-10-05T01:12:55.05+00:00
RLWA32 44,826 Reputation points
3 answers One of the answers was accepted by the question author.

Win32 API: How to define line spacing in a static text

Hi! I have a C++ Win32 application where I use a standard form and a static text inside it. I need to extend the line spacing (space between lines) and I did not find any way to do it. I know I can change the font of the control but the line spacing is…

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,567 questions
asked 2020-09-24T18:06:01.857+00:00
Pablo Glomby 186 Reputation points
accepted 2020-10-02T18:53:14.713+00:00
Pablo Glomby 186 Reputation points
0 answers

Media Foundation Capture Engine is not compatible with Isochronous Endpoint camera devices in Windows 8.1 OS

Hi, We have developed a Win32 Application for streaming and recording purposes. Recording is implemented using the capture engine. The problem is the compatibility of Isochronous endpoint devices with windows 8 OS's. When the same device is updated…

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,567 questions
asked 2020-10-01T07:38:02.363+00:00
Kirubakaran K 1 Reputation point
commented 2020-10-02T01:53:17.797+00:00
Drake Wu - MSFT 991 Reputation points
1 answer One of the answers was accepted by the question author.

GetSaveFileName does not display dialog

I have a class that wraps the GetSaveFileName api for use in VBA. I don't get any errors. The call just steps over the function without showing the dialog. I've done a lot of searching and suspect that this might be a bug introduced by Windows 10. 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,567 questions
asked 2020-09-29T16:17:58.87+00:00
Ed Jobe 181 Reputation points
commented 2020-09-29T16:36:25.173+00:00
RLWA32 44,826 Reputation points
1 answer

Installing certificates to the legacy keystore (forcing to the legacy store)

We are creating a utility to install certificates automatically (as required) to the windows keystore. We are using the windows cryptography api for this. (Earlier we looked into certutil, however this differs between various windows versions and…

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,567 questions
asked 2020-09-25T21:36:49.29+00:00
Stefan 1 Reputation point
commented 2020-09-28T06:30:14.227+00:00
Rita Han - MSFT 2,161 Reputation points
1 answer

is Windows Graphics Capture API return such as DXGI_OUTDUPL_FRAME_INFO(LastPresentTime,LastMouseUpdateTime)

hi,I'm used dxgi to capture the windows screen, but it draw cursor on the texture2d too slow with DrawIconEx. and I find windows graphics capture can capture cursor,but there is some problem. it can't detect the image change or cursor change(such as…

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,567 questions
asked 2020-09-17T02:56:10.627+00:00
hao chen 1 Reputation point
commented 2020-09-28T05:45:39.207+00:00
Rita Han - MSFT 2,161 Reputation points
2 answers

UI Automation -Invoke:An empty dialog is opened

I have a Windows application(Print Driver). We use UI Automation to click a button("Authentication" button). After clicking the button, the Windows application will open an "Authentication" dialog, we need to provide the user name…

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,567 questions
asked 2020-09-08T05:57:21.817+00:00
ZhangHX 1 Reputation point
answered 2020-09-28T03:10:04.707+00:00
Rita Han - MSFT 2,161 Reputation points
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,567 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,674 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,567 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,567 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,567 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,567 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