// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0 > or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT >, at your option.
// All files in the project carrying such notice may not be copied, modified, or distributed
// except according to those terms.
use ctypes::{c_long, c_void};
use shared::guiddef::REFIID;
use shared::minwindef::{BYTE, DWORD};
use shared::winerror::HRESULT;
use shared::wtypes::BSTR;
use um::unknwnbase::{IUnknown, IUnknownVtbl};
use um::wbemcli::{IWbemCallResult, IWbemContext, IWbemObjectSink, IWbemServices};
use um::winnt::{LPCWSTR, LPWSTR};
// extern RPC_IF_HANDLE __MIDL_itf_wbemtran_0000_0000_v0_0_c_ifspec;
// extern RPC_IF_HANDLE __MIDL_itf_wbemtran_0000_0000_v0_0_s_ifspec;
ENUM !{
enum WBEM_LOGIN_TYPE {
WBEM_FLAG_INPROC_LOGIN =
0 ,
WBEM_FLAG_LOCAL_LOGIN =
1 ,
WBEM_FLAG_REMOTE_LOGIN =
2 ,
WBEM_AUTHENTICATION_METHOD_MASK =
0 xf,
WBEM_FLAG_USE_MULTIPLE_CHALLENGES =
0 x10,
}}
pub type WBEM_128BITS = *
mut BYTE;
// EXTERN_C const IID LIBID_WbemTransports_v1;
// EXTERN_C const IID IID_IWbemTransport;
DEFINE_GUID!{IID_IWbemTransport,
0 x553fe584,
0 x2156,
0 x11d0,
0 xb6,
0 xae,
0 x00,
0 xaa,
0 x00,
0 x32,
0 x40,
0 xc7}
RIDL!{
#[ uuid(
0 x553fe584,
0 x2156,
0 x11d0,
0 xb6,
0 xae,
0 x00,
0 xaa,
0 x00,
0 x32,
0 x40,
0 xc7)]
interface IWbemTransport(IWbemTransportVtbl): IUnknown(IUnknownVtbl) {
fn Initialize() -> HRESULT,
}}
// EXTERN_C const IID IID_IWbemLevel1Login;
DEFINE_GUID!{IID_IWbemLevel1Login,
0 xf309ad18,
0 xd86a,
0 x11d0,
0 xa0,
0 x75,
0 x00,
0 xc0,
0 x4f,
0 xb6,
0 x88,
0 x20}
RIDL!{
#[ uuid(
0 xf309ad18,
0 xd86a,
0 x11d0,
0 xa0,
0 x75,
0 x00,
0 xc0,
0 x4f,
0 xb6,
0 x88,
0 x20)]
interface IWbemLevel1Login(IWbemLevel1LoginVtbl): IUnknown(IUnknownVtbl) {
fn EstablishPosition(
wszLocaleList: LPWSTR,
dwNumLocales: DWORD,
reserved: *
mut DWORD,
) -> HRESULT,
fn RequestChallenge(
wszNetworkResource: LPWSTR,
wszUser: LPWSTR,
Nonce: WBEM_128BITS,
) -> HRESULT,
fn WBEMLogin(
wszPreferredLocale: LPWSTR,
AccessToken: WBEM_128BITS,
lFlags: c_long,
pCtx: *
mut IWbemContext,
ppNamespace: *
mut *
mut IWbemServices,
) -> HRESULT,
fn NTLMLogin(
wszNetworkResource: LPWSTR,
wszPreferredLocale: LPWSTR,
lFlags: c_long,
pCtx: *
mut IWbemContext,
ppNamespace: *
mut *
mut IWbemServices,
) -> HRESULT,
}}
// EXTERN_C const IID IID_IWbemConnectorLogin;
DEFINE_GUID!{IID_IWbemConnectorLogin,
0 xd8ec9cb1,
0 xb135,
0 x4f10,
0 x8b,
0 x1b,
0 xc7,
0 x18,
0 x8b,
0 xb0,
0 xd1,
0 x86}
RIDL!{
#[ uuid(
0 xd8ec9cb1,
0 xb135,
0 x4f10,
0 x8b,
0 x1b,
0 xc7,
0 x18,
0 x8b,
0 xb0,
0 xd1,
0 x86)]
interface IWbemConnectorLogin(IWbemConnectorLoginVtbl): IUnknown(IUnknownVtbl) {
fn ConnectorLogin(
wszNetworkResource: LPWSTR,
wszPreferredLocale: LPWSTR,
lFlags: c_long,
pCtx: *
mut IWbemContext,
riid: REFIID,
pInterface: *
mut *
mut c_void,
) -> HRESULT,
}}
// EXTERN_C const IID IID_IWbemAddressResolution;
DEFINE_GUID!{IID_IWbemAddressResolution,
0 xf7ce2e12,
0 x8c90,
0 x11d1,
0 x9e,
0 x7b,
0 x00,
0 xc0,
0 x4f,
0 xc3,
0 x24,
0 xa8}
RIDL!{
#[ uuid(
0 xf7ce2e12,
0 x8c90,
0 x11d1,
0 x9e,
0 x7b,
0 x00,
0 xc0,
0 x4f,
0 xc3,
0 x24,
0 xa8)]
interface IWbemAddressResolution(IWbemAddressResolutionVtbl): IUnknown(IUnknownVtb
l) {
fn Resolve(
wszNamespacePath: LPWSTR,
wszAddressType: LPWSTR,
pdwAddressLength: *mut DWORD,
pabBinaryAddress: *mut *mut BYTE,
) -> HRESULT,
}}
DEFINE_GUID!{CLSID_WbemLevel1Login,
0 x8BC3F05E, 0 xD86B, 0 x11d0, 0 xA0, 0 x75, 0 x00, 0 xC0, 0 x4F, 0 xB6, 0 x88, 0 x20}
// class DECLSPEC_UUID("8BC3F05E-D86B-11d0-A075-00C04FB68820")
// WbemLevel1Login;
DEFINE_GUID!{CLSID_WbemLocalAddrRes,
0 xA1044801, 0 x8F7E, 0 x11d1, 0 x9E, 0 x7C, 0 x00, 0 xC0, 0 x4F, 0 xC3, 0 x24, 0 xA8}
// class DECLSPEC_UUID("A1044801-8F7E-11d1-9E7C-00C04FC324A8")
// WbemLocalAddrRes;
DEFINE_GUID!{CLSID_WbemUninitializedClassObject,
0 x7a0227f6, 0 x7108, 0 x11d1, 0 xad, 0 x90, 0 x00, 0 xc0, 0 x4f, 0 xd8, 0 xfd, 0 xff}
// class DECLSPEC_UUID("7a0227f6-7108-11d1-ad90-00c04fd8fdff")
// WbemUninitializedClassObject;
// EXTERN_C const IID IID_IWbemClientTransport;
DEFINE_GUID!{IID_IWbemClientTransport,
0 xf7ce2e11, 0 x8c90, 0 x11d1, 0 x9e, 0 x7b, 0 x00, 0 xc0, 0 x4f, 0 xc3, 0 x24, 0 xa8}
RIDL!{#[ uuid(0 xf7ce2e11, 0 x8c90, 0 x11d1, 0 x9e, 0 x7b, 0 x00, 0 xc0, 0 x4f, 0 xc3, 0 x24, 0 xa8)]
interface IWbemClientTransport(IWbemClientTransportVtbl): IUnknown(IUnknownVtbl) {
fn ConnectServer(
strAddressType: BSTR,
dwBinaryAddressLength: DWORD,
abBinaryAddress: *mut BYTE,
strNetworkResource: BSTR,
strUser: BSTR,
strPassword: BSTR,
strLocale: BSTR,
lSecurityFlags: c_long,
strAuthority: BSTR,
pCtx: *mut IWbemContext,
ppNamespace: *mut *mut IWbemServices,
) -> HRESULT,
}}
// EXTERN_C const IID IID_IWbemClientConnectionTransport;
DEFINE_GUID!{IID_IWbemClientConnectionTransport,
0 xa889c72a, 0 xfcc1, 0 x4a9e, 0 xaf, 0 x61, 0 xed, 0 x07, 0 x13, 0 x33, 0 xfb, 0 x5b}
RIDL!{#[ uuid(0 xa889c72a, 0 xfcc1, 0 x4a9e, 0 xaf, 0 x61, 0 xed, 0 x07, 0 x13, 0 x33, 0 xfb, 0 x5b)]
interface IWbemClientConnectionTransport(IWbemClientConnectionTransportVtbl):
IUnknown(IUnknownVtbl) {
fn Open(
strAddressType: BSTR,
dwBinaryAddressLength: DWORD,
abBinaryAddress: *mut BYTE,
strObject: BSTR,
strUser: BSTR,
strPassword: BSTR,
strLocale: BSTR,
lFlags: c_long,
pCtx: *mut IWbemContext,
riid: REFIID,
pInterface: *mut *mut c_void,
pCallRes: *mut *mut IWbemCallResult,
) -> HRESULT,
fn OpenAsync(
strAddressType: BSTR,
dwBinaryAddressLength: DWORD,
abBinaryAddress: *mut BYTE,
strObject: BSTR,
strUser: BSTR,
strPassword: BSTR,
strLocale: BSTR,
lFlags: c_long,
pCtx: *mut IWbemContext,
riid: REFIID,
pResponseHandler: *mut IWbemObjectSink,
) -> HRESULT,
fn Cancel(
lFlags: c_long,
pHandler: *mut IWbemObjectSink,
) -> HRESULT,
}}
DEFINE_GUID!{CLSID_WbemDCOMTransport,
0 xF7CE2E13, 0 x8C90, 0 x11d1, 0 x9E, 0 x7B, 0 x00, 0 xC0, 0 x4F, 0 xC3, 0 x24, 0 xA8}
// class DECLSPEC_UUID("F7CE2E13-8C90-11d1-9E7B-00C04FC324A8")
// WbemDCOMTransport;
// EXTERN_C const IID IID_IWbemConstructClassObject;
DEFINE_GUID!{IID_IWbemConstructClassObject,
0 x9ef76194, 0 x70d5, 0 x11d1, 0 xad, 0 x90, 0 x00, 0 xc0, 0 x4f, 0 xd8, 0 xfd, 0 xff}
RIDL!{#[ uuid(0 x9ef76194, 0 x70d5, 0 x11d1, 0 xad, 0 x90, 0 x00, 0 xc0, 0 x4f, 0 xd8, 0 xfd, 0 xff)]
interface IWbemConstructClassObject(IWbemConstructClassObjectVtbl): IUnknown(IUnknownVtbl) {
fn SetInheritanceChain(
lNumAntecedents: c_long,
awszAntecedents: *mut LPWSTR,
) -> HRESULT,
fn SetPropertyOrigin(
wszPropertyName: LPCWSTR,
lOriginIndex: c_long,
) -> HRESULT,
fn SetMethodOrigin(
wszMethodName: LPCWSTR,
lOriginIndex: c_long,
) -> HRESULT,
fn SetServerNamespace(
wszServer: LPCWSTR,
wszNamespace: LPCWSTR,
) -> HRESULT,
}}
// extern RPC_IF_HANDLE __MIDL_itf_wbemtran_0000_0008_v0_0_c_ifspec;
// extern RPC_IF_HANDLE __MIDL_itf_wbemtran_0000_0008_v0_0_s_ifspec;
Messung V0.5 in Prozent C=95 H=100 G=97
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-18)
¤
*© Formatika GbR, Deutschland