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

📄 rmaprefs.pas

📁 Delphi源码REAlRMSDK.rar
💻 PAS
字号:
unit RmaPrefs;

interface

uses
  PnTypes, RmaPckts;

//***************************************************************************
//
//  $Id: rmaprefs.h,v 1.19 1999/02/23 22:50:26 henry Exp $
//
//  Copyright (C) 1995-1999 RealNetworks, Inc. All rights reserved.
//
//  http://www.real.com/devzone
//
//  This program contains proprietary
//  information of Progressive Networks, Inc, and is licensed
//  subject to restrictions on use and distribution.
//
//
//  Persistent Preferences Interfaces
//
//  Here are the preference entries set by the client core and renderers:
//	    KEY				DEFAULT VALUES
//	=================	    ====================
//	AttemptMulticast		    1
//	AttemptTCP			    1
//	AttemptUDP			    1
//	AudioQuality			    0
//	AutoTransport			    1
//	Bandwidth			    28800
//	BitsPerSample			    16
//	BroadcastPluginInfo		    {dllpath;description;copyright;moreinfo;loadmultiple;type}{ ... }
//	ClientLicenseKey		    7FF7FF00
//	EndScan				    10000
//	FactoryPluginInfo
//	FileFormatPluginInfo		    {dllpath;description;copyright;moreinfo;loadmultiple;mimetype1|mimetype2;extension1|extension2}{ ... }
//	FileSystemPluginInfo		    {dllpath;description;copyright;moreinfo;loadmultiple;protocol;shortname}{ ... }
//	GeneralPluginInfo		    {dllpath;description;copyright;moreinfo;loadmultiple}{ ... }
//	PNAProxyHost
//	PNAProxyPort			    1090
//	RTSPProxyHost
//	RTSPProxyPort			    554
//	HTTPProxyHost
//	HTTPProxyPort			    1092
//	HurledURL			    0
//	InfoandVolume			    1
//	LastURL
//	MaxClipCount			    4
//	MetaFormatPluginInfo		    {dllpath;description;copyright;moreinfo;loadmultiple;mimetype1|mimetype2;extension1|extension2}{ ... }
//	MiscPluginInfo			    {dllpath;description;copyright;moreinfo;loadmultiple}{ ... }
//	MulticastTimeout		    2000
//	NotProxy
//	OnTop				    0
//	PerfectPlayMode			    0
//	PerfectPlayTime			    60
//	PerfPlayEntireClip		    1
//	PluginDirectory
//	Presets#
//	ProxySupport			    0
//	RendererPluginInfo		    {dllpath;description;copyright;moreinfo;loadmultiple;mimetype1|mimetype2}{ ... }
//	SamplingRate			    8000
//	SeekPage			    40
//	SendStatistics			    1
//	ServerTimeOut			    90
//	ShowPresets			    0
//	StatusBar			    1
//	StreamDescriptionPluginInfo	    {dllpath;description;copyright;moreinfo;loadmultiple;mimetype}{ ... }
//	SyncMultimedia			    1
//	UDPPort				    7070
//	UDPTimeout			    10000
//	UpgradeAvailable		    0
//	UseUDPPort			    0
//	Volume				    50
//	x:Pref_windowPositionX
//	y:Pref_WindowPositionY
//

const
  RMAPNREGISTRY_PREFPROPNAME = 'ApplicationData';
  {$EXTERNALSYM RMAPNREGISTRY_PREFPROPNAME}

//***************************************************************************
//
//  Interface:
//
//	IRMAPreferences
//
//  Purpose:
//
//	This interface allows you to store persistant preferences in the
//	server or player's config / registry.
//
//  IID_IRMAPreferences:
//
//	{00000500-0901-11d1-8B06-00A024406D59}
//
//

const
  IID_IRMAPreferences: TGUID = '{00000500-0901-11d1-8B06-00A024406D59}';
  {$EXTERNALSYM IID_IRMAPreferences}

type
  IRMAPreferences = interface (IUnknown)
  ['{00000500-0901-11d1-8B06-00A024406D59}']

    //***********************************************************************
    //	Method:
    //		IRMAPreferences::ReadPref
    //	Purpose:
    //		Read a preference from the registry or configuration.
    //

    function ReadPref(pPrekKey: PChar; out pBuffer: IRMABuffer): HRESULT; stdcall;

    //***********************************************************************
    //  Method:
    //		IRMAPreferences::WritePref
    //	Purpose:
    //		TBD
    //

    function WritePref(pPrekKey: PChar; pBuffer: IRMABuffer): HRESULT; stdcall;

  end;
  {$EXTERNALSYM IRMAPreferences}

//***************************************************************************
//
//  Interface:
//
//	IRMAPreferenceEnumerator
//
//  Purpose:
//
//	Allows preference Enumeration
//
//
//  IRMAPreferenceEnumerator:
//
//	{00000504-0901-11d1-8B06-00A024406D59}
//
//

const
  IID_IRMAPreferenceEnumerator: TGUID = '{00000504-0901-11d1-8B06-00A024406D59}';
  {$EXTERNALSYM IID_IRMAPreferenceEnumerator}

type
  IRMAPreferenceEnumerator = interface (IUnknown)
  ['{00000504-0901-11d1-8B06-00A024406D59}']

    //***********************************************************************
    //	Method:
    //		IRMAPreferenceEnumerator::EndSubPref
    //	Purpose:
    //		TBD
    //

    function BeginSubPref(szSubPref: PChar): HRESULT; stdcall;

    //***********************************************************************
    //	Method:
    //		IRMAPreferenceEnumerator::EndSubPref
    //	Purpose:
    //		TBD
    //

    function EndSubPref: HRESULT; stdcall;

    //***********************************************************************
    //	Method:
    //		IRMAPreferenceEnumerator::GetPrefKey
    //	Purpose:
    //		TBD
    //

    function GetPrefKey(nIndex: UINT32; out pBuffer: IRMABuffer): HRESULT; stdcall;

    //***********************************************************************
    //  Method:
    //		IRMAPreferenceEnumerator::ReadPref
    //	Purpose:
    //		TBD
    //

    function ReadPref(pPrefKey: PChar; var pBuffer: IRMABuffer): HRESULT; stdcall;

  end;
  {$EXTERNALSYM IRMAPreferenceEnumerator}



//***************************************************************************
//
//  Interface:
//
//	IRMAPreferences2
//
//  Purpose:
//
//	New interface which gives sub-preference options abilities.
//
//
//  IID_IRMAPreferences2:
//
//	{00000503-0901-11d1-8B06-00A024406D59}
//
//

const
  IID_IRMAPreferences2: TGUID = '{00000503-0901-11d1-8B06-00A024406D59}';
  {$EXTERNALSYM IID_IRMAPreferences2}

type
  IRMAPreferences2 = interface (IUnknown)
  ['{00000503-0901-11d1-8B06-00A024406D59}']

    //***********************************************************************
    //	Method:
    //		IRMAPreferences2::GetPreferenceEnumerator
    //	Purpose:
    //		Read a preference from the registry or configuration.
    //

    function GetPreferenceEnumerator(out pEnum: IRMAPreferenceEnumerator): HRESULT; stdcall;

    //***********************************************************************
    //	Method:
    //		IRMAPreferences2::ResetRoot
    //	Purpose:
    //		Reset the root of the preferences
    //

    function ResetRoot(pCompanyName, pProductName: PChar; nProdMajorVer, nProdMinorVer: Integer): HRESULT; stdcall;
    
  end;
  {$EXTERNALSYM IRMAPreferences2}

implementation

end.

⌨️ 快捷键说明

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