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)
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?
SCSI pass through commands are not supported for Windows Store apps, unless you are a device manufacturer for the USB mass storage device and can provide a custom driver and device app.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?