ATL Development   «Prev 

Final State of Interface Definitions - PhBook.idl

The final state of the interface definitions in PhBook.idl:
...
//Partial listing
[
  object,
  uuid
    (EF7C3D7D-653E-11D2-85DB-08001700C57F),
  helpstring("IReadPhBook Interface"),
  pointer_default(unique)
]
interface IReadPhBook : IUnknown
{
  [propget, helpstring("property CurRec")]
    HRESULT CurRec([out, retval] long *pVal);
  [propput, helpstring("property CurRec")]
    HRESULT CurRec([in] long newVal);
  [propget, helpstring("property MaxRecs")]
    HRESULT MaxRecs([out, retval] long *pVal);
  [propget, helpstring("property NumRecs")]
    HRESULT NumRecs([out, retval] long *pVal);

  [helpstring("method GetPhoneRec")] 
    HRESULT GetPhoneRec([in] PhRec *pPhRec,
   [out] BOOL *pOK);

};

Essential COM
[
  object,
  uuid(EF7C3D7E-653E-11D2-85DB-08001700C57F),
  helpstring("IManagePhBook Interface"),
  pointer_default(unique)
]
interface IManagePhBook : IUnknown
{

  [helpstring("method AddPhoneRec")] 
  HRESULT AddPhoneRec([in] PhRec *pPhRec,
    [out] BOOL *pOK);

  [helpstring("method DeletePhoneRec")] 
  HRESULT DeletePhoneRec([out] BOOL *pOK);

};
...