The TWUFindPackage function returns a pointer to package information by name. You can use this function if you are interested in a specific package.

TWUPackageData * TWUFindPackage(
    TWUHANDLE hSession,
    const TCHAR *pszPackageName

Delphi version:

function TWUFindPackage(
    hSession: TWUHANDLE;
    pszPackageName: PTCHAR
): PTWUPackageData;


[Input] Handle to an open TWU session.
[Input] Name of the package to find.

Return value

If the function succeeds, it returns a pointer to the corresponding package information. If the package cannot be found or if an error occurs, the function returns NULL.