home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / usms1.exe / SMSTYPES.H < prev    next >
Text File  |  1994-09-15  |  7KB  |  250 lines

  1. /*    ╔═══════════════════════════════════════════════════════════════════════════
  2.     ║ Program Name:        Storage Management Services
  3.     ║
  4.     ║ modname: smstypes.h    version: 1.1    date: 09/15/94
  5.     ║ PVCS:        $version$    $date$
  6.     ║
  7.     ║ Date Created:        March 4, 1992
  8.     ║
  9.     ║ Version:            3.2
  10.     ║
  11.     ║ Files used:        
  12.     ║
  13.     ║ Date Modified: 
  14.     ║
  15.     ║ Modifications: 
  16.     ║
  17.     ║ Comments:            Type definitions for SMS, this file is included by 
  18.     ║                    SMS.H and should not be included directly.
  19.     ║
  20.     ║ (C) Unpublished Copyright of Novell, Inc.  All Rights Reserved.
  21.     ║
  22.     ║ No part of this file may be duplicated, revised, translated, localized or
  23.     ║ modified in any manner or compiled, linked or uploaded or downloaded to or
  24.     ║ from any computer system without the prior written consent of Novell, Inc.
  25.     ╚═════════════════════════════════════════════════════════════════════════*/
  26.  
  27. #if !defined(_SMSTYPES_H_INCLUDED)
  28. #define _SMSTYPES_H_INCLUDED
  29.  
  30. #if !defined(TRUE)
  31.     #define TRUE  1
  32.     #define FALSE 0
  33. #endif
  34.  
  35. #define  KILO  1024
  36. #define  MEGA  (KILO * KILO)
  37. #define  GIGA  (MEGA * KILO)
  38. #define  TERA  (GIGA * KILO)
  39.  
  40. #if !defined(_nwtypes_) && !defined(_NWTYPES_H_INCLUDED_)
  41.     typedef unsigned long    CCODE;
  42.     typedef char             INT8;
  43.     typedef short            INT16;
  44.     typedef long             INT32;
  45.     typedef unsigned char    UINT8;
  46.     typedef unsigned short   UINT16;
  47.     typedef unsigned long    UINT32;
  48.     typedef short            NWBOOLEAN;
  49.    typedef UINT32           NWBOOLEAN32;
  50.  
  51.     #define _nwtypes_
  52.     #define _NWTYPES_H_INCLUDED_
  53. #endif
  54.  
  55. #if defined(__TURBOC__) || defined(_MSC_VER)    /* was (MSC) */
  56.     #define HUGE             huge
  57.     typedef char             BUFFER;
  58.     typedef char HUGE       *BUFFERPTR;
  59.     #if !defined(OS2_INCLUDED)
  60.         typedef char             CHAR;
  61.     #endif
  62.     typedef char HUGE       *LSTRING;
  63.     typedef char            *PSTRING;
  64.     typedef char HUGE       *STRING;
  65. #endif
  66.  
  67. #if defined(NLM) || defined(__WATCOMC__) || defined(__ICC__)
  68.     #define HUGE
  69.     typedef unsigned char    BUFFER;
  70.     typedef unsigned char   *BUFFERPTR;
  71.     #if !defined(OS2_INCLUDED)
  72.         typedef char             CHAR;
  73.     #endif
  74.     typedef unsigned char   *LSTRING;
  75.     typedef unsigned char   *PSTRING;
  76.     typedef unsigned char   *STRING;
  77. #endif
  78.  
  79.     typedef struct
  80.     {
  81.        UINT16 v[4];
  82.     } UINT64;
  83.  
  84.  
  85. typedef struct
  86. {
  87. //   int     type:4;
  88. //   int     timeZone:12;
  89.     UINT16  typeAndTimeZone;
  90.    INT16   year;
  91.    UINT8   month;
  92.    UINT8   day;
  93.    UINT8   hour;
  94.    UINT8   minute;
  95.    UINT8   second;
  96.    UINT8   centiSecond;
  97.    UINT8   hundredsOfMicroseconds;
  98.    UINT8   microSeconds;
  99.     UINT32  reserved;
  100. } ECMATime;
  101.  
  102. // ════════════════════════════════════════════════════════════════════════════
  103.     typedef struct
  104.     {
  105.         UINT16
  106.             size,
  107.             buffer[1];
  108.     } UINT16_BUFFER;
  109.  
  110.     typedef struct
  111.     {
  112.         UINT16
  113.             size;
  114.  
  115.         char
  116.             string[1];
  117.     } STRING_BUFFER;
  118.  
  119.     typedef struct
  120.     {
  121.         UINT16    bufferSize;                                                // 0x00
  122.         UINT16    dataSetNameSize;                                        // 0x02
  123.         UINT8        nameSpaceCount;                                        // 0x04
  124.         UINT8        keyInformationSize;                                    // 0x05
  125.         UINT8        keyInformation[1];                                    // 0x06
  126.     } NWSM_DATA_SET_NAME_LIST;
  127.     // UINT32    nameSpaceType;
  128.     // UINT32    reserved;
  129.     // UINT8        count;
  130.     // UINT16    namePositions[count];
  131.     // UINT16    separatorPositions[count];
  132.     // UINT16    nameLength;
  133.     // UINT8        name[nameLength + 1];
  134.  
  135.     typedef struct
  136.     {
  137.         UINT16    bufferSize;                                                // 0x00
  138.         UINT16    scanControlSize;                                        // 0x02
  139.         UINT32    scanType;                                                // 0x04
  140.         UINT32    firstAccessDateAndTime;                                    // 0x08
  141.         UINT32    lastAccessDateAndTime;                                    // 0x0C
  142.         UINT32    firstCreateDateAndTime;                                    // 0x10
  143.         UINT32    lastCreateDateAndTime;                                    // 0x14
  144.         UINT32    firstModifiedDateAndTime;                                // 0x18
  145.         UINT32    lastModifiedDateAndTime;                                // 0x1C
  146.         UINT32    firstArchivedDateAndTime;                                // 0x20
  147.         UINT32    lastArchivedDateAndTime;                                // 0x24
  148.         UINT8    returnChildTerminalNodeNameOnly;                        // 0x28
  149.         UINT8    parentsOnly;                                            // 0x29
  150.         UINT8    childrenOnly;                                            // 0x2A
  151.         UINT8    createSkippedDataSetsFile;                                // 0x2B
  152.         UINT8    generateCRC;                                            // 0x2C
  153.         UINT8    returnNFSHardLinksInDataSetName;                        // 0x2D
  154.         UINT8    reserved[6];                                            // 0x2E
  155.         UINT32    scanChildNameSpaceType;                                    // 0x34
  156.         UINT32    returnNameSpaceType;                                    // 0x38
  157.         UINT8    callScanFilter;                                            // 0x3C
  158.         UINT16    otherInformationSize;                                    // 0x3D
  159.         UINT8    otherInformation[1];                                    // 0x3F
  160.     } NWSM_SCAN_CONTROL;
  161.  
  162.     typedef struct
  163.     {
  164.         UINT16    bufferSize;                                                // 0x00
  165.         UINT16    scanInformationSize;                                    // 0x02
  166.         UINT32    attributes;                                                // 0x04
  167.         UINT32    creatorID;                                                // 0x08
  168.         UINT32    creatorNameSpaceNumber;                                    // 0x0C
  169.         UINT32    primaryDataStreamSize;                                    // 0x10
  170.         UINT32    totalStreamsDataSize;                                    // 0x14
  171.         UINT8    modifiedFlag;                                            // 0x18
  172.         UINT8    deletedFlag;                                            // 0x19
  173.         UINT8    parentFlag;                                                // 0x1A
  174.         UINT8    reserved[5];                                            // 0x1B
  175.         UINT32    accessDateAndTime;                                        // 0x20
  176.         UINT32    createDateAndTime;                                        // 0x24
  177.         UINT32    modifiedDateAndTime;                                    // 0x28
  178.         UINT32    archivedDateAndTime;                                    // 0x2C
  179.         UINT16    otherInformationSize;                                    // 0x30
  180.         UINT8    otherInformation[1];                                    // 0x32
  181.     } NWSM_SCAN_INFORMATION;
  182.  
  183.     typedef struct
  184.     {
  185.         UINT16    bufferSize;                                                // 0x00
  186.         UINT16    selectionListSize;                                        // 0x02
  187.         UINT8    selectionCount;                                         // 0x04
  188.         UINT8    keyInformationSize;                                        // 0x05
  189.         UINT8    keyInformation[1];                                        // 0x06
  190.     } NWSM_SELECTION_LIST;
  191.     //    UINT32    selectionNameSpaceType;
  192.     //    UINT32    selectionType;
  193.     //    UINT8    count;
  194.     //    UINT16    namePositions[count];
  195.     //    UINT16    separatorPositions[count];
  196.     //    UINT16    nameLength;
  197.     //    UINT8    name[nameLength + 1];
  198.  
  199.     typedef struct
  200.     {
  201.         char    
  202.             moduleFileName[256];
  203.  
  204.         UINT8
  205.             moduleMajorVersion,
  206.             moduleMinorVersion;
  207.  
  208.         UINT16
  209.             moduleRevisionLevel;
  210.  
  211.         char
  212.             baseOS[64];
  213.  
  214.         UINT8
  215.             baseOSMajorVersion,
  216.             baseOSMinorVersion;
  217.  
  218.         UINT16
  219.             baseOSRevisionLevel;
  220.     } 
  221.     NWSM_MODULE_VERSION_INFO;
  222.  
  223.     typedef struct _NWSM_NAME_LIST
  224.     {
  225.         struct _NWSM_NAME_LIST *next;                                    // 0x00
  226.         STRING    name;                                                    // 0x04
  227.         void   *other_info;
  228.     } NWSM_NAME_LIST;
  229.  
  230.  
  231. // ════════════════════════════════════════════════════════════════════════════
  232.  
  233. #define    NWSM_NETWORK_CONNECTION     0
  234. #define    NWSM_NAME_PASSWORD_PAIR     1
  235.  
  236.  
  237. typedef struct                         // this is the header of a generic,   
  238. {                                      // length-preceeded array of bytes
  239.     UINT32     length;                  
  240.     INT8       stream[4];                
  241.  
  242. } NWSM_LongByteStream;
  243.  
  244.  
  245.  
  246. #endif
  247.  
  248. // ════════════════════════════════════════════════════════════════════════════
  249.  
  250.