Click here to Skip to main content
12,508,185 members (42,492 online)

Visual Basic

 
QuestionHow to Extend the InitializeComponents to my code in VB2008/2010 Pin
QuickBooksDev20-Jan-13 3:06
memberQuickBooksDev20-Jan-13 3:06 
AnswerRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
Eddy Vluggen21-Jan-13 3:31
mvpEddy Vluggen21-Jan-13 3:31 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
QuickBooksDev21-Jan-13 5:28
memberQuickBooksDev21-Jan-13 5:28 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
Eddy Vluggen21-Jan-13 5:43
mvpEddy Vluggen21-Jan-13 5:43 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
QuickBooksDev21-Jan-13 6:49
memberQuickBooksDev21-Jan-13 6:49 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
QuickBooksDev22-Jan-13 0:21
memberQuickBooksDev22-Jan-13 0:21 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
Eddy Vluggen22-Jan-13 2:21
mvpEddy Vluggen22-Jan-13 2:21 
AnswerRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
Mike Meinz21-Jan-13 8:16
memberMike Meinz21-Jan-13 8:16 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 Pin
QuickBooksDev21-Jan-13 9:38
memberQuickBooksDev21-Jan-13 9:38 
QuestionMS Graph in Access 2007 VBA Application Pin
satcomengineer19-Jan-13 7:48
membersatcomengineer19-Jan-13 7:48 
AnswerRe: MS Graph in Access 2007 VBA Application Pin
Eddy Vluggen20-Jan-13 2:38
mvpEddy Vluggen20-Jan-13 2:38 
Questionvb6.0 Pin
Barun sengupta18-Jan-13 21:39
memberBarun sengupta18-Jan-13 21:39 
AnswerRe: vb6.0 Pin
Eddy Vluggen20-Jan-13 2:36
mvpEddy Vluggen20-Jan-13 2:36 
QuestionDecoding USBSTOR Registry Entry in VB Pin
SantLou4017-Jan-13 16:06
memberSantLou4017-Jan-13 16:06 
Hi All,

I am attempting to retrieve USB Usage History using VB.NET. I am using VS 2012.

The following block of code lists this entry.

