The IUIResourceMgr::GetProgram method, in Configuration Manager, gets the Program Class object for a particular program.
[IDL] HRESULT GetProgram( BSTR sProgramId, BSTR sPackageId, IProgram** ppProgram );
- Data type: BSTRQualifiers: [in]ID of the program to retrieve.
- Data type: BSTRQualifiers: [in]ID of the package for the program to retrieve.
- Data type: IProgramQualifiers: [out, retval]Pointer to a Program Class object for the requested program.
An HRESULT code. Possible values include, but are not limited to, the following:
- The method succeeded.
This method can be called only in the context of the user who is currently logged on to the client.
For more information, see Configuration Manager Client Runtime Requirements.
For more information, see Configuration Manager Client Development Requirements.
Send comments about this topic to Microsoft.