hxmon.h

来自「Amarok是一款在LINUX或其他类UNIX操作系统中运行的音频播放器软件。 」· C头文件 代码 · 共 1,859 行 · 第 1/5 页

H
1,859
字号
/* * * This software is released under the provisions of the GPL version 2. * see file "COPYING".  If that file is not available, the full statement  * of the license can be found at * * http://www.fsf.org/licensing/licenses/gpl.txt * * Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved. * */#ifndef _HXMON_H_#define _HXMON_H_#include "hlxclib/limits.h"typedef _INTERFACE	IUnknown			IUnknown;typedef _INTERFACE	IHXPlugin			IHXPlugin;typedef _INTERFACE	IHXBuffer			IHXBuffer;typedef _INTERFACE	IHXValues			IHXValues;typedef _INTERFACE	IHXPropWatch			IHXPropWatch;typedef _INTERFACE	IHXPropWatchResponse		IHXPropWatchResponse;typedef _INTERFACE	IHXActiveRegistry		IHXActiveRegistry;typedef _INTERFACE	IHXActivePropUser		IHXActivePropUser;typedef _INTERFACE	IHXActivePropUserResponse	IHXActivePropUserResponse;typedef _INTERFACE	IHXRegistryAltStringHandling	IHXRegistryAltStringHandling;/* * Types of the values stored in the registry. */typedef enum _HXPropType{    PT_UNKNOWN,    PT_COMPOSITE,	/* Contains other values (elements)		     */    PT_INTEGER,		/* 32-bit signed value				     */    PT_INTREF,		/* Integer reference object -- 32-bit signed integer */    PT_STRING,		/* Signed char* value				     */    PT_BUFFER,		/* IHXBuffer object				     */    /*IHXRegistry2: */    PT_INTEGER64,	/* 64-bit signed value				     */    PT_INT64REF 	/* Integer reference object -- 64-bit signed integer */} HXPropType;/* *  *  Interface: * *	IHXRegistry * *  Purpose: * *	This interface provides access to the "Registry" in the server and *	client.  The "Registry" is a hierarchical structure of Name/Value *	pairs (properties) which is capable of storing many different types *	of data including strings, buffers, and integers.  The registry *	provides various types of information including statistics, *	configuration information, and system status. * *	Note:  This registry is not related to the Windows system registry. * *  IID_IHXRegistry: * *	{00000600-0901-11d1-8B06-00A024406D59} * */DEFINE_GUID(IID_IHXRegistry, 0x00000600, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 			0xa0, 0x24, 0x40, 0x6d, 0x59);#define CLSID_IHXRegistry	IID_IHXRegistry#undef  INTERFACE#define INTERFACE   IHXRegistryDECLARE_INTERFACE_(IHXRegistry, IUnknown){    /*     *	IUnknown methods     */    STDMETHOD(QueryInterface)	(THIS_				REFIID riid,				void** ppvObj) PURE;    STDMETHOD_(ULONG32,AddRef)	(THIS) PURE;    STDMETHOD_(ULONG32,Release)	(THIS) PURE;    /*     *	IHXRegistry methods     */    /************************************************************************     *  Method:     *      IHXRegistry::CreatePropWatch     *  Purpose:     *      Create a new IHXPropWatch object which can then be queried for      *  the right kind of IHXPropWatch object.     *     *  pPropWatch - OUT - returns a new addref'ed IHXPropWatch object      */    STDMETHOD(CreatePropWatch)		(THIS_					REF(IHXPropWatch*) pPropWatch) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::AddComp     *  Purpose:     *      Add a COMPOSITE property to the registry and return its ID     *  if successful. It returns ZERO (0) if an error occurred     *  during the operation.     *     *  pName - IN - name of the Property that is going to be added to      *               the registry     */    STDMETHOD_(UINT32, AddComp)		(THIS_					const char*	pName) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::AddInt     *  Purpose:     *      Add an INTEGER property with name in "pName" and value in      *  "iValue" to the registry. The return value is the id to     *  the newly added Property or ZERO if there was an error.     *     *  pName - IN - name of the Property that is going to be added to      *               the registry     *  nValue - IN - integer value of the Property that is going to be      *                added to the registry     */    STDMETHOD_(UINT32, AddInt)		(THIS_					const char*	pName, 					const INT32	nValue) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::GetIntByName     *  Purpose:     *      Retreive an INTEGER value from the registry given its Property     *  name "pName". If the Property is found, it will return HXR_OK,      *  otherwise it returns HXR_FAIL.     *     *  pName - IN - name of the Property whose value is to be retrieved     *  nValue - OUT - parameter into which the value of the Property is      *                 going to be returned     */    STDMETHOD(GetIntByName)		(THIS_					const char*	pName,					REF(INT32)	nValue) const PURE;    /************************************************************************     *  Method:     *      IHXRegistry::GetIntById     *  Purpose:     *      Retreive an INTEGER value from the registry given its id "ulId".      *  If the Property is found, it will return HXR_OK, otherwise it      *  returns HXR_FAIL.     *     *  ulId - IN - unique id of the Property whose value is to be retrieved     *  nValue - OUT - parameter into which the value of the Property is      *                 going to be returned     */    STDMETHOD(GetIntById)		(THIS_					const UINT32	ulId,					REF(INT32)	nValue) const PURE;    /************************************************************************     *  Method:     *      IHXRegistry::SetIntByName     *  Purpose:     *      Modify a Property's INTEGER value in the registry given the     *  Property's name "pName". If the value was set, it will return HXR_OK,      *  otherwise it returns HXR_FAIL.     *     *  pName - IN - name of the Property whose value is to be set     *  nValue - IN - the new value of the Property which is going to be set     */    STDMETHOD(SetIntByName)		(THIS_					const char*	pName, 					const INT32	nValue) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::SetIntById     *  Purpose:     *      Modify a Property's INTEGER value in the registry given the     *  its id "id". If the value was set, it will return HXR_OK, otherwise      *  it returns HXR_FAIL.     *     *  ulId - IN - unique id of the Property whose value is to be set     *  nValue - IN - the new value of the Property which is going to be set     */    STDMETHOD(SetIntById)		(THIS_					const UINT32	id,					const INT32	nValue) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::AddStr     *  Purpose:     *      Add an STRING property with name in "pName" and value in      *  "pValue" to the registry.     *     *  pName - IN - name of the Property that is going to be added to      *               the registry     *  pValue - IN - buffer value of the Property that is going to be      *                added to the registry     */    STDMETHOD_(UINT32, AddStr)		(THIS_					const char*	pName, 					IHXBuffer*	pValue) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::GetStrByName     *  Purpose:     *      Retreive an STRING value from the registry given its Property     *  name "pName". If the Property is found, it will return HXR_OK,      *  otherwise it returns HXR_FAIL.     *     *  pName - IN - name of the Property whose value is to be retrieved     *  pValue - OUT - parameter into which the value of the Property is      *                 going to be returned     */    STDMETHOD(GetStrByName)		(THIS_					const char*	 pName,					REF(IHXBuffer*) pValue) const PURE;    /************************************************************************     *  Method:     *      IHXRegistry::GetStrById     *  Purpose:     *      Retreive an STRING value from the registry given its id "ulId".      *  If the Property is found, it will return HXR_OK, otherwise it      *  returns HXR_FAIL.     *     *  ulId - IN - unique id of the Property whose value is to be retrieved     *  pValue - OUT - parameter into which the value of the Property is      *                 going to be returned     */    STDMETHOD(GetStrById)		(THIS_					const UINT32	 ulId,					REF(IHXBuffer*) pValue) const PURE;    /************************************************************************     *  Method:     *      IHXRegistry::SetStrByName     *  Purpose:     *      Modify a Property's STRING value in the registry given the     *  Property's name "pName". If the value was set, it will return      *  HXR_OK, otherwise it returns HXR_FAIL.     *     *  pName - IN - name of the Property whose value is to be set     *  pValue - IN - the new value of the Property which is going to be set     */    STDMETHOD(SetStrByName)		(THIS_					const char*	pName, 					IHXBuffer*	pValue) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::SetStrById     *  Purpose:     *      Modify a Property's STRING value in the registry given the     *  its id "ulId". If the value was set, it will return HXR_OK,      *  otherwise it returns HXR_FAIL.     *     *  ulId - IN - unique id of the Property whose value is to be set     *  pValue - IN - the new value of the Property which is going to be set     */    STDMETHOD(SetStrById)		(THIS_					const UINT32	ulId,					IHXBuffer*	pValue) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::AddBuf     *  Purpose:     *      Add an BUFFER property with name in "pName" and value in      *  "pValue" to the registry.     *     *  pName - IN - name of the Property that is going to be added to      *               the registry     *  pValue - IN - buffer value of the Property that is going to be      *                added to the registry     */    STDMETHOD_(UINT32, AddBuf)		(THIS_					const char*	pName, 					IHXBuffer*	pValue) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::GetBufByName     *  Purpose:     *      Retreive the BUFFER from the registry given its Property name      *  "pName". If the Property is found, it will return HXR_OK, otherwise      *  it returns HXR_FAIL.     *     *  pName - IN - name of the Property whose value is to be retrieved     *  pValue - OUT - parameter into which the value of the Property is      *                 going to be returned     */    STDMETHOD(GetBufByName)		(THIS_					const char*	 pName,					REF(IHXBuffer*) pValue) const PURE;    /************************************************************************     *  Method:     *      IHXRegistry::GetBufById     *  Purpose:     *      Retreive the BUFFER from the registry given its id "ulId". If the      *  Property is found, it will return HXR_OK, otherwise it returns      *  HXR_FAIL.     *     *  ulId - IN - unique id of the Property whose value is to be retrieved     *  pValue - OUT - parameter into which the value of the Property is      *                 going to be returned     */    STDMETHOD(GetBufById)		(THIS_					const UINT32	 ulId,					REF(IHXBuffer*) pValue) const PURE;    /************************************************************************     *  Method:     *      IHXRegistry::SetBufByName     *  Purpose:     *      Modify a Property's BUFFER in the registry given the     *  Property's name "pName". If the value was set, it will return      *  HXR_OK, otherwise it returns HXR_FAIL.     *     *  pName - IN - name of the Property whose value is to be set     *  pValue - IN - the new value of the Property which is going to be set     */    STDMETHOD(SetBufByName)		(THIS_					const char*	pName, 					IHXBuffer*	pValue) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::SetBufById     *  Purpose:     *      Modify a Property's BUFFER in the registry given its id "ulId".      *  If the value was set, it will return HXR_OK, otherwise it returns      *  HXR_FAIL.     *     *  ulId - IN - unique id of the Property whose value is to be set     *  pValue - IN - the new value of the Property which is going to be set     */    STDMETHOD(SetBufById)		(THIS_					const UINT32	ulId,					IHXBuffer*	pValue) PURE;    /************************************************************************     *  Method:     *      IHXRegistry::AddIntRef     *  Purpose:     *      Add an INTEGER REFERENCE property with name in "pName" and      *  value in "iValue" to the registry. This property allows the user     *  to modify its contents directly, without having to go through the     *  registry.     *     *  pName - IN - name of the Property that is going to be added to      *               the registry     *  pValue - IN - the pointer of the integer value is what gets stored     *                in the registry as the Interger Reference Property's      *                value     */    STDMETHOD_(UINT32, AddIntRef)	(THIS_

⌨️ 快捷键说明

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