msdaosp.idl 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //-----------------------------------------------------------------------------
  2. // File: msdaosp.idl
  3. //
  4. // Copyright: Copyright (c) Microsoft Corporation
  5. //
  6. // Contents: Interfaces, UUIDs and Properties For the OLE DB Simple
  7. // Provider Toolkit.
  8. //
  9. // Comments: The OLE DB Simple Provider Toolkit reuses two interface
  10. // files, msdatsrc.idl and simpdata.idl. Now all of the
  11. // definitions needed to build a simple provider are
  12. // included in these files. This IDL completes the
  13. // definitions required to build a simple propvider
  14. //
  15. //-----------------------------------------------------------------------------
  16. //=--------------------------------------------------------------------------=
  17. // Use the Data Source and OSP Headers
  18. //=--------------------------------------------------------------------------=
  19. cpp_quote("#include \"msdatsrc.h\"")
  20. cpp_quote("#include \"simpdata.h\"")
  21. //=--------------------------------------------------------------------------=
  22. // Generate GUIDs for the OSP to Rowset Mapper
  23. //=--------------------------------------------------------------------------=
  24. cpp_quote("#ifdef DBINITCONSTANTS")
  25. cpp_quote("extern const GUID CLSID_MSDAOSP = {0xdfc8bdc0,0xe378,0x11d0,{0x9b,0x30,0x0,0x80,0xc7,0xe9,0xfe,0x95}};")
  26. cpp_quote("extern const GUID DBPROPSET_PWROWSET = {0xe6e478db,0xf226,0x11d0,{0x94,0xee,0x0,0xc0,0x4f,0xb6,0x6a,0x50}};")
  27. cpp_quote("#else // !DBINITCONSTANTS")
  28. cpp_quote("extern const GUID CLSID_MSDAOSP;")
  29. cpp_quote("extern const GUID DBPROPSET_PWROWSET;")
  30. cpp_quote("#endif // DBINITCONSTANTS")
  31. cpp_quote("#define PWPROP_OSPVALUE 2")
  32. import "oaidl.idl";
  33. [
  34. uuid(0ae9a4e0-18d4-11d1-b3b3-00aa00c1a924),
  35. version(1.0),
  36. helpstring("Microsoft OLE DB Simple Provider Toolkit Definitions")
  37. ]
  38. library MSDAOSPT
  39. {
  40. //=--------------------------------------------------------------------------=
  41. // Standard imports
  42. //=--------------------------------------------------------------------------=
  43. // importlib("STDOLE2.TLB");
  44. //importlib("stdole32.tlb");
  45. //import "msdatsrc.idl";
  46. //=--------------------------------------------------------------------------=
  47. // Define methods for IDispatch interface DataSource Object, since these
  48. // aren't defined in msdatsrc.idl or simpdata.idl.
  49. //=--------------------------------------------------------------------------=
  50. [
  51. uuid(0ae9a4e4-18d4-11d1-b3b3-00aa00c1a924)
  52. ]
  53. dispinterface DataSourceObject
  54. {
  55. properties:
  56. methods:
  57. [id(-3900)] HRESULT msDataSourceObject([in]BSTR bstrDM, [out,retval]IUnknown** ppUnk);
  58. //[id(-3901)] HRESULT addDataSourceListener([in]DataSourceListener* pEvent);
  59. };
  60. };