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

  1. #ifndef NWBINDRY_H
  2. #define NWBINDRY_H
  3.  
  4. /****************************************/
  5. /* Format of the LOGIN_CONTROL property */
  6. /****************************************/
  7.  
  8. typedef struct {
  9.        byte    accountexpirationdate[3];    /* byte 1 = yr, 2=month, 3=day */
  10.        byte    accountdisabledflag;
  11.        byte    passwordexpirationdate[3];   /* byte 1 = yr, 2=month, 3=day */
  12.        byte    graceloginsremaining;
  13.        nw_int  passwordexpirationinterval;
  14.        byte    graceloginsallowed;
  15.        byte    minimumpasswordlength;
  16.        nw_int  maxcurrentconnections;
  17.        byte    allowedlogintimebitmap[42];
  18.        byte    lastlogindatetime[6];
  19.        byte    restrictionsflag;            /* 0x01 - don't allow user to   */
  20.                                             /*        change password       */ 
  21.                                             /* 0x02 - unique passwords req. */
  22.        byte    unused;
  23.        nw_long maximumdiskusageinblocks;
  24.        nw_int  badlogincount;
  25.        nw_long nextresettime;
  26.        byte    badloginnetworknumber[4];
  27.        byte    badloginnodeaddress[6];
  28.        byte    badloginsocket[2];
  29.        } LOGINCONTROL_STRUCT;
  30.  
  31. /************************************************/
  32. /* Format of SUPERVISORs USER_DEFAULTS property */
  33. /************************************************/
  34.  
  35. typedef struct {
  36.        byte    accountexpirationdate[3];   /* byte 1 = yr, 2=month, 3=day */
  37.        byte    requireuniquepasswords;     /* 0x02 = unique passwords     */
  38.                                            /*        required             */
  39.        nw_int  passwordexpirationinterval;
  40.        byte    graceloginsallowed;
  41.        byte    minimumpasswordlength;
  42.        nw_int  maxcurrentconnections;
  43.        byte    allowedlogintimebitmap[42];
  44.        nw_long accountbalance;
  45.        nw_long lowbalance;                 /* unlimited = 0x80000000 */
  46.        nw_long maximumdiskusageinblocks;   /* no limit = 0x7fffffff  */
  47.        byte    createhomedirectory;        /* 0x00 = No, 0x01 = yes  */
  48.        } USERDEFAULTS_STRUCT;
  49.  
  50. /*******************************/
  51. /* Bindery Services prototypes */
  52. /*******************************/
  53.  
  54. #ifdef __cplusplus
  55. extern "C" {
  56. #endif
  57. int   AddBinderyObjectToSet(int objectType,
  58.                  char *objectName,
  59.                  char *propertyName,int memberType,
  60.                  char *memberName);
  61. int   ChangeBinderyObjectPassword(int objectType,
  62.                  char *objectName,char *oldPassword,
  63.                  char *newPassword);
  64. int   ChangeBinderyObjectSecurity(byte newSecurity,int objectType,
  65.                  char *objectName);
  66. int   ChangePropertySecurity(int objectType,
  67.                  char *objectName,
  68.                  byte newPropSecurity,char *propName);
  69. int   CloseBindery(void);
  70. int   CreateBinderyObject(byte flag,byte security,int objectType,
  71.                  char *objectName);
  72. int   CreateProperty(int objectType,char *objectName,
  73.                  byte propFlags,byte propSecurity,char *prop_name);
  74. int   DeleteBinderyObject(int objectType,
  75.                  char *objectName);
  76. int   DeleteBinderyObjectFromSet(int objectType,
  77.                  char *objectName,char *propertyName,
  78.                  int memberType,char *member_name);
  79. int   DeleteProperty(int objectType,char *objectName,
  80.                  char *propName);
  81. int   GetBinderyAccessLevel(long *objectID,
  82.                  byte *accessLevel);
  83. int   GetBinderyObjectID(int objectType,
  84.                  char *objectName,long *objectID);
  85. int   GetBinderyObjectName(long objectID,
  86.                  int *objectType,char *objectName);
  87. int   IsBinderyObjectInSet(int objectType,
  88.                  char *objectName,char *propertyName,
  89.                  int memberType,char *member_name);
  90. int   OpenBindery(void);
  91. int   ReadPropertyValue(int objectType,char *objectName,
  92.                  char *propertyName,int segment,
  93.                  char *propertyValues,
  94.                  byte *moreSegments,byte *propertyFlag);
  95. int   RenameBinderyObject(int objectType,
  96.                  char *objectName,char *newObjectName);
  97. int   ScanBinderyObject(int scanObjectType,
  98.                  char *scanObjectName,
  99.                  long *lastObjectID,
  100.                  int *objectType,char *objectName,
  101.                  byte *objectHasProperties,
  102.                  byte *objectSecurity,
  103.                  byte *objectFlag);
  104. int   ScanProperty(int objectType,char *objectName,
  105.                  char *scanPropertyName,
  106.                  long *lastSequence,
  107.                  char *propertyName,byte *propertyFlags,
  108.                  byte *propertySecurity,
  109.                  byte *propertyHasValue,
  110.                  byte *moreProperties);
  111. int   VerifyBinderyObjectPassword(int objectType,
  112.                  char *objectName,char *password);
  113. int   WritePropertyValue(int objectType,
  114.                  char *objectName,int segment,byte erase_remaining,
  115.                  char *propName,byte *value);
  116. #ifdef __cplusplus
  117. }
  118. #endif
  119.  
  120. #endif
  121.