[][src]Function nt_native::dos_name_to_nt

pub fn dos_name_to_nt(dos_name: &NtString) -> Result<(NtString, bool)>

Converts DOS names to NT native format

name A constant string containing the DOS name of the target file or directory. Should be null-terminated!

The second element of the resulting tuple indicates whether the name a directory or not.

Examples

let nt_name = dos_name_to_nt(&nt_str!("c:\\some\\path\\file.ext")).unwrap();
assert_eq!(nt_name.0, nt_str!("\\??\\c:\\some\\path\\file.ext"));