/********************************************************
*                                                       *
*   Copyright (C) Microsoft. All rights reserved.       *
*                                                       *
********************************************************/


//-----------------------------------------------------------------------------
// File:			asynot.idl
//
// Contents: 		OLE DB interface definition
//
// Comments:
//
//-----------------------------------------------------------------------------

cpp_quote("#include <winapifamily.h>")

#pragma region Desktop Family
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")

#include "idlmulti.h"
//
    REMOTED_INTERFACE(0c733a96-2a1c-11ce-ade5-00aa0044773d)

interface IDBAsynchNotify : IUnknown {

	[local]
	HRESULT OnLowResource(
		[in] DB_DWRESERVE dwReserved
	);

	[call_as(OnLowResource)]
	HRESULT RemoteOnLowResource(
		[in] DB_DWRESERVE dwReserved
	);

	[local]
	HRESULT OnProgress(
		[in] HCHAPTER hChapter,
		[in] DBASYNCHOP eOperation,
		[in] DBCOUNTITEM ulProgress,
		[in] DBCOUNTITEM ulProgressMax,
		[in] DBASYNCHPHASE eAsynchPhase,
		[in, annotation("_In_opt_")] LPOLESTR pwszStatusText
	);

	[call_as(OnProgress)]
	HRESULT RemoteOnProgress(
		[in] HCHAPTER hChapter,
		[in] DBASYNCHOP eOperation,
		[in] DBCOUNTITEM ulProgress,
		[in] DBCOUNTITEM ulProgressMax,
		[in] DBASYNCHPHASE eAsynchPhase,
		[in,unique,string] LPOLESTR pwszStatusText
	);

	[local]
	HRESULT OnStop(
		[in] HCHAPTER hChapter,
		[in] DBASYNCHOP eOperation,
		[in] HRESULT hrStatus,
		[in, annotation("_In_opt_")] LPOLESTR pwszStatusText
	);

	[call_as(OnStop)]
	HRESULT RemoteOnStop(
		[in] HCHAPTER hChapter,
		[in] DBASYNCHOP eOperation,
		[in] HRESULT hrStatus,
		[in,unique,string] LPOLESTR pwszStatusText
	);

}

cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
#pragma endregion

