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.

30 lines
855 B

  1. //+-----------------------------------------------------------------------
  2. //
  3. // File: exterr.h
  4. //
  5. // Contents: Kerberos extended error structures and macros
  6. //
  7. // History: 23-Feb-2000 Todds Created
  8. //
  9. //
  10. //------------------------------------------------------------------------
  11. #ifndef __EXTERR_H__
  12. #define __EXTERR_H__
  13. //
  14. // This macro is universally used for extended errors
  15. //
  16. #define EXT_ERROR_SUCCESS(s) (NT_SUCCESS(s.status))
  17. //
  18. // defines for flags member of KERB_EXT_ERROR structure
  19. //
  20. #define EXT_ERROR_CLIENT_INFO 0x1 // this is an extended error for use by client
  21. //
  22. // is there a useful NTSTATUS embedded in returned error?
  23. //
  24. #define EXT_CLIENT_INFO_PRESENT(p) ((NULL != p) && (p->flags & EXT_ERROR_CLIENT_INFO) && !NT_SUCCESS(p->status))
  25. #endif // __EXTERR_H__