3,837 questions with C++-related tags

Sort by: Updated
1 answer

Using C++, I want to remove (not deny) Write permission alone from a user trustee with Full Control permission in Windows NTFS Folder.

I want to implement a C++ program that removes the "Write" permission alone for a user trustee with "Full Control" permission over a folder on a Windows NTFS drive. I tried to use the SetEntriesInAcl() function from the aclapi.h…

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.
5,756 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,717 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,837 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,990 questions
asked 2025-01-31T07:07:53.5766667+00:00
Praveenkumar S 0 Reputation points
answered 2025-01-31T17:07:04.8266667+00:00
RLWA32 46,581 Reputation points
1 answer

Full duplex operation, functions C++ C#

I have a C# application and a C++ application. Between the two, data should now be exchanged. In C# ReceiveDataFromCPP(String data) SendDatatoCPP(string data) In C++ ReceiveDataFromCSharp(String data) SendDatatoCSharp(string…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
342 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.
11,261 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,837 questions
asked 2025-01-30T18:47:23.8+00:00
Noah Aas 545 Reputation points
edited a comment 2025-01-31T15:07:45.1066667+00:00
Castorix31 86,516 Reputation points
0 answers

ICoreWebView2GetCookiesCompletedHandler is not called if the WebView is idle

Hello, I am using ICoreWebView2CookieManager and am trying to fetch a list of cookies via GetCookies. If i have a WebView that is constantly navigating to various pages it is eventually called. But if i have a hidden WebView, that does nothing but idle.…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,437 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,837 questions
asked 2025-01-29T12:29:56.9433333+00:00
Balash, Omer 1 Reputation point
commented 2025-01-30T07:31:37.9433333+00:00
Minxin Yu 12,506 Reputation points Microsoft Vendor
0 answers

Zombie COM Surrogate (WinInetCacheServer) processes when running MAPI in a 64-bit MFC Application via Task Scheduler

I have a 32-bit C++ MFC Windows application that calls MAPI via the Windows MAPI API. Recently, I compiled the application to 64-bit, and it runs fine when launched manually. However, when I schedule the same 64-bit version to run via Windows Task…

Outlook
Outlook
A family of Microsoft email and calendar products.
4,388 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,837 questions
asked 2024-10-11T05:58:27.6133333+00:00
Dave 196 Reputation points
commented 2025-01-29T19:45:30.6566667+00:00
Constantinos Iliopoulos 0 Reputation points
1 answer

Why am I getting the compile error code 2248 for a friend function to a nested class?

Hello, I am developing a cross platform library and I am running into a compile error which I only get in Windows and not Linux. I have declared the operator<<() as a friend inside of a class which has a nested struct within it. However, the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,397 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,622 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,837 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,600 questions
asked 2024-09-17T16:17:28.97+00:00
w.t.s 0 Reputation points
commented 2025-01-29T02:19:39.14+00:00
w.t.s 0 Reputation points
1 answer

SetSystemCursor not honoring cursor size

I'm currently trying to set the system cursor to loading cursor while I'm processing certain information on my software then restoring the default cursor. But I'm facing an issue when my computer accessibility configuration has the size of mouse computer…

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,717 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,837 questions
asked 2025-01-23T20:07:56.85+00:00
Julian Castillo 0 Reputation points
commented 2025-01-28T16:09:31.37+00:00
Julian Castillo 0 Reputation points
1 answer

Any other way to open UMCP prompt while the user logon, without enable UMCP flag and unexpired password using custom credential provider in C++

I am using custom credential provider and I have to validate password on user logon with my custom validation condition if the password failed my condition I have to open the User must change password prompt by without enable UMCP flag in AD. There is…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,622 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,835 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,837 questions
asked 2023-07-26T09:42:56.0866667+00:00
Vishnu 0 Reputation points
accepted 2025-01-28T09:40:49.2766667+00:00
Vishnu 0 Reputation points
0 answers

After VS2022 version 17.12.0 update Address Sanitizer no longer works for my C++ project

I've just updated visual studio to the version in the topic and the project which worked ok 5 minutes ago with Asan on (/fsanitize=address) now throws this error when starting the debugger: The procedure entry point __sanitizer_ignore_free_hook____dll…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,397 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,837 questions
asked 2024-11-13T12:56:41.03+00:00
Andrei Hanganu 0 Reputation points
commented 2025-01-27T11:05:18.0333333+00:00
Andrei Hanganu 0 Reputation points
0 answers

How to disable auto warning focus in Visual Studio 2022 C++

How can I disable this? When I press build, visual studio is focuses on the first warning / error. It is really annoying. Thanks, Fabo

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,397 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,837 questions
asked 2025-01-24T10:22:36.2333333+00:00
Zsolt Fabian 0 Reputation points
edited a comment 2025-01-27T07:35:44.2633333+00:00
Tianyu Sun-MSFT 32,531 Reputation points Microsoft Vendor
0 answers

Why do I have problems when trying to import a header unit?

