47 lines
1.6 KiB
C
47 lines
1.6 KiB
C
|
||
//+-------------------------------------------------------------------------
|
||
//
|
||
// Microsoft Windows
|
||
// Copyright (C) Microsoft Corporation, 1992 - 1993.
|
||
//
|
||
// File: defutil.h
|
||
//
|
||
// Contents: Declarations for utility functions used in the default
|
||
// handler and default link
|
||
//
|
||
// Classes:
|
||
//
|
||
// Functions:
|
||
//
|
||
// History: dd-mmm-yy Author Comment
|
||
// 20-Nov-93 alexgo 32bit port
|
||
//
|
||
//--------------------------------------------------------------------------
|
||
|
||
#if !defined( _DEFUTIL_H_ )
|
||
#define _DEFUTIL_H_
|
||
|
||
INTERNAL_(void) DuLockContainer(IOleClientSite FAR* pCS,
|
||
BOOL fLockNew,
|
||
BOOL FAR*pfLockCur);
|
||
INTERNAL DuSetClientSite(BOOL fRunning,
|
||
IOleClientSite FAR* pCSNew,
|
||
IOleClientSite FAR* FAR* ppCSCur,
|
||
BOOL FAR*pfLockCur);
|
||
INTERNAL_(void FAR*) DuCacheDelegate(IUnknown FAR** ppUnk,
|
||
REFIID iid,
|
||
LPVOID FAR* ppv,
|
||
IUnknown *pUnkOuter);
|
||
|
||
|
||
#define GET_FROM_REGDB(scode) \
|
||
(((scode == OLE_S_USEREG) || (scode == RPC_E_CANTPOST_INSENDCALL) || \
|
||
(scode == RPC_E_CANTCALLOUT_INASYNCCALL) || \
|
||
(scode == RPC_E_CANTCALLOUT_INEXTERNALCALL) || \
|
||
(scode == RPC_E_CANTCALLOUT_ININPUTSYNCCALL) || \
|
||
(scode == RPC_E_CALL_CANCELED) || (scode == RPC_E_CALL_REJECTED)) \
|
||
? TRUE : FALSE)
|
||
|
||
|
||
#endif // _DEFUTIL_H
|
||
|