TWUGetPackage
The TWUGetPackage function returns a pointer to package information by index. You can use this function to enumerate all available packages.
TWUPackageData * TWUGetPackage(
TWUHANDLE hSession,
UINT uIndex
);
Delphi version:
function TWUGetPackage(
hSession: TWUHANDLE;
uIndex: UINT
): PTWUPackageData;
Parameters
- hSession
- [Input] Handle to an open TWU session.
- uIndex
- [Input] Index of the desired package. The valid package indices run from 0 to TWUGetPackageCount() - 1.
Return value
If the function succeeds, it returns a pointer to the corresponding package information. If uIndex is invalid or if an error occurs, the function returns NULL.