locked
Can CreateFile2 used in Metro App in Win8/8.1 for connecting to driver ?

    General discussion

  • Can CreateFile2 used in Metro App in Win8/8.1 for connecting to driver ?

    When I tried this API in Metro app code it is failing with error code 0x5 (ACCESS_DENIED).

    But when I used same code in Desktop app, connection to driver is getting established successfully.

    Please help.

    Thanks.

    Sunday, September 21, 2014 1:51 PM

All replies

  • General purpose Windows Store apps cannot directly talk to drivers.
    Sunday, September 21, 2014 3:57 PM
    Owner
  • Thanks a lot Caplan for the response.

    Then what is the solution for this problem ?

    My requirement - "Read memory addresses using Metro App". How to achieve this ?

    Please help.

    Thanks.

    Sunday, September 21, 2014 4:44 PM
  • Can you please explain in more detail what you mean by that?

    Monday, September 22, 2014 6:09 PM
    Owner
  • Hi Caplan,

    My requirement - "Establish communication b/w user-mode Metro application and kernel-mode driver. Here the driver is not associated with any real device/hardware. From the application request for read/write memory addresses. For example: Read/Retrieve value present at some known memory address".

    Need this only for testing purpose. I mean Metro app will be posted/uploaded in the Windows store".

    I am able to do this successfully using desktop application using CreateFile & CreateFile2 APIs. But these APIs are failing when I use in the Metro code with error message ACCESS_DENIED (0x5).

    Please let me know if more information required.

    Thanks.

    Tuesday, September 23, 2014 4:40 AM
  • No, this is not supported.

    Windows Store apps cannot directly interact with drivers.

    Wednesday, September 24, 2014 11:36 PM
    Owner