XtfGetAumid

Gets the application model user ID at an index from a package information object.

Syntax

HRESULT XtfGetAumid(
         XtfPackageInfo packageInfo,
         UINT32 aumidIndex,
         PWSTR aumid,
         UINT32 *aumidBufferLength
)  

Parameters

packageInfo
Type: XtfPackageInfo 

[in] Information object for the package that was returned by XtfRegisterPackage.

aumidIndex
Type: UINT32 

[in] Index of the application model user ID in the package.

aumid
Type: PWSTR 

[out, optional] Application model user ID at the given index for the package.

aumidBufferLength
Type: UINT32 *

[in, out] Length of aumid buffer in WCHAR.

Return value

Type: HRESULT 

Returns S_OK if successful. Returns HRESULT_FROM_WIN32(ERROR_MORE_DATA) if aumid is not large enough and the required buffer length will be returned in aumidBufferLength.

Requirements

Header: Declared in XtfApi.h.

Library: Use XtfApi.lib.