ReactOS  0.4.13-dev-259-g5ca9c9c
lmwksta.h File Reference
#include <lmuseflg.h>
Include dependency graph for lmwksta.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _WKSTA_INFO_100
 
struct  _WKSTA_INFO_101
 
struct  _WKSTA_INFO_102
 
struct  _WKSTA_INFO_302
 
struct  _WKSTA_INFO_402
 
struct  _WKSTA_INFO_502
 
struct  _WKSTA_INFO_1010
 
struct  _WKSTA_INFO_1011
 
struct  _WKSTA_INFO_1012
 
struct  _WKSTA_INFO_1027
 
struct  _WKSTA_INFO_1028
 
struct  _WKSTA_INFO_1032
 
struct  _WKSTA_INFO_1013
 
struct  _WKSTA_INFO_1018
 
struct  _WKSTA_INFO_1023
 
struct  _WKSTA_INFO_1033
 
struct  _WKSTA_INFO_1041
 
struct  _WKSTA_INFO_1042
 
struct  _WKSTA_INFO_1043
 
struct  _WKSTA_INFO_1044
 
struct  _WKSTA_INFO_1045
 
struct  _WKSTA_INFO_1046
 
struct  _WKSTA_INFO_1047
 
struct  _WKSTA_INFO_1048
 
struct  _WKSTA_INFO_1049
 
struct  _WKSTA_INFO_1050
 
struct  _WKSTA_INFO_1051
 
struct  _WKSTA_INFO_1052
 
struct  _WKSTA_INFO_1053
 
struct  _WKSTA_INFO_1054
 
struct  _WKSTA_INFO_1055
 
struct  _WKSTA_INFO_1056
 
struct  _WKSTA_INFO_1057
 
struct  _WKSTA_INFO_1058
 
struct  _WKSTA_INFO_1059
 
struct  _WKSTA_INFO_1060
 
struct  _WKSTA_INFO_1061
 
struct  _WKSTA_INFO_1062
 
struct  _WKSTA_USER_INFO_0
 
struct  _WKSTA_USER_INFO_1
 
struct  _WKSTA_USER_INFO_1101
 
struct  _WKSTA_TRANSPORT_INFO_0
 

Macros

#define WKSTA_PLATFORM_ID_PARMNUM   100
 
#define WKSTA_COMPUTERNAME_PARMNUM   1
 
#define WKSTA_LANGROUP_PARMNUM   2
 
#define WKSTA_VER_MAJOR_PARMNUM   4
 
#define WKSTA_VER_MINOR_PARMNUM   5
 
#define WKSTA_LOGGED_ON_USERS_PARMNUM   6
 
#define WKSTA_LANROOT_PARMNUM   7
 
#define WKSTA_LOGON_DOMAIN_PARMNUM   8
 
#define WKSTA_LOGON_SERVER_PARMNUM   9
 
#define WKSTA_CHARWAIT_PARMNUM   10
 
#define WKSTA_CHARTIME_PARMNUM   11
 
#define WKSTA_CHARCOUNT_PARMNUM   12
 
#define WKSTA_KEEPCONN_PARMNUM   13
 
#define WKSTA_KEEPSEARCH_PARMNUM   14
 
#define WKSTA_MAXCMDS_PARMNUM   15
 
#define WKSTA_NUMWORKBUF_PARMNUM   16
 
#define WKSTA_MAXWRKCACHE_PARMNUM   17
 
#define WKSTA_SESSTIMEOUT_PARMNUM   18
 
#define WKSTA_SIZERROR_PARMNUM   19
 
#define WKSTA_NUMALERTS_PARMNUM   20
 
#define WKSTA_NUMSERVICES_PARMNUM   21
 
#define WKSTA_NUMCHARBUF_PARMNUM   22
 
#define WKSTA_SIZCHARBUF_PARMNUM   23
 
#define WKSTA_ERRLOGSZ_PARMNUM   27
 
#define WKSTA_PRINTBUFTIME_PARMNUM   28
 
#define WKSTA_SIZWORKBUF_PARMNUM   29
 
#define WKSTA_MAILSLOTS_PARMNUM   30
 
#define WKSTA_NUMDGRAMBUF_PARMNUM   31
 
#define WKSTA_WRKHEURISTICS_PARMNUM   32
 
#define WKSTA_MAXTHREADS_PARMNUM   33
 
#define WKSTA_LOCKQUOTA_PARMNUM   41
 
#define WKSTA_LOCKINCREMENT_PARMNUM   42
 
#define WKSTA_LOCKMAXIMUM_PARMNUM   43
 
#define WKSTA_PIPEINCREMENT_PARMNUM   44
 
#define WKSTA_PIPEMAXIMUM_PARMNUM   45
 
#define WKSTA_DORMANTFILELIMIT_PARMNUM   46
 
#define WKSTA_CACHEFILETIMEOUT_PARMNUM   47
 
#define WKSTA_USEOPPORTUNISTICLOCKING_PARMNUM   48
 
#define WKSTA_USEUNLOCKBEHIND_PARMNUM   49
 
#define WKSTA_USECLOSEBEHIND_PARMNUM   50
 
#define WKSTA_BUFFERNAMEDPIPES_PARMNUM   51
 
#define WKSTA_USELOCKANDREADANDUNLOCK_PARMNUM   52
 
#define WKSTA_UTILIZENTCACHING_PARMNUM   53
 
#define WKSTA_USERAWREAD_PARMNUM   54
 
#define WKSTA_USERAWWRITE_PARMNUM   55
 
