阅读:1485回复:2
vxd中怎么取得短文件名
设有一个文件的全路径
如:strPath=\"C:\\\\test\\\\test.txt\" 在驱动(vxd)里怎么转换成短路经? 应用程序里可以用GetShortPathName,可在驱动里没找到 我用Vtoolsd开发的 |
|
沙发#
发布于:2003-01-27 16:49
Int 21/AX=7160h/CL=01h
Windows95 - LONG FILENAME - GET SHORT (8.3) FILENAME FOR FILE AX = 7160h CL = 01h CH = SUBST expansion flag 00h return a path containing true path for a SUBSTed drive letter 80h return a path containing the SUBSTed drive letter DS: SI -> ASCIZ long filename or path ES: DI -> 67-byte buffer for short filename Return: CF set on error AX = error code 02h invalid component in directory path or drive letter only 03h malformed path or invalid drive letter ES : DI buffer unchanged CF clear if successful ES : DI buffer filled with equivalent short filename (full path, even if relative path given, and all uppercase) Note: This call returns the short name for any long-filename portions of the provided pathname or filename [编辑 - 1/27/03 by else] |
|
板凳#
发布于:2003-01-28 20:16
天啊~~汇编~
还是很感谢你 我懂得不多,不过可以试试。 分我会记得给你的 祝你过个好你年! :P |
|