RequestEject method

The RequestEject method prepares a local device instance for safe removal, if the device is removable.

Syntax

HRESULT RequestEject(
  [out, retval]  IVetoResult **ppVetoResult
);

Parameters

  • ppVetoResult [out, retval]
    A pointer to a variable that will hold the result of the operation. For more information about the returned interface, see IVetoResult.

Return value

RequestEject returns S_OK if the eject operation succeeds. This method returns a failing HRESULT only if the eject operation failed or is vetoed. If RequestEject is vetoed, ppVetoResult will be an instance of the IVetoResultinterface. If the request is not vetoed, ppVetoResult will be NULL.

Remarks

The RequestEject method will physically eject the device if it is possible to automatically do so.

See also

DeviceManagement for Device Targets

IVetoResult

 

 

Send comments about this topic to Microsoft

Build date: 1/12/2012