X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=account.h;h=a4377b925bb127325b0f47921ef6ee23387d144e;hb=71764fe41e37f36bcbc89ac62f664aeda4240790;hp=232e1f9162d9336dfad31aead602c25aa2d527b3;hpb=2f3ab42db3d63e674e520a68fe507119af519288;p=nssm.git diff --git a/account.h b/account.h index 232e1f9..a4377b9 100644 --- a/account.h +++ b/account.h @@ -8,6 +8,8 @@ /* Other well-known accounts which can start a service without a password. */ #define NSSM_LOCALSERVICE_ACCOUNT _T("NT Authority\\LocalService") #define NSSM_NETWORKSERVICE_ACCOUNT _T("NT Authority\\NetworkService") +/* Virtual service accounts. */ +#define NSSM_VIRTUAL_SERVICE_ACCOUNT_DOMAIN _T("NT Service") /* This is explicitly a wide string. */ #define NSSM_LOGON_AS_SERVICE_RIGHT L"SeServiceLogonRight" @@ -17,6 +19,7 @@ int username_sid(const TCHAR *, SID **); int username_equiv(const TCHAR *, const TCHAR *); int canonicalise_username(const TCHAR *, TCHAR **); int is_localsystem(const TCHAR *); +int is_virtual_account(const TCHAR *, const TCHAR *); const TCHAR *well_known_sid(SID *); const TCHAR *well_known_username(const TCHAR *); int grant_logon_as_service(const TCHAR *);