home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
vc98
/
include
/
convengn.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-25
|
2KB
|
55 lines
// --convengn.h-----------------------------------------------------------------
//
// Defines main conversion engine class.
//
// Copyright 1986 - 1998 Microsoft Corporation. All Rights Reserved.
//
// -----------------------------------------------------------------------------
#if !defined(_CONVENGN_H)
#define _CONVENGN_H
//$$--CEDKConvEng---------------------------------------------------------------
//
// DESCRIPTION: Conversion engine class. Performs all convresions.
//
// ---------------------------------------------------------------------------
class CEDKConvEng
{
public:
CEDKConvEng() ;
HRESULT HrEDKInitialize( // RETURNS: HRESULT
IN HANDLE hEventSource) ; // event source handle
HRESULT HrEDKConvert( // RETURNS: HRESULT
IN PEDKCNVENV pEnv,
IN LPCWSTR pszContentClass,
IN PVOID pContentIn,
OUT PVOID pContentOut,
OUT EDKCNVRES & crResult) ;
HRESULT HrEDKUninitialize( // RETURNS: HRESULT
) ;
protected:
// helper
HRESULT HrEDKAttemptConversion( // RETURNS: HRESULT
IN PEDKCNVENV pEnv,
IN LPCWSTR pszContentClass,
IN LPCWSTR pszConversionPoint,
IN PVOID pContentIn,
OUT PVOID pContentOut,
OUT EDKCNVRES & crResult) ;
CDllEntryPoint * m_pepConverter ; // current converter.
CEDKConvReg m_crRegistry ; // conversion registry.
HANDLE m_hEventSource ;
BOOL m_bFoundAtLeastOneAccept ;
} ;
#endif