The IProgram::GetCategories method, in Configuration Manager, gets all the categories to which the program belongs.

[IDL]
HRESULT GetCategories(
	[out, retval] VARIANT* pvarCategories
);

Parameters

pvarCategories


Data type: VARIANTQualifiers: [out, retval]Pointer to a variant containing a BSTR array of the text names of all the categories to which the program belongs.

Return Values

An HRESULT code. Possible values include, but are not limited to, the following:

S_OK


The method succeeded.

Remarks

This method should be used to group programs based on what categories they are part of.

Requirements

UIResource.dll.

Runtime Requirements

Development Requirements

See Also

Reference

Program Class


Send comments about this topic to Microsoft.