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

  1. #ifdef DEFINE_DAVSTRS
  2. #define DAVSTR(name, value) \
  3. EXTERN_C const WCHAR c_szwDAV##name[] = L#value; \
  4. EXTERN_C const ULONG ulDAV##name##Len = (ARRAYSIZE(c_szwDAV##name) - 1); \
  5. EXTERN_C const char c_szDAV##name[] = #value;
  6. #define STRCONST(name, value) \
  7. EXTERN_C const WCHAR c_szwDAV##name[] = L##value; \
  8. EXTERN_C const ULONG ulDAV##name##Len = (ARRAYSIZE(c_szwDAV##name) - 1); \
  9. EXTERN_C const char c_szDAV##name[] = value;
  10. #else // DEFINE_DAVSTRS
  11. #define DAVSTR(name, value) \
  12. EXTERN_C const WCHAR c_szwDAV##name[]; \
  13. EXTERN_C const ULONG ulDAV##name##Len; \
  14. EXTERN_C const char c_szDAV##name[];
  15. #define STRCONST(name, value) \
  16. EXTERN_C const WCHAR c_szwDAV##name[]; \
  17. EXTERN_C const ULONG ulDAV##name##Len; \
  18. EXTERN_C const char c_szDAV##name[];
  19. #endif // DEFINE_DAVSTRS
  20. #define PROP_DAV(name, value) DAVSTR(name, value)
  21. #define PROP_HTTP(name, value) DAVSTR(name, value)
  22. #define PROP_HOTMAIL(name, value) DAVSTR(name, value)
  23. #define PROP_MAIL(name, value) DAVSTR(name, value)
  24. #define PROP_CONTACTS(name, value) DAVSTR(name, value)
  25. #include "davdef.h"
  26. // Namespaces
  27. STRCONST(DavNamespace, "DAV:")
  28. STRCONST(HotMailNamespace, "http://schemas.microsoft.com/hotmail/")
  29. STRCONST(HTTPMailNamespace, "urn:schemas:httpmail:")
  30. STRCONST(MailNamespace, "urn:schemas:mailheader:")
  31. STRCONST(ContactsNamespace, "urn:schemas:contacts:")
  32. // Special Folders
  33. STRCONST(InboxSpecialFolder, "inbox");
  34. STRCONST(DeletedItemsSpecialFolder, "deleteditems");
  35. STRCONST(DraftsSpecialFolder, "drafts");
  36. STRCONST(OutboxSpecialFolder, "outbox");
  37. STRCONST(SentItemsSpecialFolder, "sentitems");
  38. STRCONST(ContactsSpecialFolder, "contacts");
  39. STRCONST(CalendarSpecialFolder, "calendar");
  40. STRCONST(MsnPromoSpecialFolder, "msnpromo");
  41. STRCONST(BulkMailSpecialFolder, "bulkmail");