> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IXtfDeployCallback::OnDeployChangeEvaluation

> IXtfDeployCallback::OnDeployChangeEvaluation

# IXtfDeployCallback::OnDeployChangeEvaluation

Callback invoked when evaluating which files need to be transferred or deleted.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
public:
HRESULT OnDeployChangeEvaluation(
         ULONGLONG ullFilesProcessed,
         ULONGLONG ullTotalFiles
)  
```

<a id="parametersSection" />

### Parameters

*ullFilesProcessed*\
Type: ULONGLONG

The number of files that have been evaluated so far.

*ullTotalFiles*\
Type: ULONGLONG

The total number of files to be evaluated.

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns `S_OK` to continue deployment, or an HRESULT error code to cancel the deployment.

<a id="remarksSection" />

## Remarks

This callback is invoked when the deployment system is evaluating which files need to be deployed to the console or deleted from the console. You can use this callback to update a progress indicator. For more information about how files are evaluated and when callbacks are invoked during the deployment process, see [IXtfDeployCallback Interface](/reference/tools/xtf/xtfapplication/classes/IXtfDeployCallback/ixtfdeploycallback-xtfapplication-xbox-microsoft-t).

As with the other callbacks for `IXtfDeployCallback`, the deployment process continues if this callback returns `S_OK`. If this callback returns any `HRESULT` error code, then the deployment process is canceled immediately. Files that have already been transferred or deleted remain as they are, and partially transferred files are closed in their truncated form. Another deployment must be completed to ensure that all files on the console are complete and up to date.

If you are deploying a game or app that has not been registered on the target console, then all files must be deployed, and this callback will not be invoked at all.

<a id="requirementsSection" />

## Requirements

**Header:** xtfapplication.h

**Library:** xtfapplication.lib

**Supported platforms:** Windows (for XBOX console tools)

<a id="seealsoSection" />

## See also

[IXtfDeployCallback Interface](/reference/tools/xtf/xtfapplication/classes/IXtfDeployCallback/ixtfdeploycallback-xtfapplication-xbox-microsoft-t)\
[XtfApplication](/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n)
