PRESUTIL_DUP_PARAMETER_BLOCK callback function

Performs a member-wise copy of the data from one parameter block to another.

Syntax

PRESUTIL_DUP_PARAMETER_BLOCK PresutilDupParameterBlock;

DWORD PresutilDupParameterBlock(
  OUT LPBYTE pOutParams,
  IN const LPBYTE pInParams,
  IN const PRESUTIL_PROPERTY_ITEM pPropertyTable
)
{...}

Parameters

pOutParams

Pointer to the duplicated parameter block.

pInParams

Pointer to the original parameter block.

pPropertyTable

Pointer to an array of RESUTIL_PROPERTY_ITEM structures describing properties in the original parameter block.

Return Value

If the operation succeeds, the function returns ERROR_SUCCESS.

If the operation fails, the function returns a system error code.

Remarks

ResUtilDupParameterBlock copies data only for parameter block members referenced in the pPropertyTable input parameter. If a variable in the input parameter block is a pointer, memory for the data is allocated with the function LocalAlloc. You should deallocate this memory by calling either LocalFree for each pointer variable in the output parameter block or ResUtilFreeParameterBlock. Make sure that you deallocate memory whether ResUtilDupParameterBlock succeeds or fails. For more information, see Using Parameter Blocks and Using Lists and Tables.

Requirements

   
Windows version None supported Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header resapi.h

See Also

RESUTIL_PROPERTY_ITEM

ResUtilFreeParameterBlock