account.h 662 B

12345678910111213141516171819202122
  1. #ifndef ACCOUNT_H
  2. #define ACCOUNT_H
  3. #include <ntsecapi.h>
  4. /* Not really an account. The canonical name is NT Authority\System. */
  5. #define NSSM_LOCALSYSTEM_ACCOUNT _T("LocalSystem")
  6. /* This is explicitly a wide string. */
  7. #define NSSM_LOGON_AS_SERVICE_RIGHT L"SeServiceLogonRight"
  8. int open_lsa_policy(LSA_HANDLE *);
  9. int username_sid(const TCHAR *, SID **, LSA_HANDLE *);
  10. int username_sid(const TCHAR *, SID **);
  11. int username_equiv(const TCHAR *, const TCHAR *);
  12. int is_localsystem(const TCHAR *);
  13. TCHAR *canonical_username(const TCHAR *);
  14. int requires_password(SID *);
  15. int requires_password(const TCHAR *);
  16. int grant_logon_as_service(const TCHAR *);
  17. #endif