Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: NWStruct.hxx
  7. //
  8. // Contents: Structures used in OleDS NetWare 3.X provider.
  9. //
  10. // History: Apr-26-96 t-ptam (Patrick Tam) Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. //
  14. // Reply segments from NCP call.
  15. //
  16. typedef struct REPLY_SGMT_LST {
  17. CHAR Segment[REPLY_VALUE_SIZE];
  18. REPLY_SGMT_LST *lpNext;
  19. } RPLY_SGMT_LST, *LP_RPLY_SGMT_LST, **LPP_RPLY_SGMT_LST;
  20. //
  21. // LOGIN_CONTROL structure. The buffer returned by NWApiGetProperty with
  22. // LOGIN_CONTROL is casted into this structure.
  23. //
  24. typedef struct LoginControlStruc {
  25. BYTE byAccountExpires[3];
  26. BYTE byAccountDisabled;
  27. BYTE byPasswordExpires[3];
  28. BYTE byGraceLogins;
  29. WORD wPasswordInterval;
  30. BYTE byGraceLoginReset;
  31. BYTE byMinPasswordLength;
  32. WORD wMaxConnections;
  33. BYTE byLoginTimes[42];
  34. BYTE byLastLogin[6];
  35. BYTE byRestrictions;
  36. BYTE byUnused;
  37. long lMaxDiskBlocks;
  38. WORD wBadLogins;
  39. LONG lNextResetTime;
  40. BYTE byBadLoginAddr[12];
  41. } LC_STRUCTURE, *LPLC_STRUCTURE;
  42. //
  43. // USER_DEFAULT structure.
  44. //
  45. typedef struct tagUserDefaults {
  46. BYTE byAccountExpiresYear;
  47. BYTE byAccountExpiresMonth;
  48. BYTE byAccountExpiresDay;
  49. BYTE byRestrictions;
  50. WORD wPasswordInterval;
  51. BYTE byGraceLoginReset;
  52. BYTE byMinPasswordLength;
  53. WORD wMaxConnections;
  54. BYTE byLoginTimes[42];
  55. long lBalance;
  56. long lCreditLimit;
  57. long lMaxDiskBlocks;
  58. } USER_DEFAULT, *LPUSER_DEFAULT;
  59. //
  60. // ACCOUNT_BALANCE structure.
  61. //
  62. typedef struct tagAccountBalance {
  63. long lBalance;
  64. long lCreditLimit;
  65. } ACCT_BALANCE, *LPACCT_BALANCE;
  66. //
  67. // This provider specific structure is used to hold the mandatory properties
  68. // for creating a user object in NetWare.
  69. //
  70. typedef struct USER_INFO {
  71. NWCONN_HANDLE hConn; // Handle of the Bindery.
  72. LPWSTR lpszBinderyName; // Name of the Bindery.
  73. LPWSTR lpszUserName; // Name of the new user.
  74. LPWSTR lpszPassword; // Password for the new user.
  75. } NW_USER_INFO, *PNW_USER_INFO;
  76. typedef DATE * PDATE;