API To Hide Non Plug And Play Devices In Device Manager?
Feb 24, 2012
I'm writing a Windows Forms application in VB.Net 2010. The application's purpose is to recreate the Device Manager in VB.Net. The idea here is to capture the information provided by Device Manager and store it in a database. In turn this information could be used as a configuration management tool.
My device tree is coming along nicely, with one minor exception. There are hidden devices that Device Manager does not display by default. Show Hidden Devices causes Device Manager to display these devices. My Device Manager displays them by default. I want to duplicate the Device Manager behavior of being able to hide and display these devices in my appilcation. I have had some success with this task in that I am able to hide the Plug and Play devices that are marked as hidden by windows by use of the "Don't Display In DM" flag. There is the small issue of the Non Plug and Play Device Class. My question is this... Is there a similar flag for Non Plug and Play devices? I have found a reference to the PNP_DEVICE_STATE and IRP_MN_QUERY_PNP_DEVICE_STATE IRP. It contains a flag
PNP_DEVICE_DONT_DISPLAY_IN_UI. My problem is that I cannot find any guidance as to the structure of this API declare and the coding needed to use it. I'm not even sure if this API will be helpful in accomplishing my task. I want to hide the Non Plug and Play devices and device class in my tree. Can someone please assist me with the locating an API that will accomplish this and the proper coding of the API in VB?
I am using Visual Studio 2010 Ultimate and Running Windows 7 Ultimate with all Service Packs and updates applied.
View 7 Replies
ADVERTISEMENT
Feb 25, 2012
I'm writing a Windows Forms application in VB.Net 2010. The application's purpose is to recreate the Device Manager in VB.Net. The idea here is to capture the information provided by Device Manager and store it in a database.In turn this information could be used as a configuration management tool.My device tree is coming along nicely, with one minor exception. There are hidden devices that Device Manager does not display by default. Show Hidden Devices causes Device Manager to display these devices. My Device Manager displays them by default. I want to duplicate the Device Manager behavior of being able to hide and display these devices in my appilcation. I have had some success with this task in that I am able to hide the Plug and Play devices that are marked as hidden by windows by use of the "Don't Display In DM" flag. There is the small issue of the Non Plug and Play Device Class. Is there a similar flag for Non Plug and Play devices?
I have found a reference to the PNP_DEVICE_STATE and IRP_MN_QUERY_PNP_DEVICE_STATE IRP.It contains a flag PNP_DEVICE_DONT_DISPLAY_IN_UI.My problem is that I cannot find any guidance as to the structure of this API declare and the coding needed to use it. I'm not even sure if this API will be helpful in accomplishing my task.I want to hide the Non Plug and Play devices and device class in my tree.I am using Visual Studio 2010 Ultimate and Running Windows 7 Ultimate with all Service Packs and updates applied.
View 2 Replies
Jan 24, 2012
I want to show a list of devices attach to system same like Device Manager tree.
View 3 Replies
Nov 4, 2010
I want to get the last plug date of a usb device, and view the tech article below [URL] But i did not understand the following sentence: "To determine when the device was last connected to the system, obtain the LastWrite time value from the respective Disk and Volume GUID Registry keys for the device."
View 2 Replies
Dec 9, 2009
Been a long time since my last thread but here we go.I'm using VS.NET 2010 Prof Beta at the moment and I'm trying to list all Nic Cards and their settings into a text box. I succeeded with a script from the web (which had an error in the first place) and some adjustments to it.
It lists all hidden devices too (as to be shown in Device manager: Show hidden devices) I worked my way around it and let it jump to next if it doesn't have a IP address, but I find this a bit clumsy and want to really skip them if they are hidden and not just the way I did this now.
Plus it still does show the same NiC (different name, same MAC#) in the list because it has an IP, but in Device manager this one is hidden.[code...]
View 8 Replies
Jun 19, 2011
Does anyone know where I could start in making a device manager?
All I need is a list of devices installed in a list box
View 1 Replies
Mar 14, 2011
Once again, I come on my knees to ask for your guidance :P Well, actually I was hoping to see if anyone could someone make up a code similar to this idea xP. [code] Anyone knows how to do this? Basically just list every device connected. Doesn't have to be in the specific paths, just the names of every device
View 6 Replies
Jul 24, 2011
I have a windows form in vb.net. in my form have a combobox. I want in combo box show only all com ports that exist and available in device manager. How to do it?
View 5 Replies
Apr 13, 2012
I have a little chunk of code that open the device manager by using the command line. I want it to open a specific tree eg: Monitors .Is there a way to pass a parameter to the device manager to open this specific tree or item?
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Shell("mmc devmgmt.msc")
End Sub
End Class
View 6 Replies
Jan 12, 2012
Using the mciSendString command I am able to play avi, mpeg, mp3, etc. but I am unable to play mp4. Here in this web-site it says I can play any videos provided that I have the correct codecs. I am able to play mp4 using my other media players (eg. vlc player). How can I play mp4 videos or how can I make the MCI device auto detect the necessary driver type and play the videos ?
View 1 Replies
Aug 27, 2009
how do i check in vb if a file is already open / in use? and is it possible to hide a process from task manager?
View 1 Replies
Jun 8, 2011
How Can i hide my program From Task Manager in Windows 7 ?
View 1 Replies
Nov 17, 2006
This works for XP, VB.NET 2003/2005/2008. This example does not work on Windows Vista.
Add a ListView, and Timer to a form.
{Timer must have the Elapsed Event}
Code:
Public Class Form1
Const WM_COMMAND As Int32 = &H111
Const MF_ENABLED As Int32 = &H0
Const MF_GRAYED As Int32 = &H1
Const LVM_FIRST As Int32 = &H1000
[Code] .....
View 14 Replies
Sep 23, 2008
I want to hide a game exe in task manager (win vista). I don't know how to do it,
View 6 Replies
Jul 27, 2009
I want to hide my application process in task manager using C# how it possible.
my code is
[/b][code]
Imports System.Runtime.InteropServices
Imports System.Diagnostics
[Code]....
But when i click the button to hide the process it gives an[b] IndexOutOfRange Exception for the call
View 4 Replies
Mar 7, 2012
How to hide your program from the Task Manager in windows 7?Did you have any answer .how to hide exe form the taskmanager in windows 7?
View 2 Replies
Sep 27, 2010
How is that possible?
View 9 Replies
Jun 6, 2011
I created a Security Log On that starts when i turn the computer On.Like the Windows Log On.
I managed to disable alt+F4, alt+tab, window key, ctrl+esc, but i have only one problem disabling the task manager or the CTRl+Alt+Delete Button, is there a way or any codes to disable this? im using VB.net 2005.
View 7 Replies
Jun 8, 2011
i dont no much about vb.net ..i am php developer i have just developed a mini application in vb.net i wanted to know how to hide our application from appearing in task manager...
View 2 Replies
Jul 25, 2011
I have a Windows form.in windows form have a combo box that give me a list of available port serial with it code (Dim ports As String() =SerialPort.GetPortNames())for example( Com1,Com8,Com15,...).but I want to give me fullname of serial port in device manager for example in dvice manager is these (Comunication Port(COM1) - Printer Port(LPT1) And USB Serial Port(COM8)).how to Get it?
View 2 Replies
Oct 23, 2010
i am using the below code in VB.Net to load the available serial ports :
COMsComboBox.Items.Clear()
Dim i As Integer
For i = 1 To My.Computer.Ports.SerialPortNames.Count
COMsComboBox.Items.Add(My.Computer.Ports.SerialPor tNames(i - 1))
Next
i also want to load their names as seen in the "device manager",
View 1 Replies
Apr 5, 2011
I have written an application in Visual Basic 2010 that I would like to hide from the Task Manager Application Tab, if possible. It's fine if it is listed in the Processes tab.
The purpose of the application is to allow users to postpone a restart following software update installations that require restarts. The application includes a form the user's must interact with so it can't be permanently hidden from view on the desktop. I am basically looking to mimic the WSUS Windows Update dialog which allows users to postpone restarts.
VB6 has app.taskvisible which is no longer included in VB 2010. I have seen a lot of discussion around this topic but no real solutions.
View 1 Replies
Apr 5, 2012
I have a function that will allow me to edit the manager property of a user here:
Public Shared Sub SetManagerProperty(ByVal de As DirectoryEntry, ByVal pName As String, ByVal pValue As String)
'First make sure the property value isnt "nothing"
[Code]....
But what if the manager is not in the Company OU? How can I edit this to search for him in the entire domain?
View 1 Replies
May 5, 2010
how can i make my program feel if any device or usb device plugged into the computer or unplugged.url...
View 3 Replies
Nov 13, 2009
A Problem in accessing a device from VB Windows cannot load the device driver for this hardware because there is a duplicate device already running in the system. (Code 42) This error is because i am using 2 devices of the same company which has the mass usb storage on it and when i install one of the device the other hides. So one is detected the Other is not. It also give a error called designed dragnonacally something...
View 2 Replies
May 8, 2010
I want to the song can auto start one by one when import the song to list box. But it doesn't work that I need to select one by one. Besides, the program can repeat all the song or individual song when checkbox enable.
If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then
If playlistbox.SelectedIndex < playlistbox.Items.Count - 1 Then
[code].....
View 4 Replies
Sep 16, 2010
Im trying to open media player (full screen) and play a movie. When i create the file path like so: Dim MoviePathVTS As String = String.Concat("""" + tempMoviePath, " \VIDEO_TS\VTS_01_1.VOB" + """")
It wont play the file but if i do it like this: Dim video1 = """F:\Movies\DvD\Angels and Deamons\VIDEO_TS\VTS_01_1.VOB"""
It plays fine? the file paths are the same including the extra "" but it just refuses to play. I need the top one because i have many movies in a treeview.
Heres my code
Private Sub watchNow_Click(ByVal sender As Object, ByVal e As EventArgs)
'get the position of the selected node
Dim i = movieTreeView.SelectedNode.Index
[CODE]...
View 2 Replies
Feb 9, 2010
How can you make a play button play/stop toggle? Currently my button plays a file in WMP but when I click it again, it just restarts the file. I would like it to toggle on and off, play and stop, not play and pause.
View 8 Replies
Apr 23, 2010
create plugin for my project.
View 1 Replies
Mar 10, 2011
I have a Browser application written using the .NET webbrowser control. As I understand, the 'webbrowser' control is based on Internet Explorer.
So, I was wondering if it is possible to use the add-ons or plug-ins (like Adblock, IE7pro etc.) that were developed for Internet Explorer with the webbrowser control.
This will really save me a lot of time as many of these plug-ins provide the functionality that I am looking for and are freely available.
View 1 Replies