I used VS Developer PowerShell to create a header unit file from a header file. cl /std:c++20 /exportHeader /headerName:quote HeadersBase.h Not sure if that was the right thing to do. Then I created an empty project to see if I can import the header unit…

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.
5,756 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,837 questions
asked 2024-12-30T21:49:19.45+00:00
CDev-8220 220 Reputation points
commented 2025-01-25T13:01:43.96+00:00
CDev-8220 220 Reputation points
3 answers

Best C and C++ Code Obfuscator?

Hi, Which are most advanced obfuscators for C and C++ to protect code? Thanks

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,837 questions
asked 2023-02-10T06:23:26.4933333+00:00
Mann Alex 5 Reputation points
edited a comment 2025-01-24T14:34:36.04+00:00
Khan 0 Reputation points
2 answers One of the answers was accepted by the question author.

Disable pause after execution 2

What happened to the first post where I asked this question? Why are there still these puzzle verifications when posting? -- It's been asked for years, and I was wondering if something has finally been done about it. I'd like after an execution of a c++…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,397 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,837 questions
asked 2025-01-09T19:09:28.4033333+00:00
z l 20 Reputation points
edited the question 2025-01-24T01:35:36.39+00:00
Jack J Jun 24,631 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

When Setting a Breakpoint in C Code "Break Mode" Pops Up

Running 17.12.3 (same problem with later versions) on my desktop under Win10 Pro (fully updated), when I set a breakpoint in my code (via the editor), "The Application is in Break Mode" pops up. In the past, the editor would show execution…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,397 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,837 questions
asked 2025-01-12T16:40:36.83+00:00
Bob Smith 20 Reputation points
edited the question 2025-01-24T01:35:08.7133333+00:00
Jack J Jun 24,631 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Visual Studio 2022 "Cannot open source file" Problem

Hi, I have a problem , when i installed Visual Studio 2022 community i selected only this in installation detail C++ ATL and Windows 10 DSK (10.0.2348.0) and intellicode . when i run code , it appears "can't open source file "iostream"…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,397 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,837 questions
asked 2025-01-23T10:05:55.2466667+00:00
Mohamed El-sherif 20 Reputation points
edited the question 2025-01-23T16:44:09.58+00:00
Mohamed El-sherif 20 Reputation points
2 answers One of the answers was accepted by the question author.

How to edit .rc file

Which edit IDE is recommend for .rc file https://github.com/chromiumembedded/cef ... /shared.rc Simple edits can be done by hand (it’s a text file), or use Visual Studio for more complex edits like defining dialogs, etc. See…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,397 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,837 questions
asked 2025-01-08T03:23:05.77+00:00
alice alice 100 Reputation points
accepted 2025-01-23T00:27:04.83+00:00
alice alice 100 Reputation points
1 answer

How to find the Disk partition style using IOCTL?

I am trying to find the disk partition style using IOCTL. Earlier, I was using WMI, but in this particular code, I need to provide the physical drive path. What should be given as input, and how can I find or determine which physical drive path to…

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,837 questions
asked 2025-01-16T07:18:06.24+00:00
Gopika Lakshmi 85 Reputation points
commented 2025-01-22T10:37:15.48+00:00
RLWA32 46,581 Reputation points
0 answers

Solution build compiled without error but no .sys file created

I am currently working on a file system mini-filter driver in Windows. I've set up my development environment with the following: Development Tools: Visual Studio (latest version) Windows Driver Kit (WDK) Windows SDK Setup Details: I configured the…

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,837 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,600 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
153 questions
asked 2025-01-18T18:18:26.8033333+00:00
Beast 0 Reputation points
edited the question 2025-01-22T06:34:05.32+00:00
Minxin Yu 12,506 Reputation points Microsoft Vendor
1 answer

how to get firmware type of windows?

I tried the below method, but it seems vague. if (EnablePrivilege(SE_SYSTEM_ENVIRONMENT_PRIVILEGE) != ERROR_SUCCESS) { return 0; //(unknown) } BYTE buffer[1]; DWORD result = GetFirmwareEnvironmentVariableW(SECURE_BOOT, EFI_GUID, buffer,…

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,837 questions
asked 2025-01-16T07:06:30.9433333+00:00
Gopika Lakshmi 85 Reputation points
commented 2025-01-21T13:52:48.87+00:00
RLWA32 46,581 Reputation points
1 answer One of the answers was accepted by the question author.

[C++] [VS 2022] How to ignore warnings from external libraries

Hello, I have a C++ project and I would like to treat my warnings as errors (/W4 /WX). My project has various dependencies on various libraries (using vcpkg), and for some reason warnings from their headers are shown during compilations. …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,397 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,837 questions
asked 2022-11-14T17:55:26.163+00:00
Darky 31 Reputation points
commented 2025-01-21T11:38:00.2533333+00:00
Darran Rowe 1,426 Reputation points
2 answers One of the answers was accepted by the question author.

[Beginner] Multithreading C++ Socket

In C++ (well I think in every programming language) what is better to do when dealing with multithreading socket? Cap the number of threads it can execute the requests so that you always have 1/2 thread available for accepting new connections? In this…

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,837 questions
asked 2025-01-14T17:52:25.7733333+00:00
sValentin 81 Reputation points
accepted 2025-01-21T05:54:31.8366667+00:00
sValentin 81 Reputation points