#define WKSTA_USEWRITERAWWITHDATA_PARMNUM   56
 
#define WKSTA_USEENCRYPTION_PARMNUM   57
 
#define WKSTA_BUFFILESWITHDENYWRITE_PARMNUM   58
 
#define WKSTA_BUFFERREADONLYFILES_PARMNUM   59
 
#define WKSTA_FORCECORECREATEMODE_PARMNUM   60
 
#define WKSTA_USE512BYTESMAXTRANSFER_PARMNUM   61
 
#define WKSTA_READAHEADTHRUPUT_PARMNUM   62
 
#define WKSTA_OTH_DOMAINS_PARMNUM   101
 
#define TRANSPORT_QUALITYOFSERVICE_PARMNUM   201
 
#define TRANSPORT_NAME_PARMNUM   202
 

Typedefs

typedef struct _WKSTA_INFO_100 WKSTA_INFO_100
 
typedef struct _WKSTA_INFO_100PWKSTA_INFO_100
 
typedef struct _WKSTA_INFO_100LPWKSTA_INFO_100
 
typedef struct _WKSTA_INFO_101 WKSTA_INFO_101
 
typedef struct _WKSTA_INFO_101PWKSTA_INFO_101
 
typedef struct _WKSTA_INFO_101LPWKSTA_INFO_101
 
typedef struct _WKSTA_INFO_102 WKSTA_INFO_102
 
typedef struct _WKSTA_INFO_102PWKSTA_INFO_102
 
typedef struct _WKSTA_INFO_102LPWKSTA_INFO_102
 
typedef struct _WKSTA_INFO_302 WKSTA_INFO_302
 
typedef struct _WKSTA_INFO_302PWKSTA_INFO_302
 
typedef struct _WKSTA_INFO_302LPWKSTA_INFO_302
 
typedef struct _WKSTA_INFO_402 WKSTA_INFO_402
 
typedef struct _WKSTA_INFO_402PWKSTA_INFO_402
 
typedef struct _WKSTA_INFO_402LPWKSTA_INFO_402
 
typedef struct _WKSTA_INFO_502 WKSTA_INFO_502
 
typedef struct _WKSTA_INFO_502PWKSTA_INFO_502
 
typedef struct _WKSTA_INFO_502LPWKSTA_INFO_502
 
typedef struct _WKSTA_INFO_1010 WKSTA_INFO_1010
 
typedef struct _WKSTA_INFO_1010PWKSTA_INFO_1010
 
typedef struct _WKSTA_INFO_1010LPWKSTA_INFO_1010
 
typedef struct _WKSTA_INFO_1011 WKSTA_INFO_1011
 
typedef struct _WKSTA_INFO_1011PWKSTA_INFO_1011
 
typedef struct _WKSTA_INFO_1011LPWKSTA_INFO_1011
 
typedef struct _WKSTA_INFO_1012 WKSTA_INFO_1012
 
typedef struct _WKSTA_INFO_1012PWKSTA_INFO_1012
 
typedef struct _WKSTA_INFO_1012LPWKSTA_INFO_1012
 
typedef struct _WKSTA_INFO_1027 WKSTA_INFO_1027
 
typedef struct _WKSTA_INFO_1027PWKSTA_INFO_1027
 
typedef struct _WKSTA_INFO_1027LPWKSTA_INFO_1027
 
typedef struct _WKSTA_INFO_1028 WKSTA_INFO_1028
 
typedef struct _WKSTA_INFO_1028PWKSTA_INFO_1028
 
typedef struct _WKSTA_INFO_1028LPWKSTA_INFO_1028
 
typedef struct _WKSTA_INFO_1032 WKSTA_INFO_1032
 
typedef struct _WKSTA_INFO_1032PWKSTA_INFO_1032
 
typedef struct _WKSTA_INFO_1032LPWKSTA_INFO_1032
 
typedef struct _WKSTA_INFO_1013 WKSTA_INFO_1013
 
typedef struct _WKSTA_INFO_1013PWKSTA_INFO_1013
 
typedef struct _WKSTA_INFO_1013LPWKSTA_INFO_1013
 
typedef struct _WKSTA_INFO_1018 WKSTA_INFO_1018
 
typedef struct _WKSTA_INFO_1018PWKSTA_INFO_1018
 
typedef struct _WKSTA_INFO_1018LPWKSTA_INFO_1018
 
typedef struct _WKSTA_INFO_1023 WKSTA_INFO_1023
 
typedef struct _WKSTA_INFO_1023PWKSTA_INFO_1023
 
typedef struct _WKSTA_INFO_1023LPWKSTA_INFO_1023
 
typedef struct _WKSTA_INFO_1033 WKSTA_INFO_1033
 
typedef struct _WKSTA_INFO_1033PWKSTA_INFO_1033
 
typedef struct _WKSTA_INFO_1033LPWKSTA_INFO_1033
 
typedef struct _WKSTA_INFO_1041 WKSTA_INFO_1041
 
typedef struct _WKSTA_INFO_1041PWKSTA_INFO_1041
 
typedef struct _WKSTA_INFO_1041LPWKSTA_INFO_1041
 
typedef struct _WKSTA_INFO_1042 WKSTA_INFO_1042
 
typedef struct _WKSTA_INFO_1042PWKSTA_INFO_1042
 
typedef struct _WKSTA_INFO_1042LPWKSTA_INFO_1042
 
typedef struct _WKSTA_INFO_1043 WKSTA_INFO_1043
 
typedef struct _WKSTA_INFO_1043PWKSTA_INFO_1043
 
