Click here to Skip to main content
15,867,308 members
Articles / Programming Languages / C++

System Information Utility

Rate me:
Please Sign up or sign in to vote.
4.95/5 (12 votes)
17 Apr 2001 499.1K   8.6K   107  
Utility to extract system information
// MiscInfomation2.h : Declaration of the CMiscInfomation2

#pragma once
#include "resource.h"       // main symbols



// CMiscInfomation2

class ATL_NO_VTABLE CMiscInfomation2 : 
	public CComObjectRootEx<CComSingleThreadModel>,
	public CComCoClass<CMiscInfomation2, &CLSID_MiscInfomation>,
	public ISupportErrorInfo,
	public IDispatchImpl<IMiscInfomation2, &IID_IMiscInfomation2, &LIBID_SYSTEMMISCLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
{
public:
	CMiscInfomation2()
	{
	}

DECLARE_REGISTRY_RESOURCEID(IDR_MISCINFOMATION2)


BEGIN_COM_MAP(CMiscInfomation2)
	COM_INTERFACE_ENTRY(IMiscInfomation2)
	COM_INTERFACE_ENTRY(IDispatch)
	COM_INTERFACE_ENTRY(ISupportErrorInfo)
END_COM_MAP()

// ISupportsErrorInfo
	STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);

	DECLARE_PROTECT_FINAL_CONSTRUCT()

	HRESULT FinalConstruct()
	{
		return S_OK;
	}
	
	void FinalRelease() 
	{
	}

public:

};

OBJECT_ENTRY_AUTO(__uuidof(MiscInfomation2), CMiscInfomation2)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions