Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SetupDiGetClassDevs" in [All]

Enums

.
Summary
.

/// Flags controlling what is included in the device information set built by SetupDiGetClassDevs

.

/// Flags controlling what is included in the device information set built by SetupDiGetClassDevs

setupapi

.

IntPtr h = SetupDiGetClassDevs(ref DiskGUID, 0, IntPtr.Zero, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);

.

Private Declare Function SetupDiGetClassDevs Lib “setupapi.dll” _

.

Alias “SetupDiGetClassDevsA” (GuidPtr As Long, _

.

PnPHandle = SetupDiGetClassDevs(PrnGuid.Data1, 0, 0, _

.

    // enumerating devices in class using SetupDiGetClassDevs()

.
Summary
.

        // Use the "enumerator form" of the SetupDiGetClassDevs API

.

        IntPtr h = SetupDiGetClassDevs(0, DevEnum, IntPtr.Zero, DIGCF_PRESENT | DIGCF_ALLCLASSES);

.

    public static extern IntPtr SetupDiGetClassDevs(ref Guid classGuid, IntPtr enumerator, IntPtr hwndParent, UInt32 flags);

.

IntPtr h = SetupDiGetClassDevs(ref DiskGUID, 0, IntPtr.Zero, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);

.

static extern IntPtr SetupDiGetClassDevs(

.

This signature has the drawback that it does not allow passing a null pointer as the first parameter, which is one of the common usages cited at [SetupDiGetClassDevs]: "To return devices for all device setup classes, set the DIGCF_ALLCLASSES flag, and set the ClassGuid parameter to NULL."

.

static extern IntPtr SetupDiGetClassDevs(           // 1st form using a ClassGUID only, with null Enumerator

.

static extern IntPtr SetupDiGetClassDevs(

.

    EntryPoint:="SetupDiGetClassDevsW", _

.

    Private Shared Function SetupDiGetClassDevs( _

.

    EntryPoint:="SetupDiGetClassDevsW", _

.

    Private Shared Function SetupDiGetClassDevs( _

.

Public Declare Auto Function SetupDiGetClassDevs Lib "setupapi.dll" Alias "SetupDiGetClassDevsW" ( _

.

IntPtr h = SetupDiGetClassDevs(ref DiskGUID, IntPtr.Zero, IntPtr.Zero, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);

.
Documentation
[SetupDiGetClassDevs] on MSDN
.

        // Use the "enumerator form" of the SetupDiGetClassDevs API

.

        IntPtr h = SetupDiGetClassDevs(0, DevEnum, IntPtr.Zero, DIGCF_PRESENT | DIGCF_ALLCLASSES);

.
Summary
.

IntPtr h = SetupDiGetClassDevs(ref DiskGUID, 0, IntPtr.Zero, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);

.

    h = SetupDiGetClassDevs(myGuid, 0, IntPtr.Zero, DIGCF_PRESENT + DIGCF_DEVICEINTERFACE) '

.
Summary
The SetupDiGetDeviceRegistryProperty function retrieves the specified device property. This handle is typically returned by the SetupDiGetClassDevs or SetupDiGetClassDevsEx function. If the function succeeds, the return value is nonzero.
.

IntPtr h = SetupDiGetClassDevs(ref DiskGUID, 0, IntPtr.Zero, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);


 
Access PInvoke.net directly from VS: