Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

USB Drive Disable/Enable

Featured Replies

Hi There,

Myself Abhijit and need some input from your side about DEVCON. I hope you will help me in this regard.

I am working on module in which USB drive needs to be ENABLED or DIABLED through command line argument ON or OFF.

Initially I achieved it by changing registry values for USBSTOR and imagepath location. But as REBOOTING of system is required, I used devcon.exe to enable or disable USB drive. I used command

Devcon disable USBSTOR\DISK* to Disable USB and devcon enable USBSTOR\DISK* to enable USB. Devcon.exe was placed in my code folder.

Now problem is I want to remove devcon dependency and use devcon's code in my application for enabling or disabling USB drive.

I am not getting which functions to used for the same and how?

Do you have any idea or sample code in this regard with you so that i can proceed further.

I am getting lot of compilations errors when I include devcon.h and use functions from devcon.cpp like enumeratedevices and so on.

Can you please help me in this regard as this is very urgent for me? I do not have any prior knowledge about devcon.

Hoping a positive reply from your side.

Best Regards,

Abhijit Kulkarni,


Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.