Dim RegKey As RegistryKey = Registry.LocalMachine.OpenSubKey("SYSTEM\CurrentControlSet\Enum\USBSTOR\", False)
 
Dim str1 As String
For Each subKeyName As String In RegKey.GetSubKeyNames()
 
    Dim tempKey As RegistryKey = RegKey.OpenSubKey(subKeyName)
    Debug.Print("USBSTORE KEY: " & subKeyName & RegKey.GetValue(subKeyName, "").ToString())
    Debug.Print(" -----------")
 
    For Each NxtSubKeyName As String In tempKey.GetSubKeyNames()
        Dim tempKey1 As RegistryKey = tempKey.OpenSubKey(NxtSubKeyName)
        Debug.Print("USBSTOR SUBKEY: " & NxtSubKeyName.ToString() & " Value Count: " & tempKey1.ValueCount.ToString())
        For Each valueName As String In tempKey1.GetValueNames()
            Debug.Print(valueName & ": " & tempKey1.GetValue(valueName).ToString())
        Next
 
    Next
Next

My code produces this output:

USBSTORE KEY: Disk&Ven_SanDisk&Prod_Cruzer&Rev_1100
 -----------
USBSTOR SUBKEY: SDXX1005181106121551&0 Value Count: 12
DeviceDesc: @disk.inf,%disk_devdesc%;Disk drive
Capabilities: 16
HardwareID: System.String[]
CompatibleIDs: System.String[]
ContainerID: {2471d8a3-e22c-5a5e-8b09-f0bb7616119d}
ConfigFlags: 0
ClassGUID: {4d36e967-e325-11ce-bfc1-08002be10318}
Driver: {4d36e967-e325-11ce-bfc1-08002be10318}\0010
Class: DiskDrive
Mfg: @disk.inf,%genmanufacturer%;(Standard disk drives)
Service: disk
FriendlyName: SanDisk Cruzer USB Device

But when I export this registry entry to a text file, I get the following results:

Obviously we see much more information in the exported data. Why is there so much more info here and how can I get my VB program to access this information?

I am trying to write some code to obtain USB Usage History.

Thanks for any help,

Key Name:          HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_SanDisk&Prod_Cruzer&Rev_1100
Class Name:        <NO CLASS>
Last Write Time:   1/17/2013 - 2:51 PM
 
Key Name:          HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_SanDisk&Prod_Cruzer&Rev_1100\SDXX1005181106121551&0
Class Name:        <NO CLASS>
Last Write Time:   1/17/2013 - 2:51 PM
Value 0
  Name:            DeviceDesc
  Type:            REG_SZ
  Data:            @disk.inf,%disk_devdesc%;Disk drive
 
Value 1
  Name:            Capabilities
  Type:            REG_DWORD
  Data:            0x10
 
Value 2
  Name:            HardwareID
  Type:            REG_MULTI_SZ
  Data:            USBSTOR\DiskSanDisk_Cruzer__________1100
                   USBSTOR\DiskSanDisk_Cruzer__________
                   USBSTOR\DiskSanDisk_
                   USBSTOR\SanDisk_Cruzer__________1
                   SanDisk_Cruzer__________1
                   USBSTOR\GenDisk
                   GenDisk
 
Value 3
  Name:            CompatibleIDs
  Type:            REG_MULTI_SZ
  Data:            USBSTOR\Disk
                   USBSTOR\RAW
 
Value 4
  Name:            ContainerID
  Type:            REG_SZ
  Data:            {2471d8a3-e22c-5a5e-8b09-f0bb7616119d}
 
Value 5
  Name:            ConfigFlags
  Type:            REG_DWORD
  Data:            0
 
Value 6
  Name:            ClassGUID
  Type:            REG_SZ
  Data:            {4d36e967-e325-11ce-bfc1-08002be10318}
 
Value 7
  Name:            Driver
  Type:            REG_SZ
  Data:            {4d36e967-e325-11ce-bfc1-08002be10318}\0010
 
Value 8
  Name:            Class
  Type:            REG_SZ
  Data:            DiskDrive
 
Value 9
  Name:            Mfg
  Type:            REG_SZ
  Data:            @disk.inf,%genmanufacturer%;(Standard disk drives)
 
Value 10
  Name:            Service
  Type:            REG_SZ
  Data:            disk
 
Value 11
  Name:            FriendlyName
  Type:            REG_SZ
  Data:            SanDisk Cruzer USB Device
 

Key Name:          HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_SanDisk&Prod_Cruzer&Rev_1100\SDXX1005181106121551&0\Device Parameters
Class Name:        <NO CLASS>
Last Write Time:   1/17/2013 - 2:51 PM
 
Key Name:          HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_SanDisk&Prod_Cruzer&Rev_1100\SDXX1005181106121551&0\Device Parameters\MediaChangeNotification
Class Name:        <NO CLASS>
Last Write Time:   9/5/2011 - 8:07 PM
 
Key Name:          HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_SanDisk&Prod_Cruzer&Rev_1100\SDXX1005181106121551&0\Device Parameters\Partmgr
Class Name:        <NO CLASS>
Last Write Time:   9/5/2011 - 8:07 PM
Value 0
  Name:            Attributes
  Type:            REG_DWORD
  Data:            0
 
Value 1
  Name:            DiskId
  Type:            REG_SZ
  Data:            {00af4242-d76c-11e0-8169-0024e8e34876}
 

Key Name:          HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_SanDisk&Prod_Cruzer&Rev_1100\SDXX1005181106121551&0\LogConf
Class Name:        <NO CLASS>
Last Write Time:   1/17/2013 - 2:51 PM

AnswerRe: Decoding USBSTOR Registry Entry in VB Pin
ChandraRam17-Jan-13 20:03
memberChandraRam17-Jan-13 20:03 
AnswerRe: Decoding USBSTOR Registry Entry in VB Pin
Alan N18-Jan-13 1:21
memberAlan N18-Jan-13 1:21 
GeneralRe: Decoding USBSTOR Registry Entry in VB Pin
SantLou4018-Jan-13 1:47
memberSantLou4018-Jan-13 1:47 
GeneralRe: Decoding USBSTOR Registry Entry in VB Pin
Alan N18-Jan-13 4:05
memberAlan N18-Jan-13 4:05 
JokeRe: Decoding USBSTOR Registry Entry in VB Pin
Jeffnogueira22-Jan-13 4:31
memberJeffnogueira22-Jan-13 4:31 
QuestionVB.NET ReportViewer too many Page Breaks rendered Pin
SantLou4017-Jan-13 3:39
memberSantLou4017-Jan-13 3:39 
AnswerRe: VB.NET ReportViewer too many Page Breaks rendered Pin
ChandraRam17-Jan-13 20:04
memberChandraRam17-Jan-13 20:04 
GeneralRe: VB.NET ReportViewer too many Page Breaks rendered Pin
SantLou4018-Jan-13 1:39
memberSantLou4018-Jan-13 1:39 
Questioncontrol 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian15-Jan-13 20:10
memberLord Christian15-Jan-13 20:10 
AnswerRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Bernhard Hiller15-Jan-13 20:42
memberBernhard Hiller15-Jan-13 20:42 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian17-Jan-13 7:15
memberLord Christian17-Jan-13 7:15 
AnswerRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Richard MacCutchan15-Jan-13 22:59
mvpRichard MacCutchan15-Jan-13 22:59 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian17-Jan-13 6:56
memberLord Christian17-Jan-13 6:56 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Richard MacCutchan17-Jan-13 7:10
mvpRichard MacCutchan17-Jan-13 7:10 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian17-Jan-13 7:33
memberLord Christian17-Jan-13 7:33 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Richard MacCutchan17-Jan-13 22:51
mvpRichard MacCutchan17-Jan-13 22:51 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian18-Jan-13 4:58
memberLord Christian18-Jan-13 4:58 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Richard MacCutchan18-Jan-13 5:10
mvpRichard MacCutchan18-Jan-13 5:10 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] Pin
Lord Christian20-Jan-13 18:55
memberLord Christian20-Jan-13 18:55 
QuestionBuilding COM Components Using MATLAB - Part I Pin
SergentX13-Jan-13 6:35
memberSergentX13-Jan-13 6:35 
AnswerRe: Building COM Components Using MATLAB - Part I Pin
Eddy Vluggen14-Jan-13 3:13
mvpEddy Vluggen14-Jan-13 3:13 
GeneralMessage Removed Pin
SergentX14-Jan-13 8:20
memberSergentX14-Jan-13 8:20 
AnswerRe: Building COM Components Using MATLAB - Part I Pin
Eddy Vluggen14-Jan-13 9:59
mvpEddy Vluggen14-Jan-13 9:59 
QuestionDebug user control in VB6.0 ? Pin
Member 24584678-Jan-13 22:38
memberMember 24584678-Jan-13 22:38 
AnswerRe: Debug user control in VB6.0 ? Pin
ChandraRam17-Jan-13 20:08
memberChandraRam17-Jan-13 20:08 
QuestionHow make DOWNLOADER in VB 2010 ? Pin
radoslaw1238-Jan-13 7:21
memberradoslaw1238-Jan-13 7:21 
AnswerRe: How make DOWNLOADER in VB 2010 ? Pin
GuyThiebaut8-Jan-13 21:53
memberGuyThiebaut8-Jan-13 21:53 
GeneralRe: How make DOWNLOADER in VB 2010 ? Pin
radoslaw1239-Jan-13 0:36
memberradoslaw1239-Jan-13 0:36 
GeneralRe: How make DOWNLOADER in VB 2010 ? Pin
GuyThiebaut9-Jan-13 0:40
memberGuyThiebaut9-Jan-13 0:40 
QuestionIOException was Unhandled Pin
jankevint7-Jan-13 14:37
memberjankevint7-Jan-13 14:37 
AnswerRe: IOException was Unhandled Pin
Dave Kreskowiak7-Jan-13 18:08
mvpDave Kreskowiak7-Jan-13 18:08 
GeneralRe: IOException was Unhandled Pin
jankevint7-Jan-13 21:52
memberjankevint7-Jan-13 21:52 
AnswerRe: IOException was Unhandled Pin
Richard MacCutchan7-Jan-13 22:26
mvpRichard MacCutchan7-Jan-13 22:26 
GeneralRe: IOException was Unhandled Pin
jankevint7-Jan-13 23:18
memberjankevint7-Jan-13 23:18 
GeneralRe: IOException was Unhandled Pin
Richard MacCutchan7-Jan-13 23:31
mvpRichard MacCutchan7-Jan-13 23:31 
AnswerRe: IOException was Unhandled Pin
Mike Meinz22-Jan-13 3:15
memberMike Meinz22-Jan-13 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 28 Sep 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid