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.

28 lines
962 B

  1. #ifndef __GLOBAL_H__
  2. #define __GLOBAL_H__
  3. typedef PVOID MARTA_CONTEXT, *PMARTA_CONTEXT;
  4. #define NULL_MARTA_CONTEXT ((MARTA_CONTEXT) 0)
  5. typedef struct _MARTA_OBJECT_PROPERTIES {
  6. DWORD cbSize;
  7. DWORD dwFlags;
  8. } MARTA_OBJECT_PROPERTIES, *PMARTA_OBJECT_PROPERTIES;
  9. #define MARTA_OBJECT_IS_CONTAINER 0x1
  10. typedef struct _MARTA_OBJECT_TYPE_PROPERTIES {
  11. DWORD cbSize;
  12. DWORD dwFlags;
  13. GENERIC_MAPPING GenMap;
  14. } MARTA_OBJECT_TYPE_PROPERTIES, *PMARTA_OBJECT_TYPE_PROPERTIES;
  15. #define MARTA_OBJECT_TYPE_MANUAL_PROPAGATION_NEEDED_FLAG 0x1
  16. #define MARTA_OBJECT_TYPE_INHERITANCE_MODEL_PRESENT_FLAG 0x2
  17. #define CONDITIONAL_EXIT(a, b) if (ERROR_SUCCESS != (a)) { goto b; }
  18. #define CONDITIONAL_RETURN(a) if (ERROR_SUCCESS != (a)) { return (a); }
  19. #define CONDITIONAL_ACE_SIZE_ERROR(a) \
  20. if ((a) > 0xFFFF) { return ERROR_BAD_INHERITANCE_ACL; }
  21. #endif