typedef struct _WKSTA_INFO_1043LPWKSTA_INFO_1043
 
typedef struct _WKSTA_INFO_1044 WKSTA_INFO_1044
 
typedef struct _WKSTA_INFO_1044PWKSTA_INFO_1044
 
typedef struct _WKSTA_INFO_1044LPWKSTA_INFO_1044
 
typedef struct _WKSTA_INFO_1045 WKSTA_INFO_1045
 
typedef struct _WKSTA_INFO_1045PWKSTA_INFO_1045
 
typedef struct _WKSTA_INFO_1045LPWKSTA_INFO_1045
 
typedef struct _WKSTA_INFO_1046 WKSTA_INFO_1046
 
typedef struct _WKSTA_INFO_1046PWKSTA_INFO_1046
 
typedef struct _WKSTA_INFO_1046LPWKSTA_INFO_1046
 
typedef struct _WKSTA_INFO_1047 WKSTA_INFO_1047
 
typedef struct _WKSTA_INFO_1047PWKSTA_INFO_1047
 
typedef struct _WKSTA_INFO_1047LPWKSTA_INFO_1047
 
typedef struct _WKSTA_INFO_1048 WKSTA_INFO_1048
 
typedef struct _WKSTA_INFO_1048PWKSTA_INFO_1048
 
typedef struct _WKSTA_INFO_1048LPWKSTA_INFO_1048
 
typedef struct _WKSTA_INFO_1049 WKSTA_INFO_1049
 
typedef struct _WKSTA_INFO_1049PWKSTA_INFO_1049
 
typedef struct _WKSTA_INFO_1049LPWKSTA_INFO_1049
 
typedef struct _WKSTA_INFO_1050 WKSTA_INFO_1050
 
typedef struct _WKSTA_INFO_1050PWKSTA_INFO_1050
 
typedef struct _WKSTA_INFO_1050LPWKSTA_INFO_1050
 
typedef struct _WKSTA_INFO_1051 WKSTA_INFO_1051
 
typedef struct _WKSTA_INFO_1051PWKSTA_INFO_1051
 
typedef struct _WKSTA_INFO_1051LPWKSTA_INFO_1051
 
typedef struct _WKSTA_INFO_1052 WKSTA_INFO_1052
 
typedef struct _WKSTA_INFO_1052PWKSTA_INFO_1052
 
typedef struct _WKSTA_INFO_1052LPWKSTA_INFO_1052
 
typedef struct _WKSTA_INFO_1053 WKSTA_INFO_1053
 
typedef struct _WKSTA_INFO_1053PWKSTA_INFO_1053
 
typedef struct _WKSTA_INFO_1053LPWKSTA_INFO_1053
 
typedef struct _WKSTA_INFO_1054 WKSTA_INFO_1054
 
typedef struct _WKSTA_INFO_1054PWKSTA_INFO_1054
 
typedef struct _WKSTA_INFO_1054LPWKSTA_INFO_1054
 
typedef struct _WKSTA_INFO_1055 WKSTA_INFO_1055
 
typedef struct _WKSTA_INFO_1055PWKSTA_INFO_1055
 
typedef struct _WKSTA_INFO_1055LPWKSTA_INFO_1055
 
typedef struct _WKSTA_INFO_1056 WKSTA_INFO_1056
 
typedef struct _WKSTA_INFO_1056PWKSTA_INFO_1056
 
typedef struct _WKSTA_INFO_1056LPWKSTA_INFO_1056
 
typedef struct _WKSTA_INFO_1057 WKSTA_INFO_1057
 
typedef struct _WKSTA_INFO_1057PWKSTA_INFO_1057
 
typedef struct _WKSTA_INFO_1057LPWKSTA_INFO_1057
 
typedef struct _WKSTA_INFO_1058 WKSTA_INFO_1058
 
typedef struct _WKSTA_INFO_1058PWKSTA_INFO_1058
 
typedef struct _WKSTA_INFO_1058LPWKSTA_INFO_1058
 
typedef struct _WKSTA_INFO_1059 WKSTA_INFO_1059
 
typedef struct _WKSTA_INFO_1059PWKSTA_INFO_1059
 
typedef struct _WKSTA_INFO_1059LPWKSTA_INFO_1059
 
typedef struct _WKSTA_INFO_1060 WKSTA_INFO_1060
 
typedef struct _WKSTA_INFO_1060PWKSTA_INFO_1060
 
typedef struct _WKSTA_INFO_1060LPWKSTA_INFO_1060
 
typedef struct _WKSTA_INFO_1061 WKSTA_INFO_1061
 
typedef struct _WKSTA_INFO_1061PWKSTA_INFO_1061
 
typedef struct _WKSTA_INFO_1061LPWKSTA_INFO_1061
 
typedef struct _WKSTA_INFO_1062 WKSTA_INFO_1062
 
typedef struct _WKSTA_INFO_1062PWKSTA_INFO_1062
 
typedef struct _WKSTA_INFO_1062LPWKSTA_INFO_1062
 
typedef struct _WKSTA_USER_INFO_0 WKSTA_USER_INFO_0
 
typedef struct _WKSTA_USER_INFO_0PWKSTA_USER_INFO_0
 
typedef struct _WKSTA_USER_INFO_0LPWKSTA_USER_INFO_0
 
typedef struct _WKSTA_USER_INFO_1 WKSTA_USER_INFO_1
 
typedef struct _WKSTA_USER_INFO_1PWKSTA_USER_INFO_1
 
typedef struct _WKSTA_USER_INFO_1LPWKSTA_USER_INFO_1
 
typedef struct _WKSTA_USER_INFO_1101 WKSTA_USER_INFO_1101
 
typedef struct _WKSTA_USER_INFO_1101PWKSTA_USER_INFO_1101
 
typedef struct _WKSTA_USER_INFO_1101LPWKSTA_USER_INFO_1101
 
typedef struct _WKSTA_TRANSPORT_INFO_0 WKSTA_TRANSPORT_INFO_0
 
typedef struct _WKSTA_TRANSPORT_INFO_0PWKSTA_TRANSPORT_INFO_0
 
typedef struct _WKSTA_TRANSPORT_INFO_0LPWKSTA_TRANSPORT_INFO_0
 

Functions

NET_API_STATUS WINAPI NetWkstaGetInfo (LPWSTR, DWORD, PBYTE *)
 
NET_API_STATUS WINAPI NetWkstaSetInfo (LPWSTR, DWORD, PBYTE, PDWORD)
 
NET_API_STATUS WINAPI NetWkstaUserGetInfo (LPWSTR, DWORD, PBYTE *)
 
NET_API_STATUS WINAPI NetWkstaUserSetInfo (LPWSTR, DWORD, PBYTE, PDWORD)
 
NET_API_STATUS WINAPI NetWkstaUserEnum (LPWSTR, DWORD, PBYTE *, DWORD, PDWORD, PDWORD, PDWORD)
 
NET_API_STATUS WINAPI NetWkstaTransportAdd (LPWSTR, DWORD, PBYTE, PDWORD)
 
NET_API_STATUS WINAPI NetWkstaTransportDel (LPWSTR, LPWSTR, DWORD)
 
NET_API_STATUS WINAPI NetWkstaTransportEnum (LPWSTR, DWORD, PBYTE *, DWORD, PDWORD, PDWORD, PDWORD)
 

Macro Definition Documentation

◆ TRANSPORT_NAME_PARMNUM

#define TRANSPORT_NAME_PARMNUM   202

Definition at line 62 of file lmwksta.h.

◆ TRANSPORT_QUALITYOFSERVICE_PARMNUM

#define TRANSPORT_QUALITYOFSERVICE_PARMNUM   201

Definition at line 61 of file lmwksta.h.

◆ WKSTA_BUFFERNAMEDPIPES_PARMNUM

#define WKSTA_BUFFERNAMEDPIPES_PARMNUM   51

Definition at line 48 of file lmwksta.h.

◆ WKSTA_BUFFERREADONLYFILES_PARMNUM

#define WKSTA_BUFFERREADONLYFILES_PARMNUM   59

Definition at line 56 of file lmwksta.h.

◆ WKSTA_BUFFILESWITHDENYWRITE_PARMNUM

#define WKSTA_BUFFILESWITHDENYWRITE_PARMNUM   58

Definition at line 55 of file lmwksta.h.

◆ WKSTA_CACHEFILETIMEOUT_PARMNUM

#define WKSTA_CACHEFILETIMEOUT_PARMNUM   47

Definition at line 44 of file lmwksta.h.

◆ WKSTA_CHARCOUNT_PARMNUM

#define WKSTA_CHARCOUNT_PARMNUM   12

Definition at line 19 of file lmwksta.h.

◆ WKSTA_CHARTIME_PARMNUM

#define WKSTA_CHARTIME_PARMNUM   11

Definition at line 18 of file lmwksta.h.

◆ WKSTA_CHARWAIT_PARMNUM

#define WKSTA_CHARWAIT_PARMNUM   10

Definition at line 17 of file lmwksta.h.

◆ WKSTA_COMPUTERNAME_PARMNUM

#define WKSTA_COMPUTERNAME_PARMNUM   1

Definition at line 9 of file lmwksta.h.

◆ WKSTA_DORMANTFILELIMIT_PARMNUM

#define WKSTA_DORMANTFILELIMIT_PARMNUM   46

Definition at line 43 of file lmwksta.h.

◆ WKSTA_ERRLOGSZ_PARMNUM

#define WKSTA_ERRLOGSZ_PARMNUM   27

Definition at line 31 of file lmwksta.h.

◆ WKSTA_FORCECORECREATEMODE_PARMNUM

#define WKSTA_FORCECORECREATEMODE_PARMNUM   60

Definition at line 57 of file lmwksta.h.

◆ WKSTA_KEEPCONN_PARMNUM

#define WKSTA_KEEPCONN_PARMNUM   13

Definition at line 20 of file lmwksta.h.

◆ WKSTA_KEEPSEARCH_PARMNUM

#define WKSTA_KEEPSEARCH_PARMNUM   14

Definition at line 21 of file lmwksta.h.

◆ WKSTA_LANGROUP_PARMNUM

#define WKSTA_LANGROUP_PARMNUM   2

Definition at line 10 of file lmwksta.h.

◆ WKSTA_LANROOT_PARMNUM

#define WKSTA_LANROOT_PARMNUM   7

Definition at line 14 of file lmwksta.h.

◆ WKSTA_LOCKINCREMENT_PARMNUM

#define WKSTA_LOCKINCREMENT_PARMNUM   42

Definition at line 39 of file lmwksta.h.

◆ WKSTA_LOCKMAXIMUM_PARMNUM

#define WKSTA_LOCKMAXIMUM_PARMNUM   43

Definition at line 40 of file lmwksta.h.

◆ WKSTA_LOCKQUOTA_PARMNUM

#define WKSTA_LOCKQUOTA_PARMNUM   41

Definition at line 38 of file lmwksta.h.

◆ WKSTA_LOGGED_ON_USERS_PARMNUM

