IWbemPath::GetText method (wmiutils.h)
The IWbemPath::GetText method returns a textual representation of a path that has previously been placed into a parser object.
HRESULT GetText(
[in] long lFlags,
[in, out] ULONG *puBuffLength,
[in, out] LPWSTR pszText
);
[in] lFlags
Flag which controls how the text is returned.
Obsolete. Do not use.
Returns the relative path, skips server and namespaces.
Returns the entire path, including server and namespace.
Returns only the server and namespace portion of the path. Ignores the class or key portion.
Returns only the namespace portion of the path.
Returns whatever was passed in using SetText method.
[in, out] puBuffLength
Caller sets this to the size of pszText. If the method is successful, it sets puBufferLength to the number of wide characters used, including the terminating null character.
[in, out] pszText
Textual representation of the path.
This method returns the following values.
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 |