locked
Filesystem IOCTL call from Store App for Windows 8 Tablet (x86/ARM)

    Question

  • Hi,

    We are developing Windows Store application for Windows 8 tablet (x86/ARM).
    Our Application has Windows Store App and Windows Runtime component.

    We are calling CreateDeviceAccessInstance to call general file system IOCTL like FSCTL_GET_NTFS_VOLUME_DATA from Windows Runtime Component.

    Code:

    Handle = CreateDeviceAccessInstance (Path, GENERIC_READ|GENERIC_WRITE, &CreateDeviceAccessAsync);

    if (SUCCEEDED (Handle))
    {
      Handle = CreateDeviceAccessAsync->Wait (INFINITE);
      if (SUCCEEDED (Handle))
      {
       Handle = CreateDeviceAccessAsync->GetResult (IID_IDeviceIoControl, (void **) &DeviceAccess);
       }
    }

    CreateDeviceAccessAsync->GetResult is failed and error code is "Access denied"

    We are testing application on Windows 8 x86 PC and execute on Tablet simulator.

    From forum, procedure is given for Custom device access (i.e. Device meta data, changing Appn manifest file to add Interface ID and modify Driver inf)

    But we are calling general file system IOCTL i.e. using Standard Microsoft driver stack.
    Please let me know how we should go ahead.

    Thanks,
    Raphel

    Wednesday, March 13, 2013 1:26 PM

Answers

  • Raphel,

    Windows Store Apps are able to call into specialized devices on x86 and x64 systems.  IOCTLs from Windows Store Apps are limited to specialized devices and attempts to use other types of IOCTLs such as FSCTLs will fail with access denied.

    Best Wishes - Eric 

    Thursday, March 14, 2013 7:34 AM
    Moderator

All replies

  • Hi Raphel,

    I believe the "Access denied" is expected: Windows Store apps cannot use FSCTLs.

    I've asked a devices specialist to take a look at your posts to confirm.

    --Rob

    Thursday, March 14, 2013 1:10 AM
    Owner
  • Thanks Rob. Expecting your clarification.
    Thursday, March 14, 2013 5:08 AM
  • Raphel,

    Windows Store Apps are able to call into specialized devices on x86 and x64 systems.  IOCTLs from Windows Store Apps are limited to specialized devices and attempts to use other types of IOCTLs such as FSCTLs will fail with access denied.

    Best Wishes - Eric 

    Thursday, March 14, 2013 7:34 AM
    Moderator
  • Hi Eric,

    Thanks a lot for your reply.

    You have mentioned "Windows Store Apps are able to call into specialized devices on x86 and x64 systems"

    Please confirm whether this is also applicable for ARM systems like Windows RT.

     

    Could you please share MSDN link for your clarification fi any.

    "IOCTLs from Windows Store Apps are limited to specialized devices and attempts to use other types of IOCTLs such as FSCTLs will fail with access denied."

     

    Actually we are developing a tool for our embedded storage device to improve performance.

    So we require to use IOCTLs like IOCTL_SFFDISK_DEVICE_COMMAND, FSCTL_EXTEND_VOLUME, FSCTL_GET_NTFS_VOLUME_DATA etc.

    Our target platform is Windows 8 (x86 / ARM) tablet.

    Question is:

    1. Is there any approach (like OEM app i.e. partnership between device manufacturer and Microsoft) to handle these IOCTLs in Store App?  OR  calling these IOCTLs from Store App are not at all possible?

     

    Please clarify this.

     

    Thanks & Regards,

    Raphel

    Thursday, March 14, 2013 11:44 AM
  • Thanks for your reply.

    Actually our Target platform is Windows 8 x86 tablet and Windows RT Tab.

    That's why we are checking the feasibility whether we can call general IOCTLs like IOCTL_SFFDISK_DEVICE_COMMAND, FSCTL_EXTEND_VOLUME from Application in the above mentioned platform.

    It will be helpful if queries are clarified. Please refer my previous thread.

    Thanks,

    Raphel

    Friday, March 15, 2013 2:54 AM
  • Raphel,

    It is not possible to use FSCTLs or disk IOCTLS from a Windows Store App regardless of platform.

    Best Regards - Eric


    This posting is provided "AS IS" with no warranties, and confers no rights.

    Friday, March 15, 2013 7:03 AM
    Moderator
  • Eric,

    Thanks for clarification.

    Regards,

    Raphel

    Thursday, March 21, 2013 3:47 AM
  • Raphel,

    You are very welcome.

    Best Wishes - Eric


    This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, March 21, 2013 3:58 AM
    Moderator