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.

69 lines
1.2 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 <Windows.h>
  13. #define HINTERNET PVOID
  14. #define INTERNET_PORT WORD
  15. #define PP_LOG_INFO /*Noise*/ 0x00000001
  16. #define PP_LOG_WARNING /*Unusual*/ 0x00000002
  17. #define PP_LOG_ERROR /*Error*/ 0x00000004
  18. #ifdef DBG
  19. #define PP_ASSERT(fVal) if (!fVal) DebugBreak();
  20. #else
  21. #define PP_ASSERT(fVal)
  22. #endif
  23. #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
  24. #define WPP_CONTROL_GUIDS \
  25. WPP_DEFINE_CONTROL_GUID(Regular,(81b20fea,73a8,4b62,95bc,354477c97a6f), \
  26. WPP_DEFINE_BIT(Error) \
  27. WPP_DEFINE_BIT(Unusual) \
  28. WPP_DEFINE_BIT(Noise) \
  29. )
  30. //
  31. // func pointer decl for CredUI
  32. //
  33. //#include <credui.h>
  34. #include <wincred.h>
  35. typedef BOOL
  36. (WINAPI * PFN_READ_DOMAIN_CRED_W) (
  37. IN PCREDENTIAL_TARGET_INFORMATIONW TargetInfo,
  38. IN DWORD Flags,
  39. OUT DWORD *Count,
  40. OUT PCREDENTIALW **Credential
  41. );
  42. typedef VOID
  43. (WINAPI * PFN_CRED_FREE)(
  44. IN PVOID Buffer
  45. );
  46. #define DoTraceMessage
  47. #endif // PP_DEFS_H