1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#[repr(C)] #[derive(Clone, Copy, Debug)]
pub struct BIND_OPTS {
pub cbStruct: ::DWORD,
pub grfFlags: ::DWORD,
pub grfMode: ::DWORD,
pub dwTickCountDeadline: ::DWORD,
}
pub type LPBIND_OPTS = *mut BIND_OPTS;
RIDL!(
interface IBindCtx(IBindCtxVtbl): IUnknown(IUnknownVtbl) {
fn RegisterObjectBound(&mut self, punk: *mut ::IUnknown) -> ::HRESULT,
fn RevokeObjectBound(&mut self, punk: *mut ::IUnknown) -> ::HRESULT,
fn ReleaseBoundObjects(&mut self) -> ::HRESULT,
fn SetBindOptions(&mut self, pbindopts: *mut BIND_OPTS) -> ::HRESULT,
fn GetBindOptions(&mut self, pbindopts: *mut BIND_OPTS) -> ::HRESULT,
fn GetRunningObjectTable(&mut self, pprot: *mut *mut IRunningObjectTable) -> ::HRESULT,
fn RegisterObjectParam(&mut self, pszKey: ::LPOLESTR, punk: *mut ::IUnknown) -> ::HRESULT,
fn GetObjectParam(&mut self, pszKey: ::LPOLESTR, ppunk: *mut *mut ::IUnknown) -> ::HRESULT,
fn EnumObjectParam(&mut self, ppenum: *mut *mut ::IEnumString) -> ::HRESULT,
fn RevokeObjectParam(&mut self, pszKey: ::LPOLESTR) -> ::HRESULT
}
);
pub type IEnumMoniker = ::IUnknown;
RIDL!(
interface IRunningObjectTable(IRunningObjectTableVtbl): IUnknown(IUnknownVtbl) {
fn Register(
&mut self, grfFlags: ::DWORD, punkObject: *mut ::IUnknown, pmkObjectName: *mut IMoniker,
pdwRegister: *mut ::DWORD
) -> ::HRESULT,
fn Revoke(&mut self, dwRegister: ::DWORD) -> ::HRESULT,
fn IsRunning(&mut self, pmkObjectName: *mut IMoniker) -> ::HRESULT,
fn GetObject(
&mut self, pmkObjectName: *mut IMoniker, ppunkObject: *mut *mut ::IUnknown
) -> ::HRESULT,
fn NoteChangeTime(&mut self, dwRegister: ::DWORD, pfiletime: *mut ::FILETIME) -> ::HRESULT,
fn GetTimeOfLastChange(
&mut self, pmkObjectName: *mut IMoniker, pfiletime: *mut ::FILETIME
) -> ::HRESULT,
fn EnumRunning(&mut self, ppenumMoniker: *mut *mut IEnumMoniker) -> ::HRESULT
}
);
pub type IMoniker = ::IUnknown;