USER_INFO_1020
The USER_INFO_1020
structure contains user information for network accounts.
typedef struct _USER_INFO_1020 {
DWORD usri1020_units_per_week;
LPBYTE usri1020_logon_hours;
} USER_INFO_1020, *PUSER_INFO_1020, *LPUSER_INFO_1020;
Members
usri1020_units_per_week
Specifies the
number of equal-length time units into which the week is divided in order to
compute the length of the bit string in usri1020_logon_hours. This value must
be UNITS_PER_WEEK for LAN Manager 2.0. This element is ignored in NetUserAdd
Windows
NT: For Windows NT services, the
units must be one of the following: SAM_DAYS_PER_WEEK, SAM_HOURS_PER_WEEK, or
SAM_MINUTES_PER_WEEK.
usri1020_logon_hours
Points to a
21-byte (168 bits) bit string that specifies the times during which the user
can log on. Each bit represents a unique hour in the week. The first bit (bit
0, word 0) is Sunday, 0:00 to 0:59; the second bit (bit 1, word 0) is Sunday,
1:00 to 1:59; and so on. A null pointer in this element for NetUserAdd
calls means that there is no time restriction. A null pointer in this element
for NetUserSetInfo calls means that no change is to be made.
See Also