如何获得system32目录 [英] How to get the system32 directory

查看:97
本文介绍了如何获得system32目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C ++.

我如何获得Windows系统目录,例如C:\ Windows \ system32.

谢谢's

I''m working with C++.

How I can get the windows system directories, e.g. C:\Windows\system32.

Thank''s

推荐答案

您可以使用GetSystemDirectory api:
http://msdn.microsoft.com/en-us/library/ms724373%28v = vs.85%29.aspx [ ^ ]

或者,您也可能会在该页面上看到指向SHGetFolderPath的链接.这可以更具体,例如获取systemx86文件夹.
http://msdn.microsoft.com/en-us/library/bb762181%28v = vs.85%29.aspx [ ^ ]

祝您好运!
You can use the GetSystemDirectory api:
http://msdn.microsoft.com/en-us/library/ms724373%28v=vs.85%29.aspx[^]

Or, as you might also see on that page a link to SHGetFolderPath. This can be more specific like getting the systemx86 folder.
http://msdn.microsoft.com/en-us/library/bb762181%28v=vs.85%29.aspx[^]

Good luck!


容易,您应该可以使用 ^ ]

它将路径返回到system32文件夹.对于系统信息的不同部分,还有许多其他类似的功能此处 [ ^ ]

我显然需要更快地键入; P
Easy, you should be able to use GetSystemDirectory[^]

Which returns the path to the system32 folder. There''s also a load of other similar functions for different bits of system information here[^]

I clearly need to type faster ;P


替代方法

这篇关于如何获得system32目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