世界杯门票_托马斯穆勒世界杯进球数 - noh16.com

世界杯门票_托马斯穆勒世界杯进球数 - noh16.com

shape
  • Home
  • 乌拉圭世界杯冠军
  • windows 环境变量 %SystemDrive% 和 %SystemRoot%

windows 环境变量 %SystemDrive% 和 %SystemRoot%

  • 2025-05-20 02:58:54
  • admin

%SYSTEMROOT% == c:\windows (or the root windows directory)

%SYSTEMDRIVE% == the drive windows is installed to (eg, C:\)

How can I get the system drive letter?

There's an environment variable called SystemDrive which is set to the system drive (surprisingly enough). The getenv() call is how you can get to it.

char *sysDrive = getenv ("SystemDrive");

if (sysDrive == NULL) {

// vote me down.

} else {

// vote me up and use it.

}

if(DWORD len = ::ExpandEnvironmentStrings(input, 0, 0)) { if(len > 0) { TCHAR *cp = new TCHAR[len];

if(cp) { if(::ExpandEnvironmentStrings(input, cp, len) != 0) {

result = string(encodings::utf8, cp); } delete[] cp; } } }

<<<
Previous Post
练字好看日常书写却很丑?7招让你的日常书写和规范练字一样好看!

Copyright © 2088 世界杯门票_托马斯穆勒世界杯进球数 - noh16.com All Rights Reserved.

友情链接