Open and close access to USB and Cdrome

Dani_S 3,786 Reputation points
2024-06-24T03:51:37.24+00:00

Hi, I want to build client on Maui on windows that do the following things. In computer that has no antivirus. When client is loading it will close all the access to USB and Cdrome through registry. And when user insert USB or Cdrome the system identify it and give me access to device for this client only .Is it possible? If yes how? Thanks in advance,


update

I want this app on windows.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,501 questions
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 65,231 Reputation points
    2024-06-27T15:57:24.9666667+00:00

    you probably want to write an intercept driver. see the windows drivers sdk:

    https://learn.microsoft.com/en-us/windows-hardware/drivers/

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.