我快疯了,一个API的问题
API定义:
[DllImport("KERNEL32.DLL", CharSet=CharSet.Auto)]
public static extern bool DefineDosDevice(Int32 dwFlags, String lpDeviceName, String lpTargetPath);
调用:
API.DefineDosDevice(0, "X:", "C:\\windows"); 、/*无效*/
API.DefineDosDevice(0, "X:", "\\??\\C:\\windows"); 、/*有效*/
但映射出来的设备名是:“D:\??\C:\\windows” 为什么啊……,我的程序是在D:运行的,如果是在C:就变成"C:\??\C:\\windows"
为什么啊?