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
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "CR_SUCCESS" in [All]

cfgmgr32

.

const int CR_SUCCESS = 0x0;

.

  if (cr == CR_SUCCESS && size != 0)

.

    if (cr == CR_SUCCESS)

.
Summary
Checks whether a device instance and its children can be removed and, if so, it removes them. If the operation succeeds, the function returns CR_SUCCESS. Otherwise it returns one of the error codes with "CR_" prefix that are defined in Cfgmgr32.h
.
Summary
Restarts a device instance that is not running because there is a problem with the device configuration. If the operation succeeds, the function returns CR_SUCCESS. Otherwise it returns one of the error codes with "CR_" prefix that are defined in Cfgmgr32.h.

setupapi

.
Summary
The CM_Get_Child function obtains a device instance handle to the child node of a specified device node, in the local machine's device tree. If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h
.
Summary
The CM_Get_DevNode_Registry_Property function retrieves a specified device property from the registry. If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes that are defined in Cfgmgr32.h.
.

if (CR_SUCCESS == CM_Get_Parent(out parent, devinfo_data.DevInst, 0))

.

     if (CR_SUCCESS == CM_Get_DevNode_Registry_Property(devinst, CM_DRP_DRIVER, out kind, buffer, ref length, 0))

.

static readonly int CR_SUCCESS = 0x00000000;

.

If CM_Get_DevNode_Status(status, problem, DeviceInfoData.DevInst, 0) = CR_SUCCESS Then

.
Summary
The CM_Get_Sibling function obtains a device instance handle to the next sibling node of a specified device node (devnode) in the local machine's device tree. If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h
.

    public const int CR_SUCCESS = 0x00000000;

.

    if (apiResult != CR_SUCCESS)

.

  const uint CR_SUCCESS = 0x00000000;

.

     if(CM_Locate_DevNode_Ex(out devRoot, IntPtr.Zero, 0, IntPtr.Zero) != CR_SUCCESS) return false;

.

     if(CM_Reenumerate_DevNode_Ex(devRoot, 0, IntPtr.Zero) != CR_SUCCESS) return false;

.

    // static readonly int CR_SUCCESS = 0x00000000; // cfgmgr32.h

.

    if (CR_SUCCESS == CM_Get_DevNode_Status(ref status, ref problem, devinst, 0) && (DN_REMOVABLE & status) > 0)

.

        bool success = (CR_SUCCESS == CM_Request_Device_Eject(devinst, out pnp_veto_type, sb, sb.Capacity, 0));

Constants

.

const ulong CR_SUCCESS = 0x0;

.

Const CR_SUCCESS As UInt64 = &h0

.

const ulong CR_SUCCESS = 0x0;

.

Const CR_SUCCESS As UInt64 = &h0


 
Access PInvoke.net directly from VS: