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

    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);

    return;

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

    Thanks,

    Andrew (Kingston)

    Wednesday, December 05, 2012 7:28 PM

Answers