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…
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…
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.…
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…
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…
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…
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…
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…
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
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…
Best C and C++ Code Obfuscator?
Hi, Which are most advanced obfuscators for C and C++ to protect code? Thanks
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++…
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 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"…
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…
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…
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…
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++] [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. …
[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…