📄 getsysteminfo.h
字号:
// DGetSystemInfo.h : Declaration of the CDGetSystemInfo
#pragma once
#include "resource.h" // main symbols
// IDGetSystemInfo
[
object,
uuid("6599FDDC-AB41-4C4B-841C-26213EFF2E7A"),
dual, helpstring("IDGetSystemInfo Interface"),
pointer_default(unique)
]
__interface IDGetSystemInfo : IDispatch
{
[id(1), helpstring("方法GetMyComputerName")] HRESULT GetMyComputerName([out,retval] BSTR* pComputerName);
};
// CDGetSystemInfo
[
coclass,
threading("apartment"),
vi_progid("SIServer.DGetSystemInfo"),
progid("SIServer.DGetSystemInfo.1"),
version(1.0),
uuid("9B886726-9087-41B8-AC1D-E84695268AB3"),
helpstring("DGetSystemInfo Class")
]
class ATL_NO_VTABLE CDGetSystemInfo :
public IDGetSystemInfo
{
public:
CDGetSystemInfo()
{
}
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT FinalConstruct()
{
return S_OK;
}
void FinalRelease()
{
}
public:
STDMETHOD(GetMyComputerName)(BSTR* pComputerName);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -