Click here to Skip to main content
15,891,375 members
Articles / Programming Languages / VBScript

Calling scripts within scripts

Rate me:
Please Sign up or sign in to vote.
4.40/5 (5 votes)
29 Jan 2000CPOL 157.9K   1K   43  
A Component for calling a URL from an ASP script and reading back the output
/* this ALWAYS GENERATED file contains the definitions for the interfaces */


/* File created by MIDL compiler version 5.01.0164 */
/* at Mon Jan 31 01:47:37 2000
 */
/* Compiler settings for G:\Dokumente\Projekte\AspRetrieve\src\app\aspretrieve.idl:
    Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
*/
//@@MIDL_FILE_HEADING(  )


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 440
#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 __aspretrieve_h__
#define __aspretrieve_h__

#ifdef __cplusplus
extern "C"{
#endif 

/* Forward Declarations */ 

#ifndef __IRetriever_FWD_DEFINED__
#define __IRetriever_FWD_DEFINED__
typedef interface IRetriever IRetriever;
#endif 	/* __IRetriever_FWD_DEFINED__ */


#ifndef __Retriever_FWD_DEFINED__
#define __Retriever_FWD_DEFINED__

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

#endif 	/* __Retriever_FWD_DEFINED__ */


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

void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 

#ifndef __IRetriever_INTERFACE_DEFINED__
#define __IRetriever_INTERFACE_DEFINED__

/* interface IRetriever */
/* [unique][helpstring][dual][uuid][object] */ 


EXTERN_C const IID IID_IRetriever;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("EBE6FF32-A1A0-11D3-89A0-0050046251A5")
    IRetriever : public IDispatch
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE OnStartPage( 
            /* [in] */ IUnknown __RPC_FAR *piUnk) = 0;
        
        virtual HRESULT STDMETHODCALLTYPE OnEndPage( void) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Retrieve( 
            BSTR url,
            long method,
            BSTR payload,
            BSTR username,
            BSTR password,
            /* [retval][out] */ BSTR __RPC_FAR *pVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RetrieveEx( 
            BSTR referer,
            BSTR url,
            long method,
            BSTR payload,
            BSTR username,
            BSTR password,
            /* [retval][out] */ BSTR __RPC_FAR *pVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UrlEncode( 
            BSTR url,
            /* [retval][out] */ BSTR __RPC_FAR *pVal) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IRetrieverVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
            IRetriever __RPC_FAR * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
        
        ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
            IRetriever __RPC_FAR * This);
        
        ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
            IRetriever __RPC_FAR * This);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
            IRetriever __RPC_FAR * This,
            /* [out] */ UINT __RPC_FAR *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
            IRetriever __RPC_FAR * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
            IRetriever __RPC_FAR * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
            IRetriever __RPC_FAR * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
            /* [out] */ VARIANT __RPC_FAR *pVarResult,
            /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
            /* [out] */ UINT __RPC_FAR *puArgErr);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *OnStartPage )( 
            IRetriever __RPC_FAR * This,
            /* [in] */ IUnknown __RPC_FAR *piUnk);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *OnEndPage )( 
            IRetriever __RPC_FAR * This);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_Retrieve )( 
            IRetriever __RPC_FAR * This,
            BSTR url,
            long method,
            BSTR payload,
            BSTR username,
            BSTR password,
            /* [retval][out] */ BSTR __RPC_FAR *pVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_RetrieveEx )( 
            IRetriever __RPC_FAR * This,
            BSTR referer,
            BSTR url,
            long method,
            BSTR payload,
            BSTR username,
            BSTR password,
            /* [retval][out] */ BSTR __RPC_FAR *pVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_UrlEncode )( 
            IRetriever __RPC_FAR * This,
            BSTR url,
            /* [retval][out] */ BSTR __RPC_FAR *pVal);
        
        END_INTERFACE
    } IRetrieverVtbl;

    interface IRetriever
    {
        CONST_VTBL struct IRetrieverVtbl __RPC_FAR *lpVtbl;
    };

    

#ifdef COBJMACROS


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

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

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


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

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

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

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


#define IRetriever_OnStartPage(This,piUnk)	\
    (This)->lpVtbl -> OnStartPage(This,piUnk)

#define IRetriever_OnEndPage(This)	\
    (This)->lpVtbl -> OnEndPage(This)

#define IRetriever_get_Retrieve(This,url,method,payload,username,password,pVal)	\
    (This)->lpVtbl -> get_Retrieve(This,url,method,payload,username,password,pVal)

#define IRetriever_get_RetrieveEx(This,referer,url,method,payload,username,password,pVal)	\
    (This)->lpVtbl -> get_RetrieveEx(This,referer,url,method,payload,username,password,pVal)

#define IRetriever_get_UrlEncode(This,url,pVal)	\
    (This)->lpVtbl -> get_UrlEncode(This,url,pVal)

#endif /* COBJMACROS */


#endif 	/* C style interface */



HRESULT STDMETHODCALLTYPE IRetriever_OnStartPage_Proxy( 
    IRetriever __RPC_FAR * This,
    /* [in] */ IUnknown __RPC_FAR *piUnk);


void __RPC_STUB IRetriever_OnStartPage_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


HRESULT STDMETHODCALLTYPE IRetriever_OnEndPage_Proxy( 
    IRetriever __RPC_FAR * This);


void __RPC_STUB IRetriever_OnEndPage_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IRetriever_get_Retrieve_Proxy( 
    IRetriever __RPC_FAR * This,
    BSTR url,
    long method,
    BSTR payload,
    BSTR username,
    BSTR password,
    /* [retval][out] */ BSTR __RPC_FAR *pVal);


void __RPC_STUB IRetriever_get_Retrieve_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IRetriever_get_RetrieveEx_Proxy( 
    IRetriever __RPC_FAR * This,
    BSTR referer,
    BSTR url,
    long method,
    BSTR payload,
    BSTR username,
    BSTR password,
    /* [retval][out] */ BSTR __RPC_FAR *pVal);


void __RPC_STUB IRetriever_get_RetrieveEx_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IRetriever_get_UrlEncode_Proxy( 
    IRetriever __RPC_FAR * This,
    BSTR url,
    /* [retval][out] */ BSTR __RPC_FAR *pVal);


void __RPC_STUB IRetriever_get_UrlEncode_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __IRetriever_INTERFACE_DEFINED__ */



#ifndef __ASPRETRIEVELib_LIBRARY_DEFINED__
#define __ASPRETRIEVELib_LIBRARY_DEFINED__

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


EXTERN_C const IID LIBID_ASPRETRIEVELib;

EXTERN_C const CLSID CLSID_Retriever;

#ifdef __cplusplus

class DECLSPEC_UUID("EBE6FF33-A1A0-11D3-89A0-0050046251A5")
Retriever;
#endif
#endif /* __ASPRETRIEVELib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

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

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer Zeta Software GmbH
Germany Germany
Uwe does programming since 1989 with experiences in Assembler, C++, MFC and lots of web- and database stuff and now uses ASP.NET and C# extensively, too. He has also teached programming to students at the local university.

➡️ Give me a tip 🙂

In his free time, he does climbing, running and mountain biking. In 2012 he became a father of a cute boy and in 2014 of an awesome girl.

Some cool, free software from us:

Windows 10 Ereignisanzeige  
German Developer Community  
Free Test Management Software - Intuitive, competitive, Test Plans.  
Homepage erstellen - Intuitive, very easy to use.  
Offline-Homepage-Baukasten

Comments and Discussions