How to check Win7 or 64bit environment
来源:互联网 发布:unity3d人物行走代码 编辑:程序博客网 时间:2024/04/28 01:20
private static string ProgramFilesx86()
{
if (8 == IntPtr.Size
|| (!String.IsNullOrEmpty(Environment.GetEnvironmentVariable("PROCESSOR_ARCHITEW6432"))))
{
return Environment.GetEnvironmentVariable("ProgramFiles(x86)");
}
return Environment.GetEnvironmentVariable("ProgramFiles");
}
string programeMenuPath = ProgramFilesx86();
[DllImport("shell32.dll")]
static extern bool SHGetSpecialFolderPath(IntPtr hwndOwner, [Out] StringBuilder lpszPath, int nFolder, bool fCreate);
const int CSIDL_COMMON_STARTMENU = 0x16;
StringBuilder stringBuilder = new StringBuilder(1000);
SHGetSpecialFolderPath(IntPtr.Zero, stringBuilder, CSIDL_COMMON_STARTMENU, false);
string shortCutPath = Path.Combine(stringBuilder.ToString(), "Programs");
- How to check Win7 or 64bit environment
- How to check Win7 or 64bit environment
- How to Check for 32 or 64 Bit Fedora
- How to install ASE Isql on 64bit Win7
- How to check environment variable in robot framework?
- How to tell if your Intel-based Mac has a 32-bit or 64-bit processor
- How to justify if a windows program is 32 bit or 64 bit
- How to compile TLD with Win7-64bit + matlab2013b-64bit + VS2012 + OpenCV3.0
- How to check if a static library is built for 64-bit?
- check if unmanaged dll is 32-bit or 64-bit?
- How to rename ASM instances in RAC or clustered environment
- How to Check Whether API Server is up or Down
- How-To: Install Google’s Android Eclipse plugin (and/or adb) on 64-bit Debian/Ubuntu
- How to tell if you’re running the 32 bit or 64 bit kernel in Mac OS X Snow Leopard
- How to Install OracleClient11g32-bit on Win7 + Add ODBC
- How to check srvconfig.
- Memory usage in a 32bit Windows environment (how to avoid ORA-4030 /ORA-12500s
- How To Avoid ORA-04030/ORA-12500 In 32 Bit Windows Environment [Video] [ID 373602.1]
- css中如何使div居中(垂直水平居中)
- ,,,
- 破解Xp登录密码九种方法
- TCP连接状态详解
- Qt3.2中的多线程编程
- How to check Win7 or 64bit environment
- How to create short-cut dynamically
- How to assign control right to specific folder
- php xdebug使用小结
- 查看class被什么版本jdk编译
- 《火车运煤问题》分析
- linux 2.6进程与线程
- JavaScript: How to detect that the Internet Connection is foffline
- Oracle数据库操作