UtilDismGetDriverPackages Method
Get infomation about the drivers that are installed on the operating system that is currently running on the local computer.
Namespace: DevCase.ThirdParty.DismAssembly: DevCase.net48.ThirdParty.Dism (in DevCase.net48.ThirdParty.Dism.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
Public Shared Function GetDriverPackages (
flags As GetDriverPackagesFlags
) As ReadOnlyCollection(Of DismDriverPackage)
Dim flags As GetDriverPackagesFlags
Dim returnValue As ReadOnlyCollection(Of DismDriverPackage)
returnValue = UtilDism.GetDriverPackages(flags)
No code example is currently available or this language may not be supported.
- flags GetDriverPackagesFlags
-
Flags combination that determine the function behavior.
ReadOnlyCollectionDismDriverPackage
A
ReadOnlyCollectionT collection containing the information about each driver package.
Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:
Microsoft.Dism by jeffkl
This is a code example.
No code example is currently available or this language may not be supported.
' Get all the drivers.
Dim allDrivers As ReadOnlyCollection(Of DismDriverPackage) = DismUtil.GetDriverPackages(GetDriverPackagesFlags.Any)
Debug.WriteLine($"{NameOf(allDrivers)} count: {allDrivers.Count}")
' Get only the default / integrated drivers.
Dim defaultDrivers As ReadOnlyCollection(Of DismDriverPackage) = DismUtil.GetDriverPackages(GetDriverPackagesFlags.Inbox)
Debug.WriteLine($"{NameOf(defaultDrivers)} count: {defaultDrivers.Count}")
' Get only the third-party drivers.
Dim thirdPartyDrivers As ReadOnlyCollection(Of DismDriverPackage) = DismUtil.GetDriverPackages(GetDriverPackagesFlags.NotInbox)
Debug.WriteLine($"{NameOf(thirdPartyDrivers)} count: {thirdPartyDrivers.Count}")
' Iterate through the third-party drivers.
For Each package As DismDriverPackage In thirdPartyDrivers
Debug.WriteLine(DismDriverPackageExtensions.GetPackageInfoString(package, singleLine:=False))
Next
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.