Windows文件处理函数 - QueryDosDevice
2009-09-19 15:16
357 查看
VB声明 | |
Declare Function QueryDosDevice Lib "kernel32" Alias "QueryDosDeviceA" (ByVal lpDeviceName As String, ByVal lpTargetPath As String, ByVal ucchMax As Long) As Long | |
说明 | |
在Windows NT中,DOS设备名会映射成NT系统设备名。该函数可判断当前的设备映射情况 | |
返回值 | |
Long,零表示出错。如执行成功,返回保存到lpTargetPath的字符数。会设置GetLastError | |
参数表 | |
参数 | 类型及说明 |
lpDeviceName | String,如果是vbNullString,那么lpTargetPath会载入当前映射的MS-DOS名称的一个列表。如果是个MS-DOS名,则lpTargetPath会载入一个设备映射列表(第一个名字是活动映射,后续的名字是以前尚未删掉的映射) |
lpTargetPath | String,名称列表,具体取决于lpDeviceName参数。这些名字用NULL字符分隔。列表最后用两个连续的NULL字符中止 |
ucchMax | Long,lpTargetPath缓冲区的大小 |
注解 | |
可用DefineDosDevice函数将映射变成DOS设备名 | |
适用平台 | |
Windows NT |
相关文章推荐
- DefineDosDevice函数控制虚拟驱动器
- Windows文件处理函数 - GetFileTime
- Windows文件处理函数 - LockFileEx
- windows平台时间函数性能比较QueryPerformanceCounter,GetTickCount,ftime,time,GetLocalTime,GetSystemTimeAsFileTim
- Windows文件处理函数 - SearchPath
- Windows文件处理函数 - SetFileTime
- windows平台时间函数性能比较QueryPerformanceCounter,GetTickCount,ftime,time,GetLocalTime,GetSystemTimeAsFileTim
- windows平台时间函数性能比较QueryPerformanceCounter,GetTickCount,ftime,time,GetLocalTime,GetSystemTimeAsFileTim
- (转)windows平台时间函数性能比较QueryPerformanceCounter,GetTickCount,ftime,time,GetLocalTime,GetSystemTimeAsFileTime
- Windows文件处理函数 - SetEndOfFile
- QueryDosDevice function
- Windows文件处理函数 - CloseHandle
- Windows文件处理函数 - UnlockFileEx
- Windows文件处理函数 - GetBinaryType
- windows平台时间函数性能比较QueryPerformanceCounter,GetTickCount,ftime,time,GetLocalTime,GetSystemTimeAsFileTime
- Windows文件处理函数 - UnlockFile
- Windows文件处理函数 - GetSystemDirectory
- Windows文件处理函数 - SetVolumeLabel
- 获取内核磁盘设备卷标名 QueryDosDevice()
- Nero刻录时报"QueryDosDevice Failed"错误