home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 1999 October / PCpro_1999_10.ISO / Tools / vbcrypt / Control / Source / DES.ODL < prev    next >
Encoding:
Microsoft Object Description Language  |  1997-04-06  |  2.1 KB  |  75 lines

  1. // DES.odl : type library source for ActiveX Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (DES.tlb) that will become a resource in
  5. // DES.ocx.
  6.  
  7. #include <olectl.h>
  8. #include <idispids.h>
  9.  
  10. [ uuid(07D7C6E4-AE76-11D0-9A6F-000100000000), version(1.0),
  11.   helpfile("DES.hlp"),
  12.   helpstring("DES ActiveX Control module"),
  13.   control ]
  14. library DESLib
  15. {
  16.     importlib(STDOLE_TLB);
  17.     importlib(STDTYPE_TLB);
  18.  
  19.     //  Primary dispatch interface for CDESCtrl
  20.  
  21.     [ uuid(07D7C6E5-AE76-11D0-9A6F-000100000000),
  22.       helpstring("Dispatch interface for DES Control"), hidden ]
  23.     dispinterface _DDES
  24.     {
  25.         properties:
  26.             // NOTE - ClassWizard will maintain property information here.
  27.             //    Use extreme caution when editing this section.
  28.             //{{AFX_ODL_PROP(CDESCtrl)
  29.             [id(1),hidden] VARIANT Key;
  30.             //}}AFX_ODL_PROP
  31.  
  32.         methods:
  33.             // NOTE - ClassWizard will maintain method information here.
  34.             //    Use extreme caution when editing this section.
  35.             //{{AFX_ODL_METHOD(CDESCtrl)
  36.             [id(2)] void EncryptFile(BSTR PlaintextFile, BSTR CrypttextFile, [optional] VARIANT FailIfExists);
  37.             [id(3)] BSTR EncryptString(VARIANT Plaintext);
  38.             [id(4)] BSTR DecryptString(VARIANT Crypttext);
  39.             [id(5)] void DecryptFile(BSTR CrypttextFile, BSTR PlaintextFile, [optional]VARIANT FailIfExists);
  40.             //}}AFX_ODL_METHOD
  41.  
  42.             [id(DISPID_ABOUTBOX)] void AboutBox();
  43.     };
  44.  
  45.     //  Event dispatch interface for CDESCtrl
  46.  
  47.     [ uuid(07D7C6E6-AE76-11D0-9A6F-000100000000),
  48.       helpstring("Event interface for DES Control") ]
  49.     dispinterface _DDESEvents
  50.     {
  51.         properties:
  52.             //  Event interface has no properties
  53.  
  54.         methods:
  55.             // NOTE - ClassWizard will maintain event information here.
  56.             //    Use extreme caution when editing this section.
  57.             //{{AFX_ODL_EVENT(CDESCtrl)
  58.             //}}AFX_ODL_EVENT
  59.     };
  60.  
  61.     //  Class information for CDESCtrl
  62.  
  63.     [ uuid(07D7C6E7-AE76-11D0-9A6F-000100000000), licensed,
  64.       helpstring("DES Control"), control ]
  65.     coclass DES
  66.     {
  67.         [default] dispinterface _DDES;
  68.         [default, source] dispinterface _DDESEvents;
  69.     };
  70.  
  71.  
  72.     //{{AFX_APPEND_ODL}}
  73.     //}}AFX_APPEND_ODL}}
  74. };
  75.