home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / mts4.cab / Account.VJ_Accountlib.idl < prev    next >
Text File  |  1997-11-14  |  3KB  |  139 lines

  1. // Filename: Account.idl
  2. //
  3. // Description: IDL source for Account.dll
  4. // This file will be processed by the MIDL tool to
  5. // produce the type library (Account.tlb) and marshalling code
  6. //
  7. // This file is provided as part of the Microsoft Transaction Server Samples
  8. //
  9. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT 
  10. // WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, 
  11. // INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 
  12. // OF MERCHANTABILITY AND/OR FITNESS FOR A  PARTICULAR 
  13. // PURPOSE.
  14. //
  15. // Copyright (C) 1997 Microsoft Corporation, All rights reserved
  16.  
  17. #include <mtxattr.h>
  18. #include <javaattr.h>
  19.  
  20. [
  21.    uuid(c6bb360d-289a-11d1-9dc5-00c04fc2fba2),
  22.    helpstring("AccountLib Type Library"),
  23.    version(1.0)
  24. ]
  25. library AccountLib
  26. {
  27.    importlib("stdole32.tlb");
  28.  
  29.  
  30.    [
  31.       uuid(a9f34d04-28a2-11d1-9dc5-00c04fc2fba2),
  32.       helpstring("IAccount Interface")
  33.    ]
  34.    dispinterface IAccount
  35.    {
  36.       properties:
  37.       methods:
  38.       [ helpstring("Post Method"), id(1) ]
  39.       BSTR Post([in] long p1, [in] long p2);
  40.  
  41.    }
  42.  
  43.    [
  44.          JAVACLASS("Account.Account"),
  45.       PROGID("Bank.Account.VJ"),
  46.       TRANSACTION_REQUIRED,
  47.       uuid(9faf8612-e902-11d0-b5be-00c04fb957d8),
  48.       helpstring("CAccount Object")
  49.    ]
  50.    coclass CAccount
  51.    {
  52.       [ default ]
  53.       dispinterface IAccount;
  54.    };
  55.  
  56.  
  57.    [
  58.       uuid(c20d92dc-28a2-11d1-9dc5-00c04fc2fba2),
  59.       helpstring("IGetReceipt Interface")
  60.    ]
  61.    dispinterface IGetReceipt
  62.    {
  63.       properties:
  64.       methods:
  65.       [ helpstring("GetNextReceipt Method"), id(1) ]
  66.       long GetNextReceipt();
  67.  
  68.    }
  69.  
  70.    [
  71.       JAVACLASS("Account.GetReceipt"),
  72.       PROGID("Bank.GetReceipt.VJ"),
  73.       TRANSACTION_SUPPORTED,
  74.       uuid(ab077646-e902-11d0-b5be-00c04fb957d8),
  75.       helpstring("CGetReceipt Object")
  76.    ]
  77.    coclass CGetReceipt
  78.    {
  79.       [ default ]
  80.       dispinterface IGetReceipt;
  81.    };
  82.  
  83.  
  84.    [
  85.       uuid(ca6cf4ea-28a2-11d1-9dc5-00c04fc2fba2),
  86.       helpstring("IMoveMoney Interface")
  87.    ]
  88.    dispinterface IMoveMoney
  89.    {
  90.       properties:
  91.       methods:
  92.       [ helpstring("Perform Method"), id(1) ]
  93.       BSTR Perform([in] long p1, [in] long p2, [in] long p3, [in] long p4);
  94.  
  95.    }
  96.  
  97.    [
  98.          JAVACLASS("Account.MoveMoney"),
  99.       PROGID("Bank.MoveMoney.VJ"),
  100.       TRANSACTION_REQUIRED,
  101.       uuid(b790937a-e902-11d0-b5be-00c04fb957d8),
  102.       helpstring("CMoveMoney Object")
  103.    ]
  104.    coclass CMoveMoney
  105.    {
  106.       [ default ]
  107.       dispinterface IMoveMoney;
  108.    };
  109.  
  110.  
  111.    [
  112.       uuid(d1bc8ae4-28a2-11d1-9dc5-00c04fc2fba2),
  113.       helpstring("IUpdateReceipt Interface")
  114.    ]
  115.    dispinterface IUpdateReceipt
  116.    {
  117.       properties:
  118.       methods:
  119.       [ helpstring("Update Method"), id(1) ]
  120.       long Update();
  121.  
  122.    }
  123.  
  124.    [
  125.          JAVACLASS("Account.UpdateReceipt"),
  126.       PROGID("Bank.UpdateReceipt.VJ"),
  127.       TRANSACTION_REQUIRES_NEW,
  128.       uuid(c25e3b4a-e902-11d0-b5be-00c04fb957d8),
  129.       helpstring("CUpdateReceipt Object")
  130.    ]
  131.    coclass CUpdateReceipt
  132.    {
  133.       [ default ]
  134.       dispinterface IUpdateReceipt;
  135.    };
  136.  
  137.  
  138. };
  139.