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.

130 lines
7.1 KiB

  1. // imsg.idl : IDL source for imsg.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (imsg.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. cpp_quote("#define IMSG_MAX_DOMAIN_LEN 250")
  8. [
  9. object,
  10. uuid(2DB263AD-499F-11D1-B78F-0080C731C893),
  11. dual,
  12. helpstring("IMsg Interface"),
  13. pointer_default(unique)
  14. ]
  15. interface IMsg : IDispatch
  16. {
  17. [propget, id(0), helpstring("property Value")] HRESULT Value(BSTR szPropertyName, [out, retval] VARIANT *pVal);
  18. [propput, id(0), helpstring("property Value")] HRESULT Value(BSTR szPropertyName, [in] VARIANT newVal);
  19. [id(1), helpstring("method SetContentFile")] HRESULT SetContentFile(BSTR szFileName, DWORD hFile);
  20. [id(2), helpstring("method GetContentFile")] HRESULT GetContentFile(DWORD *phFile);
  21. [id(3), helpstring("method Delete")] HRESULT Delete();
  22. [id(4), helpstring("method Persist")] HRESULT Persist();
  23. [id(5), helpstring("method CloseContentFile")] HRESULT CloseContentFile();
  24. [id(6), helpstring("method PutStringA")] HRESULT PutStringA(LPCSTR szPropertyName, [in] LPCSTR szValue);
  25. [id(7), helpstring("method GetStringA")] HRESULT GetStringA(LPCSTR szPropertyName, DWORD cchLength, [out, max_is(cchLength), string] LPSTR pszValue);
  26. [id(8), helpstring("method PutStringW")] HRESULT PutStringW(LPCWSTR szPropertyName, [in] LPCWSTR szValue);
  27. [id(9), helpstring("method GetStringW")] HRESULT GetStringW(LPCWSTR szPropertyName, DWORD cchLength, [out, max_is(cchLength), string] LPWSTR pszValue);
  28. [id(10), helpstring("method PutDWORDA")] HRESULT PutDWORDA(LPCSTR szPropertyName, DWORD szValue);
  29. [id(11), helpstring("method GetDWORDA")] HRESULT GetDWORDA(LPCSTR szPropertyName, [out, retval] LPDWORD pszValue);
  30. [id(12), helpstring("method PutDWORDW")] HRESULT PutDWORDW(LPCWSTR szPropertyName, DWORD szValue);
  31. [id(13), helpstring("method GetDWORDW")] HRESULT GetDWORDW(LPCWSTR szPropertyName, [out, retval] LPDWORD pszValue);
  32. [id(14), helpstring("method put_ValueA")] HRESULT put_ValueA(LPSTR szPropertyName, [in] VARIANT newVal);
  33. [id(15), helpstring("method get_ValueA")] HRESULT get_ValueA(LPSTR szPropertyName, [out, retval] VARIANT *pVal);
  34. };
  35. [
  36. object,
  37. uuid(B4B23806-4710-11D1-B78D-0080C731C893),
  38. dual,
  39. helpstring("IRecipient Interface"),
  40. pointer_default(unique)
  41. ]
  42. interface IRecipient : IDispatch
  43. {
  44. [propget, id(0), helpstring("property Value")] HRESULT Value(BSTR szPropertyName, [out, retval] VARIANT *pVal);
  45. [propput, id(0), helpstring("property Value")] HRESULT Value(BSTR szPropertyName, [in] VARIANT newVal);
  46. [propget, id(1), helpstring("property Address")] HRESULT Address([out, retval] BSTR *pVal);
  47. [propput, id(1), helpstring("property Address")] HRESULT Address([in] BSTR newVal);
  48. [propget, id(2), helpstring("property AddressType")] HRESULT AddressType([out, retval] BSTR *pVal);
  49. [propput, id(2), helpstring("property AddressType")] HRESULT AddressType([in] BSTR newVal);
  50. [id(3), helpstring("method get_AddressA")] HRESULT get_AddressA(DWORD cchLength, [out, max_is(cchLength), string] LPSTR pszAddress);
  51. [id(4), helpstring("method put_AddressA")] HRESULT put_AddressA(LPSTR szAddress);
  52. [id(6), helpstring("method PutStringA")] HRESULT PutStringA(LPCSTR szPropertyName, [in] LPCSTR szValue);
  53. [id(7), helpstring("method GetStringA")] HRESULT GetStringA(LPCSTR szPropertyName, DWORD cchLength, [out, max_is(cchLength), string] LPSTR pszValue);
  54. [id(8), helpstring("method PutStringW")] HRESULT PutStringW(LPCWSTR szPropertyName, [in] LPCWSTR szValue);
  55. [id(9), helpstring("method GetStringW")] HRESULT GetStringW(LPCWSTR szPropertyName, DWORD cchLength, [out, max_is(cchLength), string] LPWSTR pszValue);
  56. [id(10), helpstring("method PutDWORDA")] HRESULT PutDWORDA(LPCSTR szPropertyName, DWORD szValue);
  57. [id(11), helpstring("method GetDWORDA")] HRESULT GetDWORDA(LPCSTR szPropertyName, [out, retval] LPDWORD pszValue);
  58. [id(12), helpstring("method PutDWORDW")] HRESULT PutDWORDW(LPCWSTR szPropertyName, DWORD szValue);
  59. [id(13), helpstring("method GetDWORDW")] HRESULT GetDWORDW(LPCWSTR szPropertyName, [out, retval] LPDWORD pszValue);
  60. [id(14), helpstring("method put_ValueA")] HRESULT put_ValueA(LPSTR szPropertyName, [in] VARIANT newVal);
  61. [id(15), helpstring("method get_ValueA")] HRESULT get_ValueA(LPSTR szPropertyName, [out, retval] VARIANT *pVal);
  62. };
  63. [
  64. object,
  65. uuid(B4B23803-4710-11D1-B78D-0080C731C893),
  66. dual,
  67. helpstring("IMsgRecipientList Interface"),
  68. pointer_default(unique)
  69. ]
  70. interface IMsgRecipientList : IDispatch
  71. {
  72. [id(1), helpstring("method Count")] HRESULT Count(LPDWORD pcRecipients);
  73. [id(2), helpstring("method Index")] HRESULT Index(DWORD n, IRecipient **ppRecipient);
  74. [id(3), helpstring("method Add")] HRESULT Add(BSTR szAddrType, BSTR szAddress);
  75. [id(4), helpstring("method DeleteAll")] HRESULT DeleteAll();
  76. [id(5), helpstring("method AddA")] HRESULT AddA(LPSTR szAddrType, LPSTR szAddress);
  77. };
  78. [
  79. object,
  80. uuid(05bbdd90-5d5a-11d1-b7a7-0080c731c893),
  81. helpstring("IRecipientDomainList Interface"),
  82. pointer_default(unique)
  83. ]
  84. interface IRecipientDomainList : IUnknown
  85. {
  86. HRESULT Count(LPDWORD pcDomains);
  87. HRESULT Index(DWORD n, LPSTR szDomain, LPDWORD pnRecipientStartIndex, LPDWORD pnRecipientEndIndex);
  88. }
  89. [
  90. uuid(2DB263A0-499F-11D1-B78F-0080C731C893),
  91. version(1.0),
  92. helpstring("imsg 1.0 Type Library")
  93. ]
  94. library IMSGLib
  95. {
  96. importlib("stdole2.tlb");
  97. [
  98. uuid(2DB263AE-499F-11D1-B78F-0080C731C893),
  99. helpstring("Msg Class")
  100. ]
  101. coclass Msg
  102. {
  103. [default] interface IMsg;
  104. interface IMsgRecipientList;
  105. };
  106. [
  107. uuid(B4B23807-4710-11D1-B78D-0080C731C893),
  108. helpstring("Recipient Class")
  109. ]
  110. coclass Recipient
  111. {
  112. [default] interface IRecipient;
  113. };
  114. [
  115. uuid(d16e9660-6081-11d1-b7a9-0080c731c893),
  116. helpstring("Recipient Domain List")
  117. ]
  118. coclass RecipientDomainList
  119. {
  120. [default] interface IRecipientDomainList;
  121. };
  122. };