You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// File: verify.hxx
|
|
//
|
|
// Synopsis: Various verification functions
|
|
//
|
|
// History: 28-Jun-95 MikeW Created
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#ifndef _VERIFY_HXX_
|
|
#define _VERIFY_HXX_
|
|
|
|
//
|
|
// BOGUS_INTERFACE is a non-NULL pointer but illegal that can be used to
|
|
// initialize interface pointers. It is useful for checking to see if a call
|
|
// properly set the out param to NULL on an error
|
|
//
|
|
|
|
#define BOGUS_INTERFACE ((IUnknown *) 1)
|
|
|
|
//
|
|
// Misc. prototypes
|
|
//
|
|
|
|
void ReleaseInterface(LPUNKNOWN *ppUnknown);
|
|
HRESULT GetInterface(IUnknown *pObject, REFIID riid, PVOID *ppInterface);
|
|
|
|
HRESULT VerifyResult(HRESULT hrCheck, HRESULT hrExpected);
|
|
BOOL VerifyInterfaceExists(IUnknown *pObject, IID iid);
|
|
BOOL VerifyInterfaceDoesntExist(IUnknown *pObject, IID iid);
|
|
BOOL VerifyObjectIdentity(IUnknown *pObject, IID iid);
|
|
HRESULT VerifyResultAndPointer(
|
|
HRESULT hrCheck,
|
|
HRESULT hrExpected,
|
|
void *pUnknown);
|
|
|
|
#endif // _VERIFY_HXX_
|