www.pudn.com > TVToolbar_demo > LibHeader.h


// LibHeader.h : header file 
// 
// Sink Library  for Sinking Running Instances of Internet Explorer 
// 
//////////////////////////////////////////////////////////////////// 
/************************************************************** 
**        __                                          __ 
**     __/_/__________________________________________\_\__ 
**  __|_                                                  |__ 
** (___O)       William SerGio & Co., Inc.               (O___) 
**(_____O)	    www.codearchive.com/~sergio			    (O_____) 
**(_____O)		Author:	Bill SerGio				        (O_____) 
** (__O)		                    					 (O__) 
**    |___________________________________________________| 
****************************************************************/ 
/* 
 * (C) Copyright 1997-1999 by William SerGio, All Rights Reserved Worldwide. 
 * 20547 Old Cutler Road, PMB #222, Miami, FL 33189 
 * www.codearchive.com/~sergio   sergio@codearchive.com  (305)233-7654 
 * 
 *    This code/software may NOT be used for any purpose whatsoever by any government, 
 *    federal agency, or, any employee or agent of any government or federal agency.  
 *    This software is not designed or intended for use in on-line control of aircraft, 
 *    air traffic, aircraft navigation or aircraft communications; or in design,  
 *    construction, operation or maintenance of any nuclear facility. Licensee  
 *    represents and warrants that it will not use or redistribute the Software for  
 *    such purposes. 
 * 
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR FOR EDUCATIONAL PURPOSES ONLY, 
 * 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS, 
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION), 
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
 * SUCH DAMAGE. 
 */ 
 
#include          // MFC core and standard components 
#include          // MFC extensions 
#include         // MFC Automation classes 
#include 		// MFC support for Internet Explorer 4 Common Controls 
 
#include  
#pragma warning (disable:4146) 
#pragma warning (disable:4192) 
 
#import "mshtml.tlb"   
#import "shdocvw.dll"   
 // The debugger can't handle symbols more than 255 characters long. 
// STL often creates symbols longer than that. 
#pragma warning(disable:4786) // When symbols are longer than 255 characters, the warning is disabled. 
#include  
#pragma warning(disable:4097) // typedef-name 'istream' used as synonym for class-name 'basic_istream >' 
#pragma warning(disable:4018) // signed/unsigned mismatch 
#pragma warning(disable:4100) // unreferenced formal parameter 
#pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned 
#pragma warning(disable:4238) // nonstandard extension used : class rvalue used as lvalue 
#pragma warning(disable:4244) // conversion from 'const int' to 'char', possible loss of data 
#pragma warning(disable:4663) // C++ language change: to explicitly specialize class template 'char_traits' use the following syntax: template<> struct char_traits ... 
#pragma warning(disable:4511) // copy constructor could not be generated 
#pragma warning(disable:4512) // assignment operator could not be generated 
#pragma warning(disable:4245) // conversion from 'const int' to 'const unsigned int', signed/unsigned mismatch 
#pragma warning(disable:4505) // unreferenced local function has been removed 
#pragma warning(disable:4710) // function '...' not expanded 
#pragma warning(disable:4711) // automatic inline selected 
 
  
#include  
#include  
#include "afxdisp.h" 
#include "Mshtml.h" 
#import   
#include  
#include  
#include "AFXHTML.H" 
#include  
#pragma  comment( lib , "winmm") 
 
#include "Shlwapi.h" 
#pragma  comment( lib , "Shlwapi") 
//#include