Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright(C) 2001 - 2002 Microsoft Corporation
  5. //
  6. // File: auditing.hxx
  7. //
  8. //----------------------------------------------------------------------------
  9. #ifndef __TASKSCHED_AUDITING__H_
  10. #define __TASKSCHED_AUDITING__H_
  11. //
  12. // Auditing functions
  13. //
  14. HRESULT AuditATJob(
  15. const AT_INFO &AtInfo,
  16. LPCWSTR pwszFileName);
  17. HRESULT AuditJob(
  18. HANDLE hThreadToken,
  19. PSID pTaskSid,
  20. LPCWSTR pwszFileName);
  21. DWORD EnableNamedPrivilege(
  22. IN PCWSTR pszPrivName,
  23. IN BOOL fEnable,
  24. OUT PBOOL pfWasEnabled OPTIONAL);
  25. DWORD GenerateJobCreatedAudit(
  26. IN PSID pUserSid,
  27. IN PSID pTaskSid,
  28. IN PLUID pLogonId,
  29. IN PCWSTR pwszFileName);
  30. HRESULT GetJobAuditInfo(
  31. LPCWSTR pwszFileName,
  32. DWORD* pdwFlags,
  33. LPWSTR* ppwszCommandLine,
  34. LPWSTR* ppwszTriggers,
  35. FILETIME* pftNextRun);
  36. void ShutdownAuditing(void);
  37. DWORD StartupAuditing(void);
  38. #endif // __TASKSCHED_AUDITING__H_