#define WKSTA_LOGGED_ON_USERS_PARMNUM   6

Definition at line 13 of file lmwksta.h.

◆ WKSTA_LOGON_DOMAIN_PARMNUM

#define WKSTA_LOGON_DOMAIN_PARMNUM   8

Definition at line 15 of file lmwksta.h.

◆ WKSTA_LOGON_SERVER_PARMNUM

#define WKSTA_LOGON_SERVER_PARMNUM   9

Definition at line 16 of file lmwksta.h.

◆ WKSTA_MAILSLOTS_PARMNUM

#define WKSTA_MAILSLOTS_PARMNUM   30

Definition at line 34 of file lmwksta.h.

◆ WKSTA_MAXCMDS_PARMNUM

#define WKSTA_MAXCMDS_PARMNUM   15

Definition at line 22 of file lmwksta.h.

◆ WKSTA_MAXTHREADS_PARMNUM

#define WKSTA_MAXTHREADS_PARMNUM   33

Definition at line 37 of file lmwksta.h.

◆ WKSTA_MAXWRKCACHE_PARMNUM

#define WKSTA_MAXWRKCACHE_PARMNUM   17

Definition at line 24 of file lmwksta.h.

◆ WKSTA_NUMALERTS_PARMNUM

#define WKSTA_NUMALERTS_PARMNUM   20

Definition at line 27 of file lmwksta.h.

◆ WKSTA_NUMCHARBUF_PARMNUM

#define WKSTA_NUMCHARBUF_PARMNUM   22

Definition at line 29 of file lmwksta.h.

◆ WKSTA_NUMDGRAMBUF_PARMNUM

#define WKSTA_NUMDGRAMBUF_PARMNUM   31

Definition at line 35 of file lmwksta.h.

◆ WKSTA_NUMSERVICES_PARMNUM

#define WKSTA_NUMSERVICES_PARMNUM   21

Definition at line 28 of file lmwksta.h.

◆ WKSTA_NUMWORKBUF_PARMNUM

#define WKSTA_NUMWORKBUF_PARMNUM   16

Definition at line 23 of file lmwksta.h.

◆ WKSTA_OTH_DOMAINS_PARMNUM

#define WKSTA_OTH_DOMAINS_PARMNUM   101

Definition at line 60 of file lmwksta.h.

◆ WKSTA_PIPEINCREMENT_PARMNUM

#define WKSTA_PIPEINCREMENT_PARMNUM   44

Definition at line 41 of file lmwksta.h.

◆ WKSTA_PIPEMAXIMUM_PARMNUM

#define WKSTA_PIPEMAXIMUM_PARMNUM   45

Definition at line 42 of file lmwksta.h.

◆ WKSTA_PLATFORM_ID_PARMNUM

#define WKSTA_PLATFORM_ID_PARMNUM   100

Definition at line 8 of file lmwksta.h.

◆ WKSTA_PRINTBUFTIME_PARMNUM

#define WKSTA_PRINTBUFTIME_PARMNUM   28

Definition at line 32 of file lmwksta.h.

◆ WKSTA_READAHEADTHRUPUT_PARMNUM

#define WKSTA_READAHEADTHRUPUT_PARMNUM   62

Definition at line 59 of file lmwksta.h.

◆ WKSTA_SESSTIMEOUT_PARMNUM

#define WKSTA_SESSTIMEOUT_PARMNUM   18

Definition at line 25 of file lmwksta.h.

◆ WKSTA_SIZCHARBUF_PARMNUM

#define WKSTA_SIZCHARBUF_PARMNUM   23

Definition at line 30 of file lmwksta.h.

◆ WKSTA_SIZERROR_PARMNUM

#define WKSTA_SIZERROR_PARMNUM   19

Definition at line 26 of file lmwksta.h.

◆ WKSTA_SIZWORKBUF_PARMNUM

#define WKSTA_SIZWORKBUF_PARMNUM   29

Definition at line 33 of file lmwksta.h.

◆ WKSTA_USE512BYTESMAXTRANSFER_PARMNUM

#define WKSTA_USE512BYTESMAXTRANSFER_PARMNUM   61

Definition at line 58 of file lmwksta.h.

◆ WKSTA_USECLOSEBEHIND_PARMNUM

#define WKSTA_USECLOSEBEHIND_PARMNUM   50

Definition at line 47 of file lmwksta.h.

◆ WKSTA_USEENCRYPTION_PARMNUM

#define WKSTA_USEENCRYPTION_PARMNUM   57

Definition at line 54 of file lmwksta.h.

◆ WKSTA_USELOCKANDREADANDUNLOCK_PARMNUM

#define WKSTA_USELOCKANDREADANDUNLOCK_PARMNUM   52

Definition at line 49 of file lmwksta.h.

◆ WKSTA_USEOPPORTUNISTICLOCKING_PARMNUM

#define WKSTA_USEOPPORTUNISTICLOCKING_PARMNUM   48

Definition at line 45 of file lmwksta.h.

◆ WKSTA_USERAWREAD_PARMNUM

#define WKSTA_USERAWREAD_PARMNUM   54

Definition at line 51 of file lmwksta.h.

◆ WKSTA_USERAWWRITE_PARMNUM

#define WKSTA_USERAWWRITE_PARMNUM   55

Definition at line 52 of file lmwksta.h.

◆ WKSTA_USEUNLOCKBEHIND_PARMNUM

#define WKSTA_USEUNLOCKBEHIND_PARMNUM   49

Definition at line 46 of file lmwksta.h.

