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.

80 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. ppdefs.h
  5. Abstract:
  6. Basic Passport definitions.
  7. Author:
  8. Biao Wang (biaow) 01-Oct-2000
  9. --*/
  10. #ifndef PP_DEFS_H
  11. #define PP_DEFS_H
  12. #include <wininetp.h>
  13. #ifdef CompareFileTime
  14. #undef CompareFileTime
  15. #endif
  16. #if defined(_WIN64)
  17. #pragma warning(disable:4267) // conversion from 'size_t' to 32bits
  18. #endif
  19. #define HINTERNET PVOID
  20. #define INTERNET_PORT WORD
  21. #define PP_LOG_INFO /*Noise*/ 0x00000001
  22. #define PP_LOG_WARNING /*Unusual*/ 0x00000002
  23. #define PP_LOG_ERROR /*Error*/ 0x00000004
  24. #ifdef DBG
  25. #define PP_ASSERT(fVal) if (!fVal) DebugBreak();
  26. #else
  27. #define PP_ASSERT(fVal)
  28. #endif
  29. #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
  30. #define WPP_CONTROL_GUIDS \
  31. WPP_DEFINE_CONTROL_GUID(Regular,(81b20fea,73a8,4b62,95bc,354477c97a6f), \
  32. WPP_DEFINE_BIT(Error) \
  33. WPP_DEFINE_BIT(Unusual) \
  34. WPP_DEFINE_BIT(Noise) \
  35. )
  36. //
  37. // func pointer decl for CredUI
  38. //
  39. #include <wincred.h>
  40. typedef BOOL
  41. (WINAPI * PFN_READ_DOMAIN_CRED_W) (
  42. IN PCREDENTIAL_TARGET_INFORMATIONW TargetInfo,
  43. IN DWORD Flags,
  44. OUT DWORD *Count,
  45. OUT PCREDENTIALW **Credential
  46. );
  47. typedef VOID
  48. (WINAPI * PFN_CRED_FREE)(
  49. IN PVOID Buffer
  50. );
  51. #define DoTraceMessage
  52. #define MAX_PASSPORT_URL_LENGTH 1024
  53. #define MAX_PASSPORT_REALM_LENGTH 128
  54. #define MAX_PASSPORT_DOMAIN_LENGTH 256
  55. #define MAX_PASSPORT_HOST_LENGTH 256
  56. #endif // PP_DEFS_H