Skip to content

Latest commit

 

History

History
113 lines (97 loc) · 3.73 KB

nc-resapi-pset_resource_status_routine_ex.md

File metadata and controls

113 lines (97 loc) · 3.73 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NC:resapi.PSET_RESOURCE_STATUS_ROUTINE_EX
PSET_RESOURCE_STATUS_ROUTINE_EX (resapi.h)
The PSET_RESOURCE_STATUS_ROUTINE_EX callback function is called to update the status of a resource. (PSET_RESOURCE_STATUS_ROUTINE_EX)
PSET_RESOURCE_STATUS_ROUTINE_EX
PSET_RESOURCE_STATUS_ROUTINE_EX callback function [Failover Cluster]
SetResourceStatusEx
SetResourceStatusEx callback
SetResourceStatusEx callback function [Failover Cluster]
mscs.setresourcestatusex
resapi/PSET_RESOURCE_STATUS_ROUTINE_EX
resapi/SetResourceStatusEx
mscs\setresourcestatusex.htm
MsCS
3733F912-9D43-489B-91D8-7128D0F5D1A4
08/03/2022
PSET_RESOURCE_STATUS_ROUTINE_EX, PSET_RESOURCE_STATUS_ROUTINE_EX callback function [Failover Cluster], SetResourceStatusEx, SetResourceStatusEx callback, SetResourceStatusEx callback function [Failover Cluster], mscs.setresourcestatusex, resapi/PSET_RESOURCE_STATUS_ROUTINE_EX, resapi/SetResourceStatusEx
resapi.h
Windows
None supported
Windows Server 2012
Windows
19H1
PSET_RESOURCE_STATUS_ROUTINE_EX
resapi/PSET_RESOURCE_STATUS_ROUTINE_EX
c++
APIRef
kbSyntax
UserDefined
ResApi.h
SetResourceStatusEx

PSET_RESOURCE_STATUS_ROUTINE_EX callback function

-description

Called to update the status of a resource. The PSET_RESOURCE_STATUS_ROUTINE_EX type defines a pointer to this function.

-parameters

-param ResourceHandle

A handle to the resource to be updated. The ResourceHandle parameter should contain the same handle that is used for the ResourceHandle parameter in the OpenV2 entry point for this resource.

-param ResourceStatus

A pointer to a RESOURCE_STATUS_EX structure that contains information about the resource's state.

-returns

One of the following values of the RESOURCE_EXIT_STATE enumeration.

Return code/value Description
ResourceExitStateContinue
0
The resource has not been terminated. Worker threads can continue OnlineV2 and OfflineV2 operations for the resource.
ResourceExitStateTerminate
1
The resource has been terminated. Callers should end OnlineV2 or OfflineV2 operations and immediately terminate all worker threads that are assigned to the resource.

-see-also

Resource DLL Callback Functions