Definedosdevice in usermode

Hello,

When I call the API DefineDosDevice to map a drive into my driver , it’s ok but only in superuser mode else the API returns error 5 (access denied) (GetLastError)

How can map a drive into my driver by API DefineDosDevice in user mode?

Thank you

What do you mean by mapping a drive into a driver.
I am not able to get it, can you elaborate more?

-Deepak

On Sat, Feb 12, 2011 at 11:48 PM, wrote:

> Hello,
>
> When I call the API DefineDosDevice to map a drive into my driver , it’s ok
> but only in superuser mode else the API returns error 5 (access denied)
> (GetLastError)
>
> How can map a drive into my driver by API DefineDosDevice in user mode?
>
> Thank you
>
> —
> 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
>