Source code of Windows XP (NT5)
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.

97 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. C2ACLS.H
  5. Abstract:
  6. define the exported routines, datatypes and constants of the
  7. C2ACLS DLL
  8. Author:
  9. Bob Watson (a-robw)
  10. Revision History:
  11. 23 Dec 94
  12. --*/
  13. #ifndef _C2FUNCS_H_
  14. #define _C2FUNCS_H_
  15. // FilePath interprtation flags
  16. #define FILE_PATH_NORMAL 1 // do the specified file ONLY
  17. #define FILE_PATH_ALL 2 // do the specified [Dir] path and all files and sub dirs
  18. #define FILE_PATH_WILD 4 // process the wildcard path syntax
  19. // dllinit.c functions
  20. HINSTANCE
  21. GetDllInstance (
  22. VOID
  23. );
  24. int
  25. DisplayDllMessageBox (
  26. IN HWND hWnd,
  27. IN UINT nMessageId,
  28. IN UINT nTitleId,
  29. IN UINT nStyle
  30. );
  31. // public aclfuncs.c functions
  32. HKEY
  33. GetRootKey (
  34. IN LPCTSTR szKeyPath
  35. );
  36. LPCTSTR
  37. GetKeyPath (
  38. IN LPCTSTR szKeyPath,
  39. OUT LPBOOL pbDoSubKeys
  40. );
  41. LPCTSTR
  42. GetFilePathFromHeader (
  43. IN LPCTSTR szHeaderPath,
  44. OUT LPDWORD pdwFlags
  45. );
  46. LONG
  47. MakeAclFromRegSection (
  48. IN LPTSTR mszSection,
  49. OUT PACL pAcl
  50. );
  51. LONG
  52. MakeAclFromNtfsSection (
  53. IN LPTSTR mszSection,
  54. IN BOOL bDirectory,
  55. OUT PACL pAcl
  56. );
  57. LONG
  58. SetRegistryKeySecurity (
  59. IN HKEY hkeyRootKey,
  60. IN LPCTSTR szKeyPath,
  61. IN BOOL bDoSubKeys,
  62. IN PSECURITY_DESCRIPTOR psdSecurity
  63. );
  64. LONG
  65. SetNtfsFileSecurity (
  66. IN LPCTSTR szPath,
  67. IN DWORD dwFlags,
  68. IN PSECURITY_DESCRIPTOR pSdDir,
  69. IN PSECURITY_DESCRIPTOR pSdFile
  70. );
  71. #endif // _C2FUNCS_H_