X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=account.h;fp=account.h;h=f16a899220ffaa48a181be5fe96a1209fec3e0e2;hb=cca8d28295ce27b7c996b47badc6a1e3a6a34e65;hp=0000000000000000000000000000000000000000;hpb=aece13df3cc7a17d5827cc59fc59c13538b52517;p=nssm.git diff --git a/account.h b/account.h new file mode 100644 index 0000000..f16a899 --- /dev/null +++ b/account.h @@ -0,0 +1,22 @@ +#ifndef ACCOUNT_H +#define ACCOUNT_H + +#include + +/* Not really an account. The canonical name is NT Authority\System. */ +#define NSSM_LOCALSYSTEM_ACCOUNT _T("LocalSystem") +/* This is explicitly a wide string. */ +#define NSSM_LOGON_AS_SERVICE_RIGHT L"SeServiceLogonRight" + + +int open_lsa_policy(LSA_HANDLE *); +int username_sid(const TCHAR *, SID **, LSA_HANDLE *); +int username_sid(const TCHAR *, SID **); +int username_equiv(const TCHAR *, const TCHAR *); +int is_localsystem(const TCHAR *); +TCHAR *canonical_username(const TCHAR *); +int requires_password(SID *); +int requires_password(const TCHAR *); +int grant_logon_as_service(const TCHAR *); + +#endif