Click here to Skip to main content
13,195,710 members (55,719 online)
Click here to Skip to main content


93 bookmarked
Posted 4 Sep 2002

Automated IE SaveAs MHTML

, 4 Sep 2002
This article demonstrates how to automate IE's Save As functionality
#pragma warning( disable: 4049 )  /* more than 64k source lines */

/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */

/* link this file in with the server and any clients */

 /* File created by MIDL compiler version 6.00.0347 */
/* at Sun Sep 01 20:20:32 2002
/* Compiler settings for Browser.odl:
    Os, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)

#if !defined(_M_IA64) && !defined(_M_AMD64)

#ifdef __cplusplus
extern "C"{

#include <rpc.h>
#include <rpcndr.h>


#ifndef INITGUID
#define INITGUID
#include <guiddef.h>
#include <guiddef.h>

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \

#else // !_MIDL_USE_GUIDDEF_

#ifndef __IID_DEFINED__
#define __IID_DEFINED__

typedef struct _IID
    unsigned long x;
    unsigned short s1;
    unsigned short s2;
    unsigned char  c[8];
} IID;

#endif // __IID_DEFINED__

typedef IID CLSID;

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}


MIDL_DEFINE_GUID(IID, LIBID_Browser,0x41B33A52,0x710C,0x11D3,0xBB,0x8B,0x00,0xC0,0x4F,0xA3,0x47,0x1C);

MIDL_DEFINE_GUID(IID, DIID_IBrowser,0x41B33A53,0x710C,0x11D3,0xBB,0x8B,0x00,0xC0,0x4F,0xA3,0x47,0x1C);

MIDL_DEFINE_GUID(CLSID, CLSID_Document,0x41B33A51,0x710C,0x11D3,0xBB,0x8B,0x00,0xC0,0x4F,0xA3,0x47,0x1C);


#ifdef __cplusplus

#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/

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.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Addicted to reverse engineering. At work, I am developing business intelligence software in a team of smart people (independent software vendor).

Need a fast Excel generation component? Try xlsgen.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171019.1 | Last Updated 5 Sep 2002
Article Copyright 2002 by Stephane Rodriguez.
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid