Querydosdevice
[DllImport("Kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)][return: MarshalAs(UnmanagedType.U4)]
public static extern uint QueryDosDevice(string lpDeviceName,
StringBuilder lpTargetPath,
uint ucchMax
);
Microsoft documentation: Link
Last updated