

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 7.00.0500 */
/* at Sun Jun 07 00:01:58 2009
 */
/* Compiler settings for .\CyberArticleBookTools.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#pragma warning( disable: 4049 )  /* more than 64k source lines */


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __CyberArticleBookTools_i_h__
#define __CyberArticleBookTools_i_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __ICABookTools_FWD_DEFINED__
#define __ICABookTools_FWD_DEFINED__
typedef interface ICABookTools ICABookTools;
#endif 	/* __ICABookTools_FWD_DEFINED__ */


#ifndef __CABookTools_FWD_DEFINED__
#define __CABookTools_FWD_DEFINED__

#ifdef __cplusplus
typedef class CABookTools CABookTools;
#else
typedef struct CABookTools CABookTools;
#endif /* __cplusplus */

#endif 	/* __CABookTools_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"

#ifdef __cplusplus
extern "C"{
#endif 


#ifndef __ICABookTools_INTERFACE_DEFINED__
#define __ICABookTools_INTERFACE_DEFINED__

/* interface ICABookTools */
/* [unique][helpstring][nonextensible][dual][uuid][object] */ 


EXTERN_C const IID IID_ICABookTools;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("105F6AF4-1AD7-4388-B550-FDA21C85FE74")
    ICABookTools : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateBook( 
            /* [retval][out] */ BSTR *pbstrGUID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectBook( 
            /* [out] */ IDispatch **ppBookDisp,
            /* [out] */ IDispatch **ppSelectedNodeDisp) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectBookLabels( 
            /* [in] */ IDispatch *pBookDisp,
            /* [retval][out] */ IDispatch **ppLabelDisp) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectBookLabels2( 
            /* [in] */ IDispatch *pBookDisp,
            /* [out][in] */ long *pnFlags,
            /* [retval][out] */ IDispatch **ppLabelDisp) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectBookLabels3( 
            /* [in] */ IDispatch *pNodeDisp,
            /* [out][in] */ long *pnFlags,
            /* [retval][out] */ IDispatch **ppLabelDisp) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddBooks( 
            /* [retval][out] */ VARIANT *pvarrayGUIDs) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExportBookList( 
            /* [retval][out] */ BSTR *pbstrFileName) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectArticle( 
            /* [retval][out] */ IDispatch **ppArticleDisp) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetPasswordStorage( 
            /* [in] */ VARIANT vPasswordStorage) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateAccessBook( 
            /* [in] */ BSTR bstrFileName,
            /* [retval][out] */ BSTR *pbstrGUID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ViewArticle( 
            /* [in] */ IDispatch *pNodeDisp,
            /* [in] */ LONG nSeconds) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectNodes( 
            /* [in] */ IDispatch *pNodesDisp,
            /* [in] */ IDispatch *pInitSelectedNodesDisp,
            /* [retval][out] */ IDispatch **ppSelectedNodesDisp) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct ICABookToolsVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ICABookTools * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ICABookTools * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ICABookTools * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            ICABookTools * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            ICABookTools * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            ICABookTools * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            ICABookTools * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateBook )( 
            ICABookTools * This,
            /* [retval][out] */ BSTR *pbstrGUID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectBook )( 
            ICABookTools * This,
            /* [out] */ IDispatch **ppBookDisp,
            /* [out] */ IDispatch **ppSelectedNodeDisp);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectBookLabels )( 
            ICABookTools * This,
            /* [in] */ IDispatch *pBookDisp,
            /* [retval][out] */ IDispatch **ppLabelDisp);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectBookLabels2 )( 
            ICABookTools * This,
            /* [in] */ IDispatch *pBookDisp,
            /* [out][in] */ long *pnFlags,
            /* [retval][out] */ IDispatch **ppLabelDisp);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectBookLabels3 )( 
            ICABookTools * This,
            /* [in] */ IDispatch *pNodeDisp,
            /* [out][in] */ long *pnFlags,
            /* [retval][out] */ IDispatch **ppLabelDisp);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddBooks )( 
            ICABookTools * This,
            /* [retval][out] */ VARIANT *pvarrayGUIDs);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExportBookList )( 
            ICABookTools * This,
            /* [retval][out] */ BSTR *pbstrFileName);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectArticle )( 
            ICABookTools * This,
            /* [retval][out] */ IDispatch **ppArticleDisp);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetPasswordStorage )( 
            ICABookTools * This,
            /* [in] */ VARIANT vPasswordStorage);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateAccessBook )( 
            ICABookTools * This,
            /* [in] */ BSTR bstrFileName,
            /* [retval][out] */ BSTR *pbstrGUID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ViewArticle )( 
            ICABookTools * This,
            /* [in] */ IDispatch *pNodeDisp,
            /* [in] */ LONG nSeconds);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectNodes )( 
            ICABookTools * This,
            /* [in] */ IDispatch *pNodesDisp,
            /* [in] */ IDispatch *pInitSelectedNodesDisp,
            /* [retval][out] */ IDispatch **ppSelectedNodesDisp);
        
        END_INTERFACE
    } ICABookToolsVtbl;

    interface ICABookTools
    {
        CONST_VTBL struct ICABookToolsVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ICABookTools_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define ICABookTools_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define ICABookTools_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define ICABookTools_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 

#define ICABookTools_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 

#define ICABookTools_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 

#define ICABookTools_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 


#define ICABookTools_CreateBook(This,pbstrGUID)	\
    ( (This)->lpVtbl -> CreateBook(This,pbstrGUID) ) 

#define ICABookTools_SelectBook(This,ppBookDisp,ppSelectedNodeDisp)	\
    ( (This)->lpVtbl -> SelectBook(This,ppBookDisp,ppSelectedNodeDisp) ) 

#define ICABookTools_SelectBookLabels(This,pBookDisp,ppLabelDisp)	\
    ( (This)->lpVtbl -> SelectBookLabels(This,pBookDisp,ppLabelDisp) ) 

#define ICABookTools_SelectBookLabels2(This,pBookDisp,pnFlags,ppLabelDisp)	\
    ( (This)->lpVtbl -> SelectBookLabels2(This,pBookDisp,pnFlags,ppLabelDisp) ) 

#define ICABookTools_SelectBookLabels3(This,pNodeDisp,pnFlags,ppLabelDisp)	\
    ( (This)->lpVtbl -> SelectBookLabels3(This,pNodeDisp,pnFlags,ppLabelDisp) ) 

#define ICABookTools_AddBooks(This,pvarrayGUIDs)	\
    ( (This)->lpVtbl -> AddBooks(This,pvarrayGUIDs) ) 

#define ICABookTools_ExportBookList(This,pbstrFileName)	\
    ( (This)->lpVtbl -> ExportBookList(This,pbstrFileName) ) 

#define ICABookTools_SelectArticle(This,ppArticleDisp)	\
    ( (This)->lpVtbl -> SelectArticle(This,ppArticleDisp) ) 

#define ICABookTools_SetPasswordStorage(This,vPasswordStorage)	\
    ( (This)->lpVtbl -> SetPasswordStorage(This,vPasswordStorage) ) 

#define ICABookTools_CreateAccessBook(This,bstrFileName,pbstrGUID)	\
    ( (This)->lpVtbl -> CreateAccessBook(This,bstrFileName,pbstrGUID) ) 

#define ICABookTools_ViewArticle(This,pNodeDisp,nSeconds)	\
    ( (This)->lpVtbl -> ViewArticle(This,pNodeDisp,nSeconds) ) 

#define ICABookTools_SelectNodes(This,pNodesDisp,pInitSelectedNodesDisp,ppSelectedNodesDisp)	\
    ( (This)->lpVtbl -> SelectNodes(This,pNodesDisp,pInitSelectedNodesDisp,ppSelectedNodesDisp) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __ICABookTools_INTERFACE_DEFINED__ */



#ifndef __CyberArticleBookToolsLib_LIBRARY_DEFINED__
#define __CyberArticleBookToolsLib_LIBRARY_DEFINED__

/* library CyberArticleBookToolsLib */
/* [helpstring][version][uuid] */ 


EXTERN_C const IID LIBID_CyberArticleBookToolsLib;

EXTERN_C const CLSID CLSID_CABookTools;

#ifdef __cplusplus

class DECLSPEC_UUID("50DF085B-A406-42A2-8DDE-B98CA5820C37")
CABookTools;
#endif
#endif /* __CyberArticleBookToolsLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 

unsigned long             __RPC_USER  VARIANT_UserSize(     unsigned long *, unsigned long            , VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserMarshal(  unsigned long *, unsigned char *, VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); 
void                      __RPC_USER  VARIANT_UserFree(     unsigned long *, VARIANT * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


