3,584 questions with C++-related tags

Sort by: Updated
2 answers

Get deleted item from recyclebin

Task: I need to get deleted item having SHITEMID data. SHITEMID is defined as: typedef struct _ITEMIDLIST { SHITEMID mkid; }ITEMIDLIST; defined in C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\shtypes.h I have the following code to get…

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,584 questions
asked 2024-06-11T13:21:13.9233333+00:00
Flaviu_ 931 Reputation points
answered 2024-06-12T11:37:46.58+00:00
RLWA32 41,811 Reputation points
1 answer

NotifyIpInterfaceChange function (netioapi.h) does not notify on manual DNS changes

I work on the c-ares open source asynchronous DNS library (https://c-ares.org) and we have recently added automatic configuration reloading when we detect a network configuration change has occurred. We get notifications properly when network…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,916 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,469 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,584 questions
asked 2024-06-05T16:21:55.43+00:00
Brad House 0 Reputation points
commented 2024-06-12T08:40:04.97+00:00
Gary Nebbett 5,746 Reputation points
1 answer

How to diable keyboard

I want to disable keyboard using toggle switch and these are my code I don't know what the command is to disable keyboard using toggle Switch. please help me I am beginner in Win UI (C++/CX & C++/WinRT). <! --xaml --> <ToggleSwitch…

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,584 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
777 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,589 questions
asked 2024-06-08T14:59:37.5266667+00:00
Raman Singh 0 Reputation points
commented 2024-06-12T01:49:59.4466667+00:00
Minxin Yu 10,456 Reputation points Microsoft Vendor
0 answers

How to send PCIe Message TLP (Vendor Defined Message) from Kernel mode driver

Hi, I'm trying to write a custom driver on windows 10 (with KMDF) to frame & send PCIe TLP packets to PCIe EndPoint with user-defined payload. I'm able to do PCIe CfgRead, CfgWrite operations with READ_REGISTER_ULONG and WRITE_REGISTER_ULONG APIs.…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,748 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,584 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
30 questions
asked 2024-06-11T17:01:52.9166667+00:00
Srinath Prakash 0 Reputation points
1 answer One of the answers was accepted by the question author.

Why do I get this error when I run my project as a .DLL but not as a .EXE

I've got a .dll project in which I'm utilizing Direct 2D to draw on a window. For some reason, one line is continually giving me errors when I attempt to run it: // Create a Direct2D factory. hr = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED,…

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,469 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,584 questions
asked 2024-06-10T22:16:12.87+00:00
Forrest Crawford 20 Reputation points
commented 2024-06-11T10:31:13.3666667+00:00
David Lowndes 2,445 Reputation points MVP
1 answer

Why is my panning in Direct 2D drifting at the edge of the window?

I'm going through a windows tutorial for Direct 2D drawing a small picture on a render target and I decided to try to add pan and zoom capabilities. All is working mostly fine but I'm having an issue with the pan. My is supposed to move in sync with…

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,469 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,584 questions
asked 2024-06-07T01:27:46.7733333+00:00
Forrest Crawford 20 Reputation points
answered 2024-06-11T02:55:05.2066667+00:00
Xiaopo Yang - MSFT 11,741 Reputation points Microsoft Vendor
3 answers

How does Windows' 'Game Controllers' properties connect to a joystick?

The situation: We need to use a new game controller (with a joystick only) hardware on Windows 10 IoT. In the properties of "Game Controllers", moving the joystick is visible in the displayed rectangle with the '+'. Our software using DirectX8…

Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
382 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,584 questions
asked 2024-05-28T14:57:32.6533333+00:00
Robin Holenweger 0 Reputation points
commented 2024-06-11T01:57:03.8+00:00
Minxin Yu 10,456 Reputation points Microsoft Vendor
2 answers

Error code "exited with code -1073741819"

I copied my C code from one window and paste it to another window of VS2019, then i debugged the program and i got the message "Test.exe exited with code -1073741819". I am unable to run the program so please help me out.

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,584 questions
asked 2021-05-01T12:17:22.567+00:00
Anonymous
commented 2024-06-10T23:12:48.9633333+00:00
Snowfon 0 Reputation points
2 answers

How to use DrvDeviceCapabilities in winddiui.h (WITH winspool.lib added but LNK2019 unresolved external symbol STILL occured )

Function DrvDeviceCapabilities(winddiui.h) should be used if I want to identify a printer's color capability according to this link. But there is always a link error (LNK2019 unresolved external symbol ) though I added winspool.lib to Library Directories…

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,584 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
30 questions
asked 2024-06-06T01:41:05.85+00:00
GanDalf LeBron 0 Reputation points
commented 2024-06-10T07:00:04.95+00:00
RLWA32 41,811 Reputation points
2 answers

Cannot find how to get to this "Project Defaults" section "in the General pane in the Property Pages."

On this page in the documentation, it describes a "Project Defaults" section on some ephemeral "Debug Property Pages" page in some properties setting dialog, shown below: However, the documentation gives no explanation…

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,584 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
985 questions
asked 2021-12-13T21:16:25.753+00:00
Grant Robertson 1 Reputation point
answered 2024-06-07T15:41:58.03+00:00
Bruce (SqlWork.com) 59,016 Reputation points
1 answer

Control Flow guard

Hello Team, Control flow guard is only for visual c++ based application or for all c++ compilers or it will works for all like c#, .net based application.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,514 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,458 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,584 questions
asked 2024-06-07T11:13:32.64+00:00
Mashuk Raza 20 Reputation points
commented 2024-06-07T12:35:56.06+00:00
Minxin Yu 10,456 Reputation points Microsoft Vendor
1 answer

Database credential saved in memory.

Hello team, While testing thick client application. I dumped the memory from task manager and process hacker tools and I got database credentials. So How can I mitigate this issues in C++, C# and .net application. Please suggest and explain in details so…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,514 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,458 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,584 questions
asked 2024-06-05T06:44:07.43+00:00
Mashuk Raza 20 Reputation points
edited a comment 2024-06-07T12:15:29.1666667+00:00
Minxin Yu 10,456 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Mitigation for Dll hijacking

Hello Team, I found dll injection in c#, .net and c++thick client applications. So what will be the standard mitigation to prevent dll injection. Please explain in details so that we can mitigate properly C#, .net, C++.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,514 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,458 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,584 questions
asked 2024-06-03T09:12:59.99+00:00
Mashuk Raza 20 Reputation points
commented 2024-06-07T11:03:49.1333333+00:00
Mashuk Raza 20 Reputation points
2 answers

setting visual studio variables, such as VC_LibraryPath_x64 (AGAIN)

I asked this question previously. I received two replies, both of which suggested that the poster had not carefully read my question (and one of which provided incorrect and irrelevant feedback). So, I am reposting. To be clear. A) I have never…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,748 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,584 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
985 questions
asked 2021-07-10T20:52:37.04+00:00
Ed Broughton 31 Reputation points
answered 2024-06-06T16:00:26.0033333+00:00
Bruce (SqlWork.com) 59,016 Reputation points
4 answers

