home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / os232.exe / INCLUDE / NWMIGRAT.H < prev    next >
C/C++ Source or Header  |  1995-05-09  |  4KB  |  146 lines

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwmigrat.h  $
  4.   $Revision:   1.8  $
  5.   $Modtime::   08 May 1995 17:08:20                        $
  6.   $Copyright:
  7.  
  8.   Copyright (c) 1989-1995 Novell, Inc.  All Rights Reserved.                      
  9.  
  10.   THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  11.   TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  12.   COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  13.   EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  14.   WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  15.   OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  16.   CRIMINAL AND CIVIL LIABILITY.$
  17.  
  18.  *****************************************************************************/
  19.  
  20. #if ! defined ( NWMIGRAT_H )
  21. #define NWMIGRAT_H
  22.  
  23. #if ! defined ( NTYPES_H )
  24. # include "ntypes.h"
  25. #endif
  26.  
  27. #if ! defined ( NWCALDEF_H )
  28. # include "nwcaldef.h"
  29. #endif
  30.  
  31. #include "npackon.h"
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. #define MAX_NUM_OF_DATA_STREAMS       3
  38. #define MAX_SIZE_OF_SM_STRING       128
  39. #define MAX_SIZE_OF_SM_INFO         128
  40. #define MAX_NUM_OF_SM                32
  41.  
  42. #define ERR_INVALID_SM_ID           240
  43. #define ERR_SM_ALREADY_REGISTERED   241
  44. #define ERR_SM_CREATE_FAILED        242
  45. #define ERR_SM_CLOSE_FAILED         243
  46. #define ERR_SM_WRITE_NO_SPACE       244
  47. #define ERR_SM_WRITE_IO_ERROR       245
  48. #define ERR_SM_READ_IO_ERROR        246
  49. #define ERR_SM_OPEN_FAILED          247
  50. #define ERR_SM_DELETE_FAILED        248
  51.  
  52. typedef struct
  53. {
  54.    nuint32 IOStatus;
  55.    nuint32 InfoBlockSize;
  56.    nuint32 AvailSpace;
  57.    nuint32 UsedSpace;
  58.    /* A length preceded string is followed by SMInfo data */
  59.    nuint8 SMInfo[MAX_SIZE_OF_SM_STRING + MAX_SIZE_OF_SM_INFO];
  60. }  SUPPORT_MODULE_INFO;
  61.  
  62. typedef struct
  63. {
  64.    nuint32 numberOfSMs;
  65.    nuint32 SMIDs[MAX_NUM_OF_SM];
  66. }  SUPPORT_MODULE_IDS;
  67.  
  68. NWCCODE N_API NWMoveFileToDM
  69. (
  70.    NWCONN_HANDLE   conn,
  71.    NWDIR_HANDLE    dirHandle,
  72.    pnstr8          path,
  73.    nuint8          nameSpace,
  74.    nuint32         supportModuleID,
  75.    nuint32         saveKeyFlag
  76. );
  77.  
  78. NWCCODE N_API NWMoveFileFromDM
  79. (
  80.    NWCONN_HANDLE  conn,
  81.    NWDIR_HANDLE   dirHandle,
  82.    pnstr8         path,
  83.    nuint8         nameSpace
  84. );
  85.  
  86. NWCCODE N_API NWGetDMFileInfo
  87. (
  88.    NWCONN_HANDLE  conn,
  89.    NWDIR_HANDLE   dirHandle,
  90.    pnstr8         path,
  91.    nuint8         nameSpace,
  92.    pnuint32       supportModuleID,
  93.    pnuint32       restoreTime,
  94.    pnuint32       dataStreams
  95. );
  96.  
  97. NWCCODE N_API NWGetDMVolumeInfo
  98. (
  99.    NWCONN_HANDLE  conn,
  100.    nuint16        volume,
  101.    nuint32        supportModuleID,
  102.    pnuint32       numberOfFilesMigrated,
  103.    pnuint32       totalMigratedSize,
  104.    pnuint32       spaceUsedOnDM,
  105.    pnuint32       limboSpaceUsedOnDM,
  106.    pnuint32       spaceMigrated,
  107.    pnuint32       filesInLimbo
  108. );
  109.  
  110. NWCCODE N_API NWGetSupportModuleInfo
  111. (
  112.    NWCONN_HANDLE  conn,
  113.    nuint32        infomationLevel,
  114.    nuint32        supportModuleID,
  115.    pnuint8        returnInfo,
  116.    pnuint32       returnInfoLen
  117. );
  118.  
  119. NWCCODE N_API NWGetDataMigratorInfo
  120. (
  121.    NWCONN_HANDLE  conn,
  122.    pnuint32       DMPresentFlag,
  123.    pnuint32       majorVersion,
  124.    pnuint32       minorVersion,
  125.    pnuint32       DMSMRegistered
  126. );
  127.  
  128. NWCCODE N_API NWGetDefaultSupportModule
  129. (
  130.    NWCONN_HANDLE  conn,
  131.    pnuint32       supportModuleID
  132. );
  133.  
  134. NWCCODE N_API NWSetDefaultSupportModule
  135. (
  136.    NWCONN_HANDLE  conn,
  137.    pnuint32       supportModuleID
  138. );
  139.  
  140. #ifdef __cplusplus
  141. }
  142. #endif
  143.  
  144. #include "npackoff.h"
  145. #endif
  146.