windows-nt/Source/XPSP1/NT/com/ole32/ole232/stdimpl/defutil.h
2020-09-26 16:20:57 +08:00

47 lines
1.6 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//+-------------------------------------------------------------------------
//
// 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