◆ WKSTA_USEWRITERAWWITHDATA_PARMNUM

#define WKSTA_USEWRITERAWWITHDATA_PARMNUM   56

Definition at line 53 of file lmwksta.h.

◆ WKSTA_UTILIZENTCACHING_PARMNUM

#define WKSTA_UTILIZENTCACHING_PARMNUM   53

Definition at line 50 of file lmwksta.h.

◆ WKSTA_VER_MAJOR_PARMNUM

#define WKSTA_VER_MAJOR_PARMNUM   4

Definition at line 11 of file lmwksta.h.

◆ WKSTA_VER_MINOR_PARMNUM

#define WKSTA_VER_MINOR_PARMNUM   5

Definition at line 12 of file lmwksta.h.

◆ WKSTA_WRKHEURISTICS_PARMNUM

#define WKSTA_WRKHEURISTICS_PARMNUM   32

Definition at line 36 of file lmwksta.h.

Typedef Documentation

◆ LPWKSTA_INFO_100

◆ LPWKSTA_INFO_101

◆ LPWKSTA_INFO_1010

◆ LPWKSTA_INFO_1011

◆ LPWKSTA_INFO_1012

◆ LPWKSTA_INFO_1013

◆ LPWKSTA_INFO_1018

◆ LPWKSTA_INFO_102

◆ LPWKSTA_INFO_1023

◆ LPWKSTA_INFO_1027

◆ LPWKSTA_INFO_1028

◆ LPWKSTA_INFO_1032

◆ LPWKSTA_INFO_1033

◆ LPWKSTA_INFO_1041

◆ LPWKSTA_INFO_1042

◆ LPWKSTA_INFO_1043

◆ LPWKSTA_INFO_1044

◆ LPWKSTA_INFO_1045

◆ LPWKSTA_INFO_1046

◆ LPWKSTA_INFO_1047

◆ LPWKSTA_INFO_1048

◆ LPWKSTA_INFO_1049

◆ LPWKSTA_INFO_1050

◆ LPWKSTA_INFO_1051

◆ LPWKSTA_INFO_1052

◆ LPWKSTA_INFO_1053

◆ LPWKSTA_INFO_1054

◆ LPWKSTA_INFO_1055

◆ LPWKSTA_INFO_1056

◆ LPWKSTA_INFO_1057

◆ LPWKSTA_INFO_1058

◆ LPWKSTA_INFO_1059

◆ LPWKSTA_INFO_1060

◆ LPWKSTA_INFO_1061

◆ LPWKSTA_INFO_1062

◆ LPWKSTA_INFO_302

◆ LPWKSTA_INFO_402

◆ LPWKSTA_INFO_502

◆ LPWKSTA_TRANSPORT_INFO_0

◆ LPWKSTA_USER_INFO_0

◆ LPWKSTA_USER_INFO_1

◆ LPWKSTA_USER_INFO_1101

◆ PWKSTA_INFO_100

◆ PWKSTA_INFO_101

◆ PWKSTA_INFO_1010

◆ PWKSTA_INFO_1011

◆ PWKSTA_INFO_1012

◆ PWKSTA_INFO_1013

◆ PWKSTA_INFO_1018

◆ PWKSTA_INFO_102

◆ PWKSTA_INFO_1023

◆ PWKSTA_INFO_1027

◆ PWKSTA_INFO_1028

◆ PWKSTA_INFO_1032

◆ PWKSTA_INFO_1033

◆ PWKSTA_INFO_1041

◆ PWKSTA_INFO_1042

◆ PWKSTA_INFO_1043

◆ PWKSTA_INFO_1044

◆ PWKSTA_INFO_1045

◆ PWKSTA_INFO_1046

◆ PWKSTA_INFO_1047

◆ PWKSTA_INFO_1048

◆ PWKSTA_INFO_1049

◆ PWKSTA_INFO_1050

◆ PWKSTA_INFO_1051

◆ PWKSTA_INFO_1052

◆ PWKSTA_INFO_1053

◆ PWKSTA_INFO_1054

◆ PWKSTA_INFO_1055

◆ PWKSTA_INFO_1056

◆ PWKSTA_INFO_1057

◆ PWKSTA_INFO_1058

◆ PWKSTA_INFO_1059

◆ PWKSTA_INFO_1060

◆ PWKSTA_INFO_1061

◆ PWKSTA_INFO_1062

◆ PWKSTA_INFO_302

◆ PWKSTA_INFO_402

◆ PWKSTA_INFO_502

◆ PWKSTA_TRANSPORT_INFO_0

◆ PWKSTA_USER_INFO_0

◆ PWKSTA_USER_INFO_1

◆ PWKSTA_USER_INFO_1101

◆ WKSTA_INFO_100

◆ WKSTA_INFO_101

◆ WKSTA_INFO_1010

◆ WKSTA_INFO_1011

◆ WKSTA_INFO_1012

◆ WKSTA_INFO_1013

◆ WKSTA_INFO_1018

◆ WKSTA_INFO_102

◆ WKSTA_INFO_1023

◆ WKSTA_INFO_1027

◆ WKSTA_INFO_1028

◆ WKSTA_INFO_1032

◆ WKSTA_INFO_1033

◆ WKSTA_INFO_1041

◆ WKSTA_INFO_1042

◆ WKSTA_INFO_1043

◆ WKSTA_INFO_1044

◆ WKSTA_INFO_1045

◆ WKSTA_INFO_1046

◆ WKSTA_INFO_1047

◆ WKSTA_INFO_1048

◆ WKSTA_INFO_1049

◆ WKSTA_INFO_1050

◆ WKSTA_INFO_1051

◆ WKSTA_INFO_1052

◆ WKSTA_INFO_1053

◆ WKSTA_INFO_1054

◆ WKSTA_INFO_1055

◆ WKSTA_INFO_1056

◆ WKSTA_INFO_1057

◆ WKSTA_INFO_1058

◆ WKSTA_INFO_1059

◆ WKSTA_INFO_1060

◆ WKSTA_INFO_1061

◆ WKSTA_INFO_1062

◆ WKSTA_INFO_302

◆ WKSTA_INFO_402

◆ WKSTA_INFO_502

◆ WKSTA_TRANSPORT_INFO_0

◆ WKSTA_USER_INFO_0

◆ WKSTA_USER_INFO_1

◆ WKSTA_USER_INFO_1101

Function Documentation

◆ NetWkstaGetInfo()

NET_API_STATUS WINAPI NetWkstaGetInfo ( LPWSTR  ,
DWORD  ,
PBYTE  
)

◆ NetWkstaSetInfo()

NET_API_STATUS WINAPI NetWkstaSetInfo ( LPWSTR  ,
DWORD  ,
PBYTE  ,
PDWORD   
)

◆ NetWkstaTransportAdd()

NET_API_STATUS WINAPI NetWkstaTransportAdd ( LPWSTR  ,
DWORD  ,
PBYTE  ,
PDWORD   
)

◆ NetWkstaTransportDel()

NET_API_STATUS WINAPI NetWkstaTransportDel ( LPWSTR  ,
LPWSTR  ,
DWORD   
)

◆ NetWkstaTransportEnum()

NET_API_STATUS WINAPI NetWkstaTransportEnum ( LPWSTR  ,
DWORD  ,
PBYTE ,
DWORD  ,
PDWORD  ,
PDWORD  ,
PDWORD   
)

◆ NetWkstaUserEnum()

NET_API_STATUS WINAPI NetWkstaUserEnum ( LPWSTR  ,
DWORD  ,
PBYTE ,
DWORD  ,
PDWORD  ,
PDWORD  ,
PDWORD   
)

◆ NetWkstaUserGetInfo()

NET_API_STATUS WINAPI NetWkstaUserGetInfo ( LPWSTR  ,
DWORD  ,
PBYTE  
)

Definition at line 279 of file wksta.c.

