Handle well-known account names.
[nssm.git] / account.h
1 #ifndef ACCOUNT_H
2 #define ACCOUNT_H
3
4 #include <ntsecapi.h>
5
6 /* Not really an account.  The canonical name is NT Authority\System. */
7 #define NSSM_LOCALSYSTEM_ACCOUNT _T("LocalSystem")
8 /* This is explicitly a wide string. */
9 #define NSSM_LOGON_AS_SERVICE_RIGHT L"SeServiceLogonRight"
10
11
12 int open_lsa_policy(LSA_HANDLE *);
13 int username_sid(const TCHAR *, SID **, LSA_HANDLE *);
14 int username_sid(const TCHAR *, SID **);
15 int username_equiv(const TCHAR *, const TCHAR *);
16 int is_localsystem(const TCHAR *);
17 TCHAR *canonical_username(const TCHAR *);
18 int requires_password(SID *);
19 int requires_password(const TCHAR *);
20 int grant_logon_as_service(const TCHAR *);
21
22 #endif