请问怎样用程序知道现在应用的操作系统再哪个盘上??????

wzs_wzs123 2001-12-26 01:15:33
...全文
61 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wzs_wzs123 2001-12-26
  • 打赏
  • 举报
回复
谢谢各位
长弓落日 2001-12-26
  • 打赏
  • 举报
回复
UINT GetSystemDirectory(

LPTSTR lpBuffer, // address of buffer for system directory
UINT uSize // size of directory buffer
);


Parameters

lpBuffer

Points to the buffer to receive the null-terminated string containing the path. This path does not end with a backslash unless the system directory is the root directory. For example, if the system directory is named WINDOWS\SYSTEM on drive C, the path of the system directory retrieved by this function is C:\WINDOWS\SYSTEM.

uSize

Specifies the maximum size of the buffer, in characters. This value should be set to at least MAX_PATH.



Return Values

If the function succeeds, the return value is the length, in characters, of the string copied to the buffer, not including the terminating null character. If the length is greater than the size of the buffer, the return value is the size of the buffer required to hold the path.
If the function fails, the return value is zero.
IUNKNOWN_COM 2001-12-26
  • 打赏
  • 举报
回复
GetWindowsDirectory得到WINDOWS目录然后取第一个字符
Michaelyfj 2001-12-26
  • 打赏
  • 举报
回复
getwindowdirectory()
截取前一位即是
Nizvoo 2001-12-26
  • 打赏
  • 举报
回复
是不是装了几个操作系统

5,930

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