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.

29 lines
1.2 KiB

  1. /*
  2. * _VCard.H - VCard definitions
  3. *
  4. *
  5. *
  6. * Copyright 1992 - 1996 Microsoft Corporation. All Rights Reserved.
  7. *
  8. */
  9. #define VCARD TRUE // comment out to disable vCard support
  10. #ifdef VCARD
  11. typedef ULONG (VCARD_READ)(HANDLE hVCard, LPVOID lpBuffer, ULONG uBytes, LPULONG ulBytesRead);
  12. typedef VCARD_READ FAR *LPVCARD_READ;
  13. typedef ULONG (VCARD_WRITE)(HANDLE hVCard, LPVOID lpBuffer, ULONG uBytes, LPULONG ulBytesWritten);
  14. typedef VCARD_WRITE FAR *LPVCARD_WRITE;
  15. HRESULT FileReadFn(HANDLE handle, LPVOID lpBuffer, ULONG uBytes, LPULONG lpcbRead);
  16. HRESULT BufferReadFn(HANDLE handle, LPVOID lpBuffer, ULONG uBytes, LPULONG lpcbRead);
  17. HRESULT FileWriteFn(HANDLE handle, LPVOID lpBuffer, ULONG uBytes, LPULONG lpcbWritten);
  18. HRESULT ReadVCard(HANDLE hVCard, VCARD_READ ReadFn, LPMAILUSER lpMailUser);
  19. HRESULT WriteVCard(HANDLE hVCard, VCARD_WRITE WriteFn, LPMAILUSER lpMailUser);
  20. BOOL VCardGetBuffer(LPTSTR lpszFileName, LPSTR lpszBuf, LPSTR * lppBuf);
  21. BOOL VCardGetNextBuffer(LPSTR lpBuf, LPSTR * lppVCard, LPSTR * lppNext);
  22. #define WAB_W_END_OF_DATA (MAKE_MAPI_S(0x1001))
  23. #define WAB_E_VCARD_NOT_ASCII (MAKE_MAPI_E(0x1002))
  24. #endif