I need to disable USB on Windows Mobile. How to disable USB on Windows Mobile using Compact Framework 2.0 (C#)? I am using OpenNETCF too. If it has some class to disable USB, I can use it too.
Windows Mobile - Disable USB (Compact Framework - C#)
823 Views Asked by Let me Ask At
2
There are 2 best solutions below
1
R Quijano
On
A bit of advice, you have to implement both operations to lock / unlock the usb device. Because if you can't unlock it you must perform a clean boot.
You should provision the device with this specific policies
<!-- DenyRAPI.xml !-->
<wap-provisioningdoc>
<characteristic type="SecurityPolicy">
<parm name="4097" value="0"/>
</characteristic>
</wap-provisioningdoc>
<!-- AllowRAPI.xml !-->
<wap-provisioningdoc>
<characteristic type="SecurityPolicy">
<parm name="4097" value="2"/>
</characteristic>
</wap-provisioningdoc>
I provide a link to the original post in which is suggested that you create the cabs. Original Post
I have used another approach to read the XML configuration and then using the following method I execute the provisioning
Microsoft.WindowsMobile.Configuration.ConfigurationManager.ProcessConfiguration(XmlDocument,boolean);
Another option is to use builds the cabs and install them by using wceload.exe
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in SECURITY
- HTTPS configuration in Spring Boot, server returning timeout
- HSM ZKA control mask values
- OWASP Amass Subcommands
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- When sanitize/encode while implementing tags system like on SO
- spring security version in spring-boot-starter-security
- I am currently trying to implement a rudimentary firewall from a video I watched but the nimda worm detection is not working and i do not know why?
- Is it possible for `sudo` to fail temporarily with the correct password? Hacking suspected
- Is it viable proxying all my mobile apps requests, to some kind knowing that a request is coming from a secure source
- What abilities should I concentrate on while bug hunting, and how can I improve the quality of my bug bounty reports?
- System.ArgumentOutOfRangeException: I passed this error in every single program
- How to prevent users from creating custom client apps?
- Does server-side content security policy exist for youtube video player API, app, mod apks and website?
- Can we pass a hostname/IP address as a query string in a GET request in REST API
Related Questions in WINDOWS-MOBILE
- How to call buzzer sound of device on windows embedded 7?
- How do I get ActiveSync or Windows Mobile Device Center to work in Windows 11 with my MC9190 scan gun?
- Windows Mobile 6 - Handheld terminal How do I check the clock every time I turn it on
- Visual Basic Studio 2008 PocketPC: How to rotate screen ? (Landscape orientation)
- Building projects targeting .NET Compact Framework
- Vs 2005 device connection
- WMDC won't detect mobile device
- process.Start causing Win32Exception on button push
- Win CE Enable/Disable Touch With Application
- Application displays a revolving Windows Logo on Windows Mobile
- c# task (.net 2.0 on WIndows Mobile 5.0) passing parameter does not work like expected
- Impossible to send a packet Exception When pinging in windows mobile apps code(.net compact)
- how to debug system typeloadexception old VS
- Deploy/debug app from VS 2019 to windows 10 mobile phone via USB
- Get The Current TimeDate From GPRS C#
Related Questions in OPENNETCF
- Get Signal Strength from windows CE device using OpenNETCF / C#
- No Windows CE in the OpenNETCF dll file
- Windows Mobile 6 tapi and OpenNetCF telephone
- copy files from PC to windows phone 10
- OpenNETCF: APN Configuration Programmatically. It's possible?
- Setting Timezone in compact framework with VB.net
- Inserting data SQLiteConnection exception OpenNetCF.ORM
- using OpenNETCF/ossvcs.dll to turn on wireless radio on WindowsCE
- OpenNETCF.Timers.Timer2 and System.threading.timer wrong timing event call after 7-8 hours
- Opennetcf.IOC event subscription and inheritance
- visual studio 2008 - full framework toolbox instead of compact framework toolbox
- TAPI on Windows Mobile 6.5: Incoming Calls distracted by default OS dialer
- MouseUp event fired again several minutes after the button was pressed
- File Corrupt When using OpenNETCF.Ftp
- Transparent PNG in .NET CF
Related Questions in COMPACT-FRAMEWORK2.0
- How to return redirect with compact variable in laravel
- Does NewtonSoft JSON support .Net CF 2.0?
- .net compact framework 2.0 text file reading
- Reducing an image size for compact framework
- Getting MethodAccessException when using LinqBridge
- .NET CE 2.0 Data Access NullReferenceException when assigning DB fields to List(of T)
- Windows CE - RegisterWindowMessage WM_DECODEDATA doesn't work
- Display latest inserted data in .NET Compact Framework application
- code doesn't compile at Compact Framework
- Connecting to Mantis Bug Tracker via .Net
- How to set time zone to frecnh zone + windows ce
- how to serialize/deserialize data in windows ce 5.0
- "Missing compiler required member" in Windows CE project
- .net cf unwanted gray borders on controls if form is disabled
- How to Play a video in windows ce wtih C# code
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If your application is code-signed and running in full trust, then you have access to protected registry keys. You could then try to edit or remove the various USB device driver configuration registry values. Then you might have disabled USB.
Edit: Possibly involved registry keys: