⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpuuse.idl

📁 CPU利用率组件示例程序
💻 IDL
字号:
// CPUuse.idl : IDL source for CPUuse.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (CPUuse.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(F6F0ADA0-32FA-11D7-AA35-EA02DB2FF40A),
		dual,
		helpstring("ICpuUsage Interface"),
		pointer_default(unique)
	]
	interface ICpuUsage : IDispatch
	{
		[id(1), helpstring("method IsShellSystemType")] HRESULT IsShellSystemType([out,retval]BSTR* pbstrSysType);
		[id(2), helpstring("method CpuUsage9x")] HRESULT CpuUsage9x([out,retval]long *plResult);
		[id(3), helpstring("method CpuUsage2000")] HRESULT CpuUsage2000([out,retval]long* plResult);
	};

[
	uuid(4A11C6A0-32B4-11D7-AA35-BA655511EE0A),
	version(1.0),
	helpstring("CPUuse 1.0 Type Library")
]
library CPUUSELib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(F6F0ADA1-32FA-11D7-AA35-EA02DB2FF40A),
		helpstring("CpuUsage Class")
	]
	coclass CpuUsage
	{
		[default] interface ICpuUsage;
	};
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -