UMDF driver runs under LocalService account. It can access the file if it is accessible by this account. Is it possible for you to set the corresponding permissions on the file?
Praveen
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Martin O’Brien
Sent: Tuesday, February 01, 2011 3:35 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Accessing file system from with a UMDF
Definitely not my area (UMDF), but I believe that UMDF runs in a particular account, so you might not be able to access files quite so directly.
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@vgieurope.com
Sent: Tuesday, February 01, 2011 6:33 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Accessing file system from with a UMDF
I am developing a UMDF USB driver to drive a company product.
The current version of the driver uses a two-stage installation to:
(1) Download the firmware using a 3rd part driver (Cypress CyUSB).
This causes the device to renumerate and appear as a different VID/PID combo.
(2) Install the main UMDF driver for the new VID/PID
What I would like to do is to have the UMDF driver handle both stages.
I can get the required file name into the driver via the INF file and retrieve it via the driver’s PropertyStore.
Q1: Am I allowed to use CreateFile to access the file and load the firmware into driver
memory so that I can send it to the device?
Q2: Are there any caveats I should be aware of, and any sample code to demonstrate how
to do this?
Thanks in advance.
Peter Young
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer