Sent to a WIMMessageCallback function to enable the caller to prevent a file or a directory from being captured or applied.

WIM_MSG_PROCESS

  wParam = (PWSTR) pszFullPath;
  lParam = (PBOOL) pfProcessFile;

Parameters

wParam

[in] A pointer to a null-terminated string, containing the full file path of the file or the directory to be captured or applied.

lParam

[in] A pointer to a Boolean value that determines whether the file or the directory must be captured or applied. To prevent a file or a directory from being captured or applied, set the contents of this parameter to zero, and then return WIM_MSG_SUCCESS from the callback function.

Return Value

To cancel an imaging operation that is in progress, return WIM_MSG_ABORT_IMAGE from the callback function. Otherwise, return WIM_MSG_SUCCESS.

See Also