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.
 
 
 
 
 
 

53 lines
1.9 KiB

#ifdef DEFINE_DAVSTRS
#define DAVSTR(name, value) \
EXTERN_C const WCHAR c_szwDAV##name[] = L#value; \
EXTERN_C const ULONG ulDAV##name##Len = (ARRAYSIZE(c_szwDAV##name) - 1); \
EXTERN_C const char c_szDAV##name[] = #value;
#define STRCONST(name, value) \
EXTERN_C const WCHAR c_szwDAV##name[] = L##value; \
EXTERN_C const ULONG ulDAV##name##Len = (ARRAYSIZE(c_szwDAV##name) - 1); \
EXTERN_C const char c_szDAV##name[] = value;
#else // DEFINE_DAVSTRS
#define DAVSTR(name, value) \
EXTERN_C const WCHAR c_szwDAV##name[]; \
EXTERN_C const ULONG ulDAV##name##Len; \
EXTERN_C const char c_szDAV##name[];
#define STRCONST(name, value) \
EXTERN_C const WCHAR c_szwDAV##name[]; \
EXTERN_C const ULONG ulDAV##name##Len; \
EXTERN_C const char c_szDAV##name[];
#endif // DEFINE_DAVSTRS
#define PROP_DAV(name, value) DAVSTR(name, value)
#define PROP_HTTP(name, value) DAVSTR(name, value)
#define PROP_HOTMAIL(name, value) DAVSTR(name, value)
#define PROP_MAIL(name, value) DAVSTR(name, value)
#define PROP_CONTACTS(name, value) DAVSTR(name, value)
#include "davdef.h"
// Namespaces
STRCONST(DavNamespace, "DAV:")
STRCONST(HotMailNamespace, "http://schemas.microsoft.com/hotmail/")
STRCONST(HTTPMailNamespace, "urn:schemas:httpmail:")
STRCONST(MailNamespace, "urn:schemas:mailheader:")
STRCONST(ContactsNamespace, "urn:schemas:contacts:")
// Special Folders
STRCONST(InboxSpecialFolder, "inbox");
STRCONST(DeletedItemsSpecialFolder, "deleteditems");
STRCONST(DraftsSpecialFolder, "drafts");
STRCONST(OutboxSpecialFolder, "outbox");
STRCONST(SentItemsSpecialFolder, "sentitems");
STRCONST(ContactsSpecialFolder, "contacts");
STRCONST(CalendarSpecialFolder, "calendar");
STRCONST(MsnPromoSpecialFolder, "msnpromo");
STRCONST(BulkMailSpecialFolder, "bulkmail");