TWUFindPackage
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;
Parameters
- hSession
- [Input] Handle to an open TWU session.
- pszPackageName
- [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.