Visual Studio 2015 & 2017 doesn't recognize std

Hello, I've written simple piece of code which compiles and works perfectly on any other program which can compile and run C++, but when I try to run it from VS 2015 on my laptop or on VS 2017 from my other laptop, it won't build it - I get an error…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,748 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,584 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,926 questions
asked 2020-08-25T04:58:53.277+00:00
Elinor Ginzburg 106 Reputation points
commented 2024-06-06T15:02:10.12+00:00
Ms. Gerda Hoppe Jr 0 Reputation points
1 answer

[Asan] Getting assert on launch of application "The application was unable to start correctly(0xc0000142). Click OK to close the application."

[Asan] Getting assert on launch of application "The application was unable to start correctly(0xc0000142). Click OK to close the application." Assert Image mentioned below: image_assert.png Resolved Call Stack mentioned in Microsoft Visual…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,748 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,584 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
958 questions
asked 2024-06-05T06:15:15.6366667+00:00
Ashutosh Kumar Verma 0 Reputation points
answered 2024-06-05T08:53:08.8533333+00:00
Anna Xiu-MSFT 27,091 Reputation points Microsoft Vendor
1 answer

The QueryVirtualMemoryInformation function fails in 32-bit mode because the WIN32_MEMORY_REGION_INFORMATION structure is defined incorrectly.

For the record, I have Windows 11, "Version 10.0.22631 Build 22631". The WIN32_MEMORY_REGION_INFORMATION structure is defined in "memoryapi.h" as the following: typedef struct WIN32_MEMORY_REGION_INFORMATION { PVOID…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,916 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,469 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,584 questions
asked 2024-06-04T11:29:47.0133333+00:00
RoflCopter4 10 Reputation points
commented 2024-06-05T08:28:25.9233333+00:00
RLWA32 41,811 Reputation points
1 answer

How to detect scale factor in Windows 10 in C++

I am trying to detect the display scale factor in Windows 10 in C++. Below is the code I am using. //Code to detect scale void getDisplayScale(double &h_Scale, double &v_Scale) { //auto activeWindow = GetActiveWindow(); HWND…

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,469 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,584 questions
asked 2022-05-23T06:55:03.21+00:00
Azeem Cv 1 Reputation point
commented 2024-06-05T06:18:53.14+00:00
Xiaopo Yang - MSFT 11,741 Reputation points Microsoft Vendor
0 answers

Device Manager does not show 'Bus Reported Device Description'

Hi, i need the device description for my APP, but unfortunately appropriate API calls does not return anything and by investigating the device manager it does not show up either. I am searching the USB enumeration list until the correct vid pid and a…

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,584 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,567 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
30 questions
asked 2024-06-04T06:54:08.5766667+00:00
MO_660 0 Reputation points
edited the question 2024-06-04T09:20:19.4166667+00:00
Minxin Yu 10,456 Reputation points Microsoft Vendor
0 answers

Windows API's CreateFile with CFile gives invalid path error if used drives created with SUBST

A drive is created for a folder using SUBST command. We have a Windows application which reads contents of the and performs some operations. Application does not give any error when read the file path is from actual drive. But when try to read from drive…

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,469 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,584 questions
asked 2024-05-03T12:58:05.9266667+00:00
Dada Khalandhar Gooty 0 Reputation points
commented 2024-06-03T11:17:36.65+00:00
Dada Khalandhar Gooty 0 Reputation points