📄 getsysteminfo.cpp
字号:
// DGetSystemInfo.cpp : Implementation of CDGetSystemInfo
#include "stdafx.h"
#include "GetSystemInfo.h"
// CDGetSystemInfo
STDMETHODIMP CDGetSystemInfo::GetMyComputerName(BSTR* pComputerName)
{ USES_CONVERSION;
TCHAR lpBuffer[MAX_PATH];
if(pComputerName==NULL)return E_INVALIDARG;
DWORD len=MAX_PATH;
::GetComputerName(lpBuffer,&len);
*pComputerName=T2BSTR(lpBuffer);
return S_OK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -