4 #include <ntsecapi.h>
\r
6 /* Not really an account. The canonical name is NT Authority\System. */
\r
7 #define NSSM_LOCALSYSTEM_ACCOUNT _T("LocalSystem")
\r
8 /* Other well-known accounts which can start a service without a password. */
\r
9 #define NSSM_LOCALSERVICE_ACCOUNT _T("NT Authority\\LocalService")
\r
10 #define NSSM_NETWORKSERVICE_ACCOUNT _T("NT Authority\\NetworkService")
\r
11 /* This is explicitly a wide string. */
\r
12 #define NSSM_LOGON_AS_SERVICE_RIGHT L"SeServiceLogonRight"
\r
14 int open_lsa_policy(LSA_HANDLE *);
\r
15 int username_sid(const TCHAR *, SID **, LSA_HANDLE *);
\r
16 int username_sid(const TCHAR *, SID **);
\r
17 int username_equiv(const TCHAR *, const TCHAR *);
\r
18 int canonicalise_username(const TCHAR *, TCHAR **);
\r
19 int is_localsystem(const TCHAR *);
\r
20 const TCHAR *well_known_sid(SID *);
\r
21 const TCHAR *well_known_username(const TCHAR *);
\r
22 int grant_logon_as_service(const TCHAR *);
\r