kernel vs user file name

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I need to read a file in a kernel mode driver. The file name is passed from
a user mode application in the form of "C:\file" or \\Computer\Share\File.
Is there a standard kernel or user mode API, or some document describing the
proper algorithm to convert "C:\file" to "\??\C:\file" (or "\Device\...."),
and "\\Computer\Share\File" to "\Device\Lanman..." (or whatever), in order
to make a user mode file name usable in kernel mode?

Thank you.


.



Relevant Pages

  • Re: SpinLock/Mutex : Difference ?
    ... Doing spinlocks from a user mode is UTTERLY out of the wall idea. ... and that is the separation of user and kernel mode. ... Need to have strong "communication skills" ... spinlock owner is guaranteed to never get preempted by another thread. ...
    (microsoft.public.win32.programmer.kernel)
  • Memory Access Violation
    ... Note - Times include both user mode and kernel mode for each thread Thread ... Time spent in kernel mode 0 Days 0:0:0.93 ... Function Source ...
    (microsoft.public.inetserver.iis)
  • Re: Unexpected Error With CE.BIB file
    ... User mode applications can't run in kernel mode, ... you're trying to load hidparse.dll into your user mode ... but hidparse is included in the image with the K flag set. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Device Driver that uploads its own code?
    ... Anyway, if you need dynamically extend functionality of your application, ... but the code you pass from user mode is just unable ... to be run in kernel mode without special preprocessings. ... For example, if the driver ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Allocating and accessing physically contiguous memory in user mode in WinCE 6.0 Beta
    ... because most embedded systems are closed systems, ... User mode drivers are exactly what we have had for all versions prior to CE ... What is new in V6.0 is Kernel mode drivers, ...
    (microsoft.public.windowsce.platbuilder)