X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=account.h;h=04cb10e216ed9a78fd7cf55216b0da5138cba60b;hb=62f28c55d444d846579159133dbe091809a2c08b;hp=232e1f9162d9336dfad31aead602c25aa2d527b3;hpb=b6f7fe3b11fd130f46eb6b5009391cc3bb0cad49;p=nssm.git diff --git a/account.h b/account.h index 232e1f9..04cb10e 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,8 @@ int username_sid(const TCHAR *, SID **); int username_equiv(const TCHAR *, const TCHAR *); int canonicalise_username(const TCHAR *, TCHAR **); int is_localsystem(const TCHAR *); +TCHAR *virtual_account(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 *);