281 {
282  NET_API_STATUS nastatus;
283 
284  TRACE("(%s, %d, %p)\n", debugstr_w(reserved), level, bufptr);
285  switch (level)
286  {
287  case 0:
288  {
290  DWORD dwSize = UNLEN + 1;
291 
292  /* set up buffer */
293  nastatus = NetApiBufferAllocate(sizeof(WKSTA_USER_INFO_0) + dwSize * sizeof(WCHAR),
294  (LPVOID *) bufptr);
295  if (nastatus != NERR_Success)
297 
299  ui->wkui0_username = (LMSTR) (*bufptr + sizeof(WKSTA_USER_INFO_0));
300 
301  /* get data */
302  if (!GetUserNameW(ui->wkui0_username, &dwSize))
303  {
306  }
307  else {
308  nastatus = NetApiBufferReallocate(
309  *bufptr, sizeof(WKSTA_USER_INFO_0) +
310  (lstrlenW(ui->wkui0_username) + 1) * sizeof(WCHAR),
311  (LPVOID *) bufptr);
312  if (nastatus != NERR_Success)
313  {
315  return nastatus;
316  }
318  ui->wkui0_username = (LMSTR) (*bufptr + sizeof(WKSTA_USER_INFO_0));
319  }
320  break;
321  }
322 
323  case 1:
324  {
326  PWKSTA_USER_INFO_0 ui0;
328  LSA_HANDLE PolicyHandle;
329  PPOLICY_ACCOUNT_DOMAIN_INFO DomainInfo;
330  NTSTATUS NtStatus;
331 
332  /* sizes of the field buffers in WCHARS */
333  int username_sz, logon_domain_sz, oth_domains_sz, logon_server_sz;
334 
335  FIXME("Level 1 processing is partially implemented\n");
336  oth_domains_sz = 1;
337  logon_server_sz = 1;
338 
339  /* get some information first to estimate size of the buffer */
340  ui0 = NULL;
341  nastatus = NetWkstaUserGetInfo(NULL, 0, (PBYTE *) &ui0);
342  if (nastatus != NERR_Success)
343  return nastatus;
344  username_sz = lstrlenW(ui0->wkui0_username) + 1;
345 
347  NtStatus = LsaOpenPolicy(NULL, &ObjectAttributes,
349  &PolicyHandle);
350  if (NtStatus != STATUS_SUCCESS)
351  {
352  TRACE("LsaOpenPolicyFailed with NT status %x\n",
353  LsaNtStatusToWinError(NtStatus));
354  NetApiBufferFree(ui0);
356  }
358  (PVOID*) &DomainInfo);
359  logon_domain_sz = lstrlenW(DomainInfo->DomainName.Buffer) + 1;
360  LsaClose(PolicyHandle);
361 
362  /* set up buffer */
363  nastatus = NetApiBufferAllocate(sizeof(WKSTA_USER_INFO_1) +
364  (username_sz + logon_domain_sz +
365  oth_domains_sz + logon_server_sz) * sizeof(WCHAR),
366  (LPVOID *) bufptr);
367  if (nastatus != NERR_Success) {
368  NetApiBufferFree(ui0);
369  return nastatus;
370  }
371  ui = (WKSTA_USER_INFO_1 *) *bufptr;
372  ui->wkui1_username = (LMSTR) (*bufptr + sizeof(WKSTA_USER_INFO_1));
373  ui->wkui1_logon_domain = (LMSTR) (
374  ((PBYTE) ui->wkui1_username) + username_sz * sizeof(WCHAR));
375  ui->wkui1_oth_domains = (LMSTR) (
376  ((PBYTE) ui->wkui1_logon_domain) +
377  logon_domain_sz * sizeof(WCHAR));
378  ui->wkui1_logon_server = (LMSTR) (
379  ((PBYTE) ui->wkui1_oth_domains) +
380  oth_domains_sz * sizeof(WCHAR));
381 
382  /* get data */
383  lstrcpyW(ui->wkui1_username, ui0->wkui0_username);
384  NetApiBufferFree(ui0);
385 
386  lstrcpynW(ui->wkui1_logon_domain, DomainInfo->DomainName.Buffer,
387  logon_domain_sz);
388  LsaFreeMemory(DomainInfo);
389 
390  /* FIXME. Not implemented. Populated with empty strings */
391  ui->wkui1_oth_domains[0] = 0;
392  ui->wkui1_logon_server[0] = 0;
393  break;
394  }
395  case 1101:
396  {
398  DWORD dwSize = 1;
399 
400  FIXME("Stub. Level 1101 processing is not implemented\n");
401  /* FIXME see also wkui1_oth_domains for level 1 */
402 
403  /* set up buffer */
404  nastatus = NetApiBufferAllocate(sizeof(WKSTA_USER_INFO_1101) + dwSize * sizeof(WCHAR),
405  (LPVOID *) bufptr);
406  if (nastatus != NERR_Success)
407  return nastatus;
409  ui->wkui1101_oth_domains = (LMSTR)(ui + 1);
410 
411  /* get data */
412  ui->wkui1101_oth_domains[0] = 0;
413  break;
414  }
415  default:
416  TRACE("Invalid level %d is specified\n", level);
417  return ERROR_INVALID_LEVEL;
418  }
419  return NERR_Success;
420 }
NET_API_STATUS WINAPI NetApiBufferAllocate(DWORD ByteCount, LPVOID *Buffer)
Definition: apibuf.c:28
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
GLint level
Definition: gl.h:1546
WCHAR * LMSTR
Definition: ms-dtyp.idl:119
static unsigned int bufptr
Definition: tncon.cpp:77
NTSTATUS WINAPI LsaQueryInformationPolicy(IN LSA_HANDLE PolicyHandle, IN POLICY_INFORMATION_CLASS InformationClass, OUT PVOID *Buffer)
Definition: lsa.c:1471
#define POLICY_VIEW_LOCAL_INFORMATION
Definition: ntsecapi.h:61
UINT ui
Definition: oleauto.h:49
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS WINAPI LsaClose(IN LSA_HANDLE ObjectHandle)
Definition: lsa.c:192
#define ERROR_NOT_ENOUGH_MEMORY
Definition: dderror.h:7
#define ZeroMemory
Definition: winbase.h:1635
#define lstrlenW
Definition: compat.h:407
#define lstrcpynW
Definition: compat.h:397
#define NERR_Success
Definition: lmerr.h:5
NTSTATUS WINAPI LsaOpenPolicy(IN PLSA_UNICODE_STRING SystemName OPTIONAL, IN PLSA_OBJECT_ATTRIBUTES ObjectAttributes, IN ACCESS_MASK DesiredAccess, OUT PLSA_HANDLE PolicyHandle)
Definition: lsa.c:1181
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
r reserved
Definition: btrfs.c:2673
smooth NULL
Definition: ftsmooth.c:416
NTSTATUS WINAPI LsaFreeMemory(IN PVOID Buffer)
Definition: lsa.c:699
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
NET_API_STATUS WINAPI NetApiBufferReallocate(LPVOID OldBuffer, DWORD NewByteCount, LPVOID *NewBuffer)
Definition: apibuf.c:53
NET_API_STATUS WINAPI NetWkstaUserGetInfo(LMSTR reserved, DWORD level, PBYTE *bufptr)
Definition: wksta.c:279
BOOL WINAPI GetUserNameW(LPWSTR lpszName, LPDWORD lpSize)
Definition: misc.c:291
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
ULONG WINAPI LsaNtStatusToWinError(IN NTSTATUS Status)
Definition: lsa.c:1129
unsigned long DWORD
Definition: ntddk_ex.h:95
struct _WKSTA_USER_INFO_1101 * PWKSTA_USER_INFO_1101
NET_API_STATUS WINAPI NetApiBufferFree(LPVOID Buffer)
Definition: apibuf.c:43
#define lstrcpyW
Definition: compat.h:406
#define UNLEN
Definition: sspi.c:28
LSA_UNICODE_STRING DomainName
Definition: ntsecapi.h:563
#define ERROR_INVALID_LEVEL
Definition: winerror.h:196
struct _WKSTA_USER_INFO_0 * PWKSTA_USER_INFO_0
return STATUS_SUCCESS
Definition: btrfs.c:2745
BYTE * PBYTE
Definition: pedump.c:66
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54
LPWSTR wkui0_username
Definition: lmwksta.h:202

Referenced by DisplayWorkstationConfig(), NetWkstaUserGetInfo(), and ntlm_InitializeSecurityContextW().

◆ NetWkstaUserSetInfo()

NET_API_STATUS WINAPI NetWkstaUserSetInfo ( LPWSTR  ,
DWORD  ,
PBYTE  ,
PDWORD   
)