Source code of Windows XP (NT5)
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.

102 lines
2.8 KiB

  1. /*
  2. Microsoft Corp. (C) Copyright 1994
  3. Developed under contract by Numbers & Co.
  4. ----------------------------------------------------------------------------
  5. name: Elliot Viewer - Chicago Viewer Utility
  6. Cloned from the IFAX Message Viewing Utility
  7. file: genawd.h
  8. comments: Header for AWD file creation functions for C folks
  9. ----------------------------------------------------------------------------
  10. Microsoft Corp. (C) Copyright 1994
  11. Developed under contract by Numbers & Co.
  12. */
  13. /*
  14. Unicode spasms
  15. */
  16. //#ifndef WIN32
  17. #ifndef TCHAR
  18. typedef char TCHAR;
  19. #endif
  20. #ifndef _T
  21. #define _T(x) x
  22. #endif
  23. #ifndef LPTSTR
  24. typedef TCHAR FAR *LPTSTR;
  25. #endif
  26. #ifndef LPTCH
  27. typedef TCHAR FAR *LPTCH;
  28. #endif
  29. //#endif
  30. /*
  31. Error return codes
  32. */
  33. #define GENAWD_OK 0 // No worries
  34. #define GENAWD_CANTCREATE 1 // Can't create AWD doc file
  35. #define GENAWD_NODOCUMENTS 2 // DocnameList is NULL
  36. #define GENAWD_CANTCREATE0 4 // Can't create Documents storage
  37. #define GENAWD_CANTCREATE1 5 // Can't create Persistent Information storage
  38. #define GENAWD_CANTCREATE2 6 // Can't create Page Information storage
  39. #define GENAWD_CANTCREATE3 7 // Can't create Document Information storage
  40. #define GENAWD_CANTCREATE4 8 // Can't create Global Information storage
  41. #define GENAWD_CANTCREATE5 9 // Can't create Annotation storage
  42. #define GENAWD_CANTCREATE6 10 // Can't create Object storage
  43. #define GENAWD_CANTOPENSTREAM 11 // Can't open a stream
  44. #define GENAWD_CANTWRITESTREAM 12 // Can't write a stream
  45. #define GENAWD_CANTOPENDOSFILE 13 // Can't open a DOS file
  46. #define GENAWD_NOMEMORY 14 // Out of memory
  47. #define GENAWD_CANTOPENMSG 15 // Can't open AWD doc/message file
  48. #define GENAWD_CANTMAKEOBJECT 16 // Can't create embedded object
  49. #define GENAWD_CANTINITOLE 17 // Can't initialize OLE2 innards
  50. #define GENAWD_CANTMAKETEMPSTG 18 // Can't create temp IStorage for object
  51. #define GENAWD_CANTREADDOSFILE 19 // Can't read dos file
  52. #define GENAWD_CANTCREATE7 20 // Can't create DisplayOrder stream
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif
  56. short far
  57. InitAwdFile( LPTSTR lpszAwdName );
  58. short far
  59. AddDocFile( LPTSTR lpszDocName );
  60. short far
  61. CloseAwdFile( void );
  62. /*
  63. istgObj is cast to an IStorage* internally and used for the
  64. object's IStorage if it is non-NULL. I did it this way so a
  65. C caller won't have to #include all of the compound file
  66. garbage if it doesn't want to. If istgObj is NULL then
  67. a temporary IStorage is created for the object.
  68. */
  69. short far
  70. MakeEmbeddedObject( LPTSTR lpszAwdName,
  71. LPVOID FAR *istgObj, // IStorage*, can be NULL.
  72. LPVOID FAR *ppvObj );
  73. #ifdef __cplusplus
  74. }
  75. #endif