Nicholas Brower 1ae3f0b230 Merged PR 4822: "msdate update (generated from most recent commit date)"
"msdate update (generated from most recent commit date)"
2017-12-05 22:36:05 +00:00

1.9 KiB

title, description, ms.assetid, ms.author, ms.topic, ms.prod, ms.technology, author, ms.date
title description ms.assetid ms.author ms.topic ms.prod ms.technology author ms.date
ICSPValidate ICSPValidate b0993f2d-6269-412f-a329-af25fff34ca2 maricia article w10 windows nickbrower 06/26/2017

ICSPValidate

This interface is optional. It is called by ConfigManager2 as it batches commands before transactioning begins. This allows the configuration service provider to validate the node before performing specific actions. It is generally only used for configuration service providers that need to expose UI.

interface ICSPValidate : IUnknown
{
    HRESULT ValidateAdd([in] IConfigNodeState* pNodeState,
                        [in] IConfigManager2URI* puriChild, 
                        [in] CFG_DATATYPE DataType,
                        [in] VARIANT varValue);
    HRESULT ValidateCopy([in] IConfigNodeState* pNodeState, 
                         [in] IConfigManager2URI* puriDestination);
    HRESULT ValidateDeleteChild([in] IConfigNodeState* pNodeState, 
                                [in] IConfigManager2URI* puriChild);
    HRESULT ValidateClear([in] IConfigNodeState* pNodeState);
    HRESULT ValidateExecute([in] IConfigNodeState* pNodeState, 
                            [in] VARIANT varUserData);
    HRESULT ValidateMove([in] IConfigNodeState* pNodeState, 
                         [in] IConfigManager2URI* puriDestination);
    HRESULT ValidateSetValue([in] IConfigNodeState* pNodeState, 
                             [in] VARIANT varValue);
    HRESULT ValidateSetProperty([in] IConfigNodeState* pNodeState, 
                                [in] REFGUID guidProperty, 
                                [in] VARIANT varValue);
    HRESULT ValidateDeleteProperty([in] IConfigNodeState* pNodeState, 
                                   [in] REFGUID guidProperty);

Create a custom configuration service provider