IWbemPath::GetServer method (wmiutils.h)
The IWbemPath::GetServer method retrieves the server portion of the path.
Syntax
HRESULT GetServer(
[in, out] ULONG *puNameBufLength,
[in, out] LPWSTR pName
);
Parameters
[in, out] puNameBufLength
Upon input, this is the size in characters of the buffer pointed to by pszName. Upon return, this is the number of characters in the server name, including the NULL terminator.
[in, out] pName
Server name.
Return value
This method returns the following values.
Remarks
This method can be used to determine how big a buffer is needed for pszName. This is done by passing in a NULL pointer for the buffer, setting puNameBufLength to 0 (zero) and then making the call. Upon return, puNameBufLength indicates how large a buffer is needed for pszName and its terminating NULL character.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | wmiutils.h |
Library | Wbemuuid.lib |
DLL | Wmiutils.dll |