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

Function services_exec_query

crates/vm/src/stdlib/_wmi.rs:162–180  ·  view source on GitHub ↗

IWbemServices::ExecQuery (vtable index 20)

(
        this: *mut c_void,
        query_language: *const u16,
        query: *const u16,
        flags: i32,
        ctx: *mut c_void,
        enumerator: *mut *mut c_void,
    )

Source from the content-addressed store, hash-verified

160
161 /// IWbemServices::ExecQuery (vtable index 20)
162 pub unsafe fn services_exec_query(
163 this: *mut c_void,
164 query_language: *const u16,
165 query: *const u16,
166 flags: i32,
167 ctx: *mut c_void,
168 enumerator: *mut *mut c_void,
169 ) -> HRESULT {
170 let vtable = *(this as *const *const usize);
171 let method: unsafe extern "system" fn(
172 *mut c_void,
173 *const u16,
174 *const u16,
175 i32,
176 *mut c_void,
177 *mut *mut c_void,
178 ) -> HRESULT = core::mem::transmute(*vtable.add(20));
179 method(this, query_language, query, flags, ctx, enumerator)
180 }
181
182 /// IEnumWbemClassObject::Next (vtable index 4)
183 pub unsafe fn enum_next(

Callers 1

query_thread_implFunction · 0.85

Calls 2

methodFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected