Use close_handle().
[nssm.git] / account.h
index 232e1f9..04cb10e 100644 (file)
--- a/account.h
+++ b/account.h
@@ -8,6 +8,8 @@
 /* Other well-known accounts which can start a service without a password. */\r
 #define NSSM_LOCALSERVICE_ACCOUNT _T("NT Authority\\LocalService")\r
 #define NSSM_NETWORKSERVICE_ACCOUNT _T("NT Authority\\NetworkService")\r
+/* Virtual service accounts. */\r
+#define NSSM_VIRTUAL_SERVICE_ACCOUNT_DOMAIN _T("NT Service")\r
 /* This is explicitly a wide string. */\r
 #define NSSM_LOGON_AS_SERVICE_RIGHT L"SeServiceLogonRight"\r
 \r
@@ -17,6 +19,8 @@ int username_sid(const TCHAR *, SID **);
 int username_equiv(const TCHAR *, const TCHAR *);\r
 int canonicalise_username(const TCHAR *, TCHAR **);\r
 int is_localsystem(const TCHAR *);\r
+TCHAR *virtual_account(const TCHAR *);\r
+int is_virtual_account(const TCHAR *, const TCHAR *);\r
 const TCHAR *well_known_sid(SID *);\r
 const TCHAR *well_known_username(const TCHAR *);\r
 int grant_logon_as_service(const TCHAR *);\r