/*++ Copyright (c) 2000 Microsoft Corporation Module Name: ppdefs.h Abstract: Basic Passport definitions. Author: Biao Wang (biaow) 01-Oct-2000 --*/ #ifndef PP_DEFS_H #define PP_DEFS_H #include #ifdef CompareFileTime #undef CompareFileTime #endif #if defined(_WIN64) #pragma warning(disable:4267) // conversion from 'size_t' to 32bits #endif #define HINTERNET PVOID #define INTERNET_PORT WORD #define PP_LOG_INFO /*Noise*/ 0x00000001 #define PP_LOG_WARNING /*Unusual*/ 0x00000002 #define PP_LOG_ERROR /*Error*/ 0x00000004 #ifdef DBG #define PP_ASSERT(fVal) if (!fVal) DebugBreak(); #else #define PP_ASSERT(fVal) #endif #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0])) #define WPP_CONTROL_GUIDS \ WPP_DEFINE_CONTROL_GUID(Regular,(81b20fea,73a8,4b62,95bc,354477c97a6f), \ WPP_DEFINE_BIT(Error) \ WPP_DEFINE_BIT(Unusual) \ WPP_DEFINE_BIT(Noise) \ ) // // func pointer decl for CredUI // #include typedef BOOL (WINAPI * PFN_READ_DOMAIN_CRED_W) ( IN PCREDENTIAL_TARGET_INFORMATIONW TargetInfo, IN DWORD Flags, OUT DWORD *Count, OUT PCREDENTIALW **Credential ); typedef VOID (WINAPI * PFN_CRED_FREE)( IN PVOID Buffer ); #define DoTraceMessage #define MAX_PASSPORT_URL_LENGTH 1024 #define MAX_PASSPORT_REALM_LENGTH 128 #define MAX_PASSPORT_DOMAIN_LENGTH 256 #define MAX_PASSPORT_HOST_LENGTH 256 #endif // PP_DEFS_H