home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / os2hdr.exe / NWACCT.H < prev    next >
C/C++ Source or Header  |  1993-04-01  |  2KB  |  70 lines

  1. /*--------------------------------------------------------------------------
  2.      (C) Copyright Novell, Inc. 1991  All Rights Reserved.
  3.  
  4.  No part of this file may be duplicated, revised, translated, localized or
  5.  modified in any manner or compiled, linked, or uploaded or downloaded to or
  6.  from any computer system without the prior written consent of Novell, Inc.
  7. --------------------------------------------------------------------------*/
  8. #ifndef NOACCT_INC
  9. #define NOACCT_INC
  10.  
  11. #ifndef NWCALDEF_INC
  12. # include <nwcaldef.h>
  13. #endif
  14.  
  15. typedef struct
  16. {
  17.   DWORD objectID;
  18.   long  amount;
  19. } HOLDS_INFO;
  20.  
  21. typedef struct
  22. {
  23.   WORD holdsCount;
  24.   HOLDS_INFO holds[16];
  25. } HOLDS_STATUS;
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. NWCCODE NWAPI NWGetAccountStatus(
  31.   NWCONN_HANDLE conn,
  32.   WORD objectType,
  33.   char NWPTR objectName,
  34.   long NWPTR balance,
  35.   long NWPTR limit,
  36.   HOLDS_STATUS NWPTR holds);
  37.  
  38. NWCCODE NWAPI NWQueryAccountingInstalled(
  39.   NWCONN_HANDLE conn,
  40.   BYTE NWPTR installed);
  41.  
  42. NWCCODE NWAPI NWSubmitAccountCharge(
  43.   NWCONN_HANDLE conn,
  44.   WORD objectType,
  45.   char NWPTR objectName,
  46.   WORD serviceType,
  47.   long chargeAmount,
  48.   long holdCancelAmount,
  49.   WORD noteType,
  50.   char NWPTR note);
  51.  
  52. NWCCODE NWAPI NWSubmitAccountHold(
  53.   NWCONN_HANDLE conn,
  54.   WORD objectType,
  55.   char NWPTR objectName,
  56.   long holdAmount);
  57.  
  58. NWCCODE NWAPI NWSubmitAccountNote(
  59.   NWCONN_HANDLE conn,
  60.   WORD objectType,
  61.   char NWPTR objectName,
  62.   WORD serviceType,
  63.   WORD noteType,
  64.   char NWPTR note);
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68.  
  69. #endif
  70.