Deutsch | English | Español | Français |
Italiano | 日本語 | 한국어 | Português |
Pусский | 简体中文 | 繁體中文 |
Retrieves a service interface.
Syntax
HRESULT GetService(
[in] REFGUID guidService,
[in] REFIID riid,
[out] LPVOID *ppvObject
);
Parameters
- guidService [in]
-
The service identifier (SID) of the service. For a list of service identifiers, see Service Interfaces.
- riid [in]
-
The interface identifier (IID) of the interface being requested.
- ppvObject [out]
-
Receives the interface pointer. The caller must release the interface.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
The object does not support the service. |
Requirements
Minimum supported client |
Windows Vista [desktop apps | UWP apps] |
---|---|
Minimum supported server |
Windows Server 2008 [desktop apps | UWP apps] |
Header |
|
Library |
|
See also