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.

61 lines
1.8 KiB

  1. ////////////////////////////////////////////////////////////////////////
  2. // //
  3. // Context structure is not known to the caller. It is defined by the //
  4. // callee when Open/FindFirst is called and is used subsequently as //
  5. // input to other calls. //
  6. // //
  7. // Since the caller is not aware of the context structure the object //
  8. // manager must provide a free context funtion. //
  9. // //
  10. ////////////////////////////////////////////////////////////////////////
  11. #include "global.h"
  12. DWORD
  13. MartaAddRefServiceContext(
  14. IN MARTA_CONTEXT Context
  15. );
  16. DWORD
  17. MartaCloseServiceContext(
  18. IN MARTA_CONTEXT Context
  19. );
  20. DWORD
  21. MartaGetServiceProperties(
  22. IN MARTA_CONTEXT Context,
  23. IN OUT PMARTA_OBJECT_PROPERTIES pProperties
  24. );
  25. DWORD
  26. MartaGetServiceTypeProperties(
  27. IN OUT PMARTA_OBJECT_TYPE_PROPERTIES pProperties
  28. );
  29. DWORD
  30. MartaGetServiceRights(
  31. IN MARTA_CONTEXT Context,
  32. IN SECURITY_INFORMATION SecurityInfo,
  33. OUT PSECURITY_DESCRIPTOR * ppSecurityDescriptor
  34. );
  35. DWORD
  36. MartaOpenServiceNamedObject(
  37. IN LPCWSTR pObjectName,
  38. IN ACCESS_MASK AccessMask,
  39. OUT PMARTA_CONTEXT pContext
  40. );
  41. DWORD
  42. MartaOpenServiceHandleObject(
  43. IN HANDLE Handle,
  44. IN ACCESS_MASK AccessMask,
  45. OUT PMARTA_CONTEXT pContext
  46. );
  47. DWORD
  48. MartaSetServiceRights(
  49. IN MARTA_CONTEXT Context,
  50. IN SECURITY_INFORMATION SecurityInfo,
  51. IN PSECURITY_DESCRIPTOR pSecurityDescriptor
  52. );