home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
COMPMGR.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
4KB
|
122 lines
/********************************************************************/
/* Licensed Materials - Property of IBM */
/* */
/* */
/* Copyright (C) International Business Machines Corp., 1994. */
/* Copyright (C) Apple Computer, Inc., 1994 */
/* */
/* US Government Users Restricted Rights - */
/* Use, duplication, or disclosure restricted */
/* by GSA ADP Schedule Contract with IBM Corp. */
/* */
/* */
/********************************************************************/
#ifndef _COMPONENT_
#include <comp.idl>
#endif
#ifndef _COMPONENTMANAGER_
#define _COMPONENTMANAGER_
//==============================================================================
// Classes defined in this interface
//==============================================================================
interface ComponentManager;
interface M_ComponentManager;
//==============================================================================
// Classes used by this interface
//==============================================================================
interface Component;
//==============================================================================
// Implementation Types
//==============================================================================
//==============================================================================
// Class ComponentManager
//==============================================================================
interface M_ComponentManager : SOMClass {
#ifdef __SOMIDL__
implementation {
Environment ev;
majorversion = 1;
minorversion = 0;
functionprefix = M_CMGR_;
releaseorder : Reserved1;
somDefaultInit: override, init;
somDestruct: override;
dllname = "OPENDOC.DLL";
};
#endif
};
interface ComponentManager : SOMObject {
ODULong CountComponents(in ComponentDescription *plooking);
OSErr FindNextComponent(in ComponentDescription *plastFound,
in ComponentDescription *plooking,
out ComponentDescription pfound);
OSErr GetComponentInfo(in ComponentDescription *ptheComponent,
out char pcomponentName,
out char pcomponentInfo);
ODSLong GetComponentRefcon(in ComponentDescription *ptheComponent);
void SetComponentRefcon(in ComponentDescription *ptheComponent,
in ODSLong Refcon);
Component OpenComponent(in ComponentDescription *ptheComponent);
Component OpenDefaultComponent(in OSType componentType,
in OSType componentSubType);
OSErr CloseComponent(in Component theComponentInstance);
OSErr InstallComponent(in ComponentRegistryData *ptheData);
OSErr UninstallComponent(in OSType componentType,
in OSType componentSubType);
#ifdef __SOMIDL__
implementation
{
majorversion = 1;
minorversion = 0;
metaclass = M_ComponentManager;
functionprefix = CMGR_;
releaseorder : CountComponents,
FindNextComponent,
GetComponentInfo,
GetComponentRefcon,
SetComponentRefcon,
OpenComponent,
OpenDefaultComponent,
CloseComponent,
InstallComponent,
UninstallComponent;
somDefaultInit: override, init;
somDestruct: override;
dllname = "OPENDOC.DLL";
};
#endif
};
#endif