New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add oaidl::ITypeLib, oleauto::LoadTypeLibEx and related definitions. #406
Conversation
|
||
EXTERN!{stdcall fn SysFreeString( | ||
bstrString: BSTR | ||
) -> ()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct or should it be c_void
or something? The header uses the standard C void
, no typedefs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void
return types correspond to ()
in Rust.
src/um/oaidl.rs
Outdated
@@ -526,7 +526,53 @@ interface IDispatch(IDispatchVtbl): IUnknown(IUnknownVtbl) { | |||
); | |||
pub enum IRecordInfo {} // FIXME | |||
pub enum ITypeComp {} // FIXME | |||
pub enum ITypeLib {} // FIXME | |||
|
|||
ENUM! { enum SYSKIND { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect spacing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
src/um/oleauto.rs
Outdated
@@ -0,0 +1,34 @@ | |||
// Copyright © 2016-2017 winapi-rs developers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be just 2017?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
If there is duplication the definitions should be duplicated except for structs and interfaces, where one location should be canonical and then the other headers publicly re-export it. |
Okay, changed it to redeclare |
There's more in oleauto.h but I've only added what I need for winapi-tlb-bindgen.
There's some amount of duplication between oaidl.h and oleauto.h (both define
DISPID
andMEMBERID
, etc) but I figured it would be better to reuse the definitions from theoaidl
module.MEMBERID_NIL
's type comes from its use as the first parameter ofITypeInfo::GetDocumentation()