Access Denied Error. Trying to access a secure USB Storage Drive and develop an APP for the Password submission. RRS feed

  • Question


    We launched the sample code from Portable Device API

    and got an access denied error in the following function.

    void S1_DeviceProperties::DisplayDeviceProperties(DeviceInformation^ deviceInfoElement)


    ComPtr<IPortableDevice> device;

    ThrowIfFailed(CoCreateInstance(CLSID_PortableDeviceFTM, nullptr, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&device)));

    auto clientInfo = GetClientInfo();

    HRESULT hr = device->Open(deviceInfoElement->Id->Begin(), clientInfo.Get());

    if (hr == E_ACCESSDENIED)


    rootPage->NotifyUser("Access to " + deviceInfoElement->Name + " is denied", NotifyType::ErrorMessage);


    Is it possible to issue SCSI pass-thru command to USB mass storage devices?


    Andrew (Kingston)

    Wednesday, December 5, 2012 7:28 PM