wine/include/wmiutils.idl

197 lines
4.7 KiB
Plaintext
Raw Normal View History

/*
* Copyright 2012 Hans Leidekker for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
import "oaidl.idl";
interface IWbemPath;
interface IWbemPathKeyList;
[
local,
object,
uuid(9ae62877-7544-4bb0-aa26-a13824659ed6)
]
interface IWbemPathKeyList : IUnknown
{
HRESULT GetCount(
[out] ULONG *puKeyCount);
HRESULT SetKey(
[in,string] LPCWSTR wszName,
[in] ULONG uFlags,
[in] ULONG uCimType,
[in] LPVOID pKeyVal);
HRESULT SetKey2(
[in,string] LPCWSTR wszName,
[in] ULONG uFlags,
[in] ULONG uCimType,
[in] VARIANT *pKeyVal);
HRESULT GetKey(
[in] ULONG uKeyIx,
[in] ULONG uFlags,
[in,out] ULONG *puNameBufSize,
[in,out] LPWSTR pszKeyName,
[in,out] ULONG *puKeyValBufSize,
[in,out] LPVOID pKeyVal,
[out] ULONG *puApparentCimType);
HRESULT GetKey2(
[in] ULONG uKeyIx,
[in] ULONG uFlags,
[in,out] ULONG *puNameBufSize,
[in,out] LPWSTR pszKeyName,
[in,out] VARIANT *pKeyValue,
[out] ULONG *puApparentCimType);
HRESULT RemoveKey(
[in,string] LPCWSTR wszName,
[in] ULONG uFlags);
HRESULT RemoveAllKeys(
[in] ULONG uFlags);
HRESULT MakeSingleton([in] boolean bSet);
HRESULT GetInfo(
[in] ULONG uRequestedInfo,
[out] ULONGLONG *puResponse);
HRESULT GetText(
[in] long lFlags,
[in,out] ULONG *puBuffLength,
[in,out,string] LPWSTR pszText);
};
cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
cpp_quote("#undef GetClassName")
cpp_quote("#endif")
[
local,
object,
uuid(3bc15af2-736c-477e-9e51-238af8667dcc)
]
interface IWbemPath : IUnknown
{
HRESULT SetText(
[in] ULONG uMode,
[in] LPCWSTR pszPath);
HRESULT GetText(
[in] long lFlags,
[in,out] ULONG *puBuffLength,
[in,out,string] LPWSTR pszText);
HRESULT GetInfo(
[in] ULONG uRequestedInfo,
[out] ULONGLONG *puResponse);
HRESULT SetServer(
[in,string] LPCWSTR Name);
HRESULT GetServer(
[in,out] ULONG *puNameBufLength,
[in,out,string] LPWSTR pName);
HRESULT GetNamespaceCount(
[out] ULONG *puCount);
HRESULT SetNamespaceAt(
[in] ULONG uIndex,
[in,string] LPCWSTR pszName);
HRESULT GetNamespaceAt(
[in] ULONG uIndex,
[in,out] ULONG *puNameBufLength,
[in,out,string] LPWSTR pName);
HRESULT RemoveNamespaceAt(
[in] ULONG uIndex);
HRESULT RemoveAllNamespaces();
HRESULT GetScopeCount(
[out] ULONG *puCount);
HRESULT SetScope(
[in] ULONG uIndex,
[in] LPWSTR pszClass);
HRESULT SetScopeFromText(
[in] ULONG uIndex,
[in] LPWSTR pszText);
HRESULT GetScope(
[in] ULONG uIndex,
[in,out] ULONG *puClassNameBufSize,
[in,out] LPWSTR pszClass,
[out] IWbemPathKeyList **pKeyList);
HRESULT GetScopeAsText(
[in] ULONG uIndex,
[in,out] ULONG *puTextBufSize,
[in,out] LPWSTR pszText);
HRESULT RemoveScope(
[in] ULONG uIndex);
HRESULT RemoveAllScopes();
HRESULT SetClassName(
[in,string] LPCWSTR Name);
HRESULT GetClassName(
[in,out] ULONG *puBuffLength,
[in,out,string] LPWSTR pszName);
HRESULT GetKeyList(
[out] IWbemPathKeyList **pOut);
HRESULT CreateClassPart(
[in] long lFlags,
[in,string] LPCWSTR Name);
HRESULT DeleteClassPart(
[in] long lFlags);
BOOL IsRelative(
[in,string] LPWSTR wszMachine,
[in,string] LPWSTR wszNamespace);
BOOL IsRelativeOrChild(
[in,string] LPWSTR wszMachine,
[in,string] LPWSTR wszNamespace,
[in] long lFlags);
BOOL IsLocal(
[in,string] LPCWSTR wszMachine);
BOOL IsSameClassName(
[in,string] LPCWSTR wszClass);
};
[
uuid(cf4cc405-e2c5-4ddd-b3ce-5e7582d8c9fa)
]
coclass WbemDefPath
{
interface IWbemPath;
};