home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / NETCLB35.ZIP / NETCLB35.EXE / INCLUDE / NWSERVER.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-03  |  4.6 KB  |  145 lines

  1. #ifndef NWSERVER_H
  2. #define NWSERVER_H
  3.  
  4. /***********************************/
  5. /* File Server Services prototypes */
  6. /***********************************/
  7.  
  8. typedef struct {
  9.    long system_elapsed_time;
  10.    int cache_buffer_count;
  11.    int cache_buffer_size;
  12.    int dirty_cache_buffers;
  13.    long cache_read_requests;
  14.    long cache_write_requests;
  15.    long cache_hits;
  16.    long cache_misses;
  17.    long physical_read_requests;
  18.    long physical_write_requests;
  19.    int physical_read_errors;
  20.    int physical_write_errors;
  21.    long cache_get_requests;
  22.    long cache_full_write_requests;
  23.    long cache_partial_write_requests;
  24.    long background_dirty_writes;
  25.    long background_aged_writes;
  26.    long total_cache_writes;
  27.    long cache_allocations;
  28.    int thrashing_count;
  29.    int LRU_block_was_dirty;
  30.    int read_beyond_write;
  31.    int fragmented_write_occurred;
  32.    int cache_hit_unavail_block;
  33.    int cache_block_scrapped;
  34.    } DISK_CACHE_STATISTICS;         /* GetDiskCacheStatistics */
  35.  
  36. typedef struct {
  37.    char server_name[48];
  38.    byte netware_version;
  39.    byte netware_subversion;
  40.    int connections_supported;
  41.    int connections_in_use;
  42.    int max_connected_volumes;
  43.    byte os_revision;
  44.    byte SFT_level;
  45.    byte TTS_level;
  46.    int peak_connections_used;
  47.    byte accounting_version;
  48.    byte VAP_version;
  49.    byte queuing_version;
  50.    byte print_server_version;
  51.    byte virtual_console_version;
  52.    byte security_restrictions_level;
  53.    byte internet_bridge_version;
  54.    byte reserved[60];
  55.    } FILE_SERVER_INFO;          /* GetFileServerInformation */
  56.  
  57. typedef struct {
  58.    word  task_number;
  59.    dword parent_dir_entry;
  60.    dword directory_entry;
  61.    byte  lock_flag;
  62.    byte  access_flag;
  63.    byte  lock_type;
  64.    byte  name_space;
  65.    byte  volume_number;
  66.    byte  reserved;
  67.    char  file_name[14];
  68.    } OPEN_FILES_INFO;               /* GetConnectionsOpenFiles */
  69.  
  70. typedef struct {
  71.    word buffer_length;
  72.    long system_elapsed_time;
  73.    byte physical_disk_channel;
  74.    byte drive_removable_flag;
  75.    byte physical_drive_type;
  76.    byte controller_drive_number;
  77.    byte controller_number;
  78.    byte controller_type;
  79.    long drive_size;
  80.    int drive_cylinders;
  81.    byte drive_heads;
  82.    byte sectors_per_track;
  83.    char drive_definition_string[64];
  84.    int io_error_count;
  85.    long hot_fix_table_start;
  86.    int hot_fix_table_size;
  87.    int hot_fix_blocks_available;
  88.    byte hot_fix_disabled;
  89.    } PHYSICAL_DISK_STATISTICS;         /* GetPhysicalDiskStatistics */
  90.  
  91. #ifdef __cplusplus
  92. extern "C" {
  93. #endif
  94. int   CheckConsolePrivileges(void);
  95. int   ClearConnectionNumber(int connection);
  96. int   ConvertPathToDirectoryEntry(byte directoryHandle,
  97.                  char *directoryPath,word *volumeNumber,
  98.                  dword *dirEntryNumber);
  99. int   DisableFileServerLogin(void);
  100. int   DisableTransactionTracking(void);
  101. int   DownFileServer(int forceIt);
  102. int   EnableFileServerLogin(void);
  103. int   EnableTransactionTracking(void);
  104. int   GetBinderyObjectDiskSpaceLeft(long objectID,
  105.                  long *systemElapsedTime,
  106.                  long *unusedDiskBlocks,
  107.                  byte *restrictionsEnforced);
  108. int   GetConnectionsOpenFiles(int connection,int maxEntries,
  109.                  OPEN_FILES_INFO *openFiles,
  110.                  int *fileCount);
  111. int   GetConnectionsUsageStatistics(int connection,
  112.                  long *systemElapsedTime,
  113.                  double *bytesRead,
  114.                  double *bytesWritten,
  115.                  long *totalRequestPackets);
  116. int   GetDiskCacheStatistics(
  117.                  DISK_CACHE_STATISTICS *buffer);
  118. int   GetDiskUtilisation(long objectID,byte volumeNumber,
  119.                  word *usedDirectories,word *usedFiles,
  120.                  word *usedBlocks);
  121. void  GetFileServerDateTime(nw_time *time,
  122.                  nw_date *date,int *dayOfWeek);
  123. int   GetFileServerInformation(
  124.                  FILE_SERVER_INFO *info);
  125. int   GetFileServerLoginStatus(int *loginEnabled);
  126. int   GetNetworkSerialNumber(dword *serverSerialNumber,
  127.                  word  *appSerialNumber);
  128. int   GetPathFromDirectoryEntry(byte nameSpace,byte volumeNumber,
  129.                  dword directoryEntry,char *path);
  130. int   GetPhysicalDiskStatistics(byte physicalDiskNumber,
  131.                  PHYSICAL_DISK_STATISTICS *diskStats);
  132. int   GetSemaphoreInformation(char *semaphoreName,
  133.                  int maxConnections,word *openCount,
  134.                  int *semaphoreValue,
  135.                  word *logicalConnections,
  136.                  word *taskNumbers,
  137.                  int *connectionCount );
  138. int   SendConsoleBroadcast(byte connectionCount,
  139.                  byte *connections,char *message);
  140. #ifdef __cplusplus
  141. }
  142. #endif
  143.  
  144. #endif
  145.