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) { \ …
![](https://techprofile.blob.core.windows.net/images/YjghgMRei0m22AUG6PnvUQ.png?8D843E)
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. …
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…
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…
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?
![](https://techprofile.blob.core.windows.net/images/YjghgMRei0m22AUG6PnvUQ.png?8D843E)
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…
![](https://techprofile.blob.core.windows.net/images/YjghgMRei0m22AUG6PnvUQ.png?8D843E)
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 ? …
![](https://techprofile.blob.core.windows.net/images/_hqlMJXppUulWFfRh8cwtQ.png?8D845A)
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…
![](https://techprofile.blob.core.windows.net/images/YjghgMRei0m22AUG6PnvUQ.png?8D843E)
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…
![](https://techprofile.blob.core.windows.net/images/_5e-jRvlCkWlkMrV8cdbJg.png?8D8365)
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…
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…
![](https://techprofile.blob.core.windows.net/images/YjghgMRei0m22AUG6PnvUQ.png?8D843E)
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…
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…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
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…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
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…
![](https://techprofile.blob.core.windows.net/images/Vf3ziQphRU-nMLJsRbeAlg.png?8D8BC4)
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)