API_P4_X.odl : type library source for ActiveX Control project.  This file will be processed by the Make Type Library (mktyplib) tool to produce the type library (API_P4_X.tlb) that will become a resource in API_P4_X.ocx.

#include <olectl.h>
#include <idispids.h>

 
[ uuid(C9B8FCAA-ABD5-11D2-ACAF-00105A1054F5), version(1.0),

  helpfile("API_P4_X.hlp"),

  helpstring("API_P4_X ActiveX Control module"),

  control ]

library API_P4_XLib

{

importlib(STDOLE_TLB);

importlib(STDTYPE_TLB);

 
//  Primary dispatch interface for CAPI_P4_SystemCtrl

 
[ uuid(C9B8FCAB-ABD5-11D2-ACAF-00105A1054F5),

  helpstring("Dispatch interface for API_P4_System Control"), hidden ]

dispinterface _DAPI_P4_System

  {

   properties:

       // NOTE - ClassWizard will maintain property information here.

       //    Use extreme caution when editing this section.

       //{{AFX_ODL_PROP(CAPI_P4_SystemCtrl)

       [id(1)] long SystemHandle;

       [id(2)] boolean DebugMode;

       [id(3)] BSTR CodeSet;

       [id(4)] long LastError;

       [id(5)] BSTR Machine;

       [id(6)] long Port;

       [id(7)] BSTR Environment;

       [id(8)] BSTR SystemUserId;

       [id(9)] BSTR SystemPassword;

       //}}AFX_ODL_PROP

 
   methods:

       // NOTE - ClassWizard will maintain method information here.

       //    Use extreme caution when editing this section.

       //{{AFX_ODL_METHOD(CAPI_P4_SystemCtrl)

       [id(10)] boolean Close();

       [id(11)] long Login();

       [id(12)] boolean FindTask(BSTR szTaskName, BSTR* szMachine, long* pnPort, BSTR* szEnvironment);

       //}}AFX_ODL_METHOD

 
      [id(DISPID_ABOUTBOX)] void AboutBox();

};

 
//  Event dispatch interface for CAPI_P4_SystemCtrl

 
[ uuid(C9B8FCAC-ABD5-11D2-ACAF-00105A1054F5),

  helpstring("Event interface for API_P4_System Control") ]

dispinterface _DAPI_P4_SystemEvents

  {

   properties:

       //  Event interface has no properties

 
   methods:

       // NOTE - ClassWizard will maintain event information here.

       //    Use extreme caution when editing this section.

       //{{AFX_ODL_EVENT(CAPI_P4_SystemCtrl)

       //}}AFX_ODL_EVENT

};

 
//  Class information for CAPI_P4_SystemCtrl

 
[ uuid(C9B8FCAD-ABD5-11D2-ACAF-00105A1054F5),

  helpstring("API_P4_System Control"), control ]

coclass API_P4_System

  {

   [default] dispinterface _DAPI_P4_System;

   [default, source] dispinterface _DAPI_P4_SystemEvents;

};

 
//  Primary dispatch interface for CAPI_P4_SessionCtrl

 
[ uuid(C9B8FCAF-ABD5-11D2-ACAF-00105A1054F5),

  helpstring("Dispatch interface for API_P4_Session Control"), hidden ]

dispinterface _DAPI_P4_Session

  {

   properties:

       // NOTE - ClassWizard will maintain property information here.

       //    Use extreme caution when editing this section.

       //{{AFX_ODL_PROP(CAPI_P4_SessionCtrl)

       [id(1)] long SessionHandle;

       [id(2)] long ParamListCount;

       [id(3)] BSTR ParamList;

       [id(4)] long BufSize;

       [id(5)] BSTR EnvList;

       [id(6)] long EnvListCount;

       [id(7)] BSTR EnvListOut;

       [id(8)] BSTR ParamListOut;

       [id(9)] long ParamCountOut;

       [id(10)] long EnvCountOut;

       [id(11)] BSTR Environment;

       [id(12)] BSTR OperatorId;

       [id(13)] BSTR OperatorPassword;

       [id(14)] BSTR CoDiv;

       [id(15)] long SystemHandle;

       [id(16)] BSTR TaskName;

       [id(17)] boolean EnablePrinterEvents;

       //}}AFX_ODL_PROP

 
   methods:

       // NOTE - ClassWizard will maintain method information here.

       //    Use extreme caution when editing this section.

       //{{AFX_ODL_METHOD(CAPI_P4_SessionCtrl)

       [id(18)] boolean Interrupt();

       [id(23), propget] BSTR Param(BSTR szKey);

       [id(23), propput] void Param(BSTR szKey, BSTR lpszNewValue);

       [id(19)] void ResetParams();

       [id(20)] boolean Close();

       [id(24), propget] BSTR Env(BSTR szKey);

       [id(24), propput] void Env(BSTR szKey, BSTR lpszNewValue);

       [id(25), propget] BSTR EnvOut(BSTR szKey);

       [id(25), propput] void EnvOut(BSTR szKey, BSTR lpszNewValue);

       [id(26), propget] BSTR ParamOut(BSTR szKey);

       [id(26), propput] void ParamOut(BSTR szKey, BSTR lpszNewValue);

       [id(21)] long Open();

       [id(22)] boolean ExecTask();

       //}}AFX_ODL_METHOD

 
       [id(DISPID_ABOUTBOX)] void AboutBox();

};

 
//  Event dispatch interface for CAPI_P4_SessionCtrl

 
[ uuid(C9B8FCB0-ABD5-11D2-ACAF-00105A1054F5),

  helpstring("Event interface for API_P4_Session Control") ]

dispinterface _DAPI_P4_SessionEvents

  {

   properties:

       //  Event interface has no properties

 
   methods:

       // NOTE - ClassWizard will maintain event information here.

       //    Use extreme caution when editing this section.

       //{{AFX_ODL_EVENT(CAPI_P4_SessionCtrl)

       [id(1)] void PrintLine(long nSessionHandle, long nOutputFormat, long nType, long nLineCtrl, long nDataLen, BSTR pOutBuf);

       //}}AFX_ODL_EVENT

};

 
//  Class information for CAPI_P4_SessionCtrl

 
[ uuid(C9B8FCB1-ABD5-11D2-ACAF-00105A1054F5),

  helpstring("API_P4_Session Control"), control ]

coclass API_P4_Session

  {

   [default] dispinterface _DAPI_P4_Session;

   [default, source] dispinterface _DAPI_P4_SessionEvents;

};

 
//{{AFX_APPEND_ODL}}

//}}AFX_APPEND_ODL}}

};

Comment on this topic

Topic ID: 540004

 
 
 

Table of Contents

Index

Glossary

-Search-

Back