Answered by:
Access device using CreateFile, ReadFile, WriteFile in Metro Apps

Question
-
Hi all,
Does anyone know if it is possible to use CreateFile, ReadFile, and WriteFile function in a Metro App to perform I/O function on a device?
Friday, February 17, 2012 7:24 AM
Answers
-
This is not possible. Please see the following session for alternatives:
http://channel9.msdn.com/events/BUILD/BUILD2011/HW-747T
Best Wishes - Eric
- Proposed as answer by Eric Hanson-MSFTModerator Friday, February 17, 2012 7:44 PM
- Marked as answer by P.Akial Monday, February 27, 2012 4:06 AM
Friday, February 17, 2012 7:44 PMModerator
All replies
-
This is not possible. Please see the following session for alternatives:
http://channel9.msdn.com/events/BUILD/BUILD2011/HW-747T
Best Wishes - Eric
- Proposed as answer by Eric Hanson-MSFTModerator Friday, February 17, 2012 7:44 PM
- Marked as answer by P.Akial Monday, February 27, 2012 4:06 AM
Friday, February 17, 2012 7:44 PMModerator -
Hi Eric,
I've looked at the video and read the source code as you suggested. It seems that we will have to use CreateDeviceAccessInstance and IDeviceIoControl function. If i'm correct, this means we will have to implement KMDF instead of UMDF if we want to perform I/O function on a device. Is it correct?
Thanks,
- Edited by P.Akial Monday, February 20, 2012 6:33 AM
Monday, February 20, 2012 4:12 AM -
UMDF is supported as well...Tuesday, February 21, 2012 10:28 PMModerator
-
-
Dear Eric,
Your mean is We can use CreateFile, ReadFile, and WriteFile function in a Metro App to perform I/O function on a device via UMDF.
right?
Thursday, May 10, 2012 6:42 AM -
Dear Eric,
Your mean is We can use CreateFile, ReadFile, and WriteFile function in a Metro App to perform I/O function on a device via UMDF.
right?
You can use UMDF however you need to use CreateDeviceAccessInstance and IDeviceIoControl functions. Please see the following session for more details:
http://channel9.msdn.com/events/BUILD/BUILD2011/HW-747T
Best Wishes - Eric
Thursday, May 10, 2012 9:00 AMModerator