MCPcopy Index your code
hub / github.com/RustPython/RustPython / locator_connect_server

Function locator_connect_server

crates/vm/src/stdlib/_wmi.rs:125–159  ·  view source on GitHub ↗
(
        this: *mut c_void,
        network_resource: *const u16,
        user: *const u16,
        password: *const u16,
        locale: *const u16,
        security_flags: i32,
        authority: *

Source from the content-addressed store, hash-verified

123 /// IWbemLocator::ConnectServer (vtable index 3)
124 #[allow(clippy::too_many_arguments)]
125 pub unsafe fn locator_connect_server(
126 this: *mut c_void,
127 network_resource: *const u16,
128 user: *const u16,
129 password: *const u16,
130 locale: *const u16,
131 security_flags: i32,
132 authority: *const u16,
133 ctx: *mut c_void,
134 services: *mut *mut c_void,
135 ) -> HRESULT {
136 let vtable = *(this as *const *const usize);
137 let method: unsafe extern "system" fn(
138 *mut c_void,
139 *const u16,
140 *const u16,
141 *const u16,
142 *const u16,
143 i32,
144 *const u16,
145 *mut c_void,
146 *mut *mut c_void,
147 ) -> HRESULT = core::mem::transmute(*vtable.add(3));
148 method(
149 this,
150 network_resource,
151 user,
152 password,
153 locale,
154 security_flags,
155 authority,
156 ctx,
157 services,
158 )
159 }
160
161 /// IWbemServices::ExecQuery (vtable index 20)
162 pub unsafe fn services_exec_query(

Callers 1

query_thread_implFunction · 0.85

Calls 2

methodFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected