Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Retrieves the number of partitions in which a specified component is installed.
Syntax
HRESULT GetComponentVersionCount(
[in] BSTR bstrCLSIDOrProgID,
[out, retval] long *plVersionCount
);
Parameters
[in] bstrCLSIDOrProgID
The class ID or program ID of the component.
[out, retval] plVersionCount
The number of different partitions in which the component is installed.
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | comadmin.h |