Skip to content

Added ITaskbarList and ITaskbarList2 in shobjidl - #592

Merged
retep998 merged 5 commits into
retep998:0.3from
edwin0cheng:taskbarlist
Apr 29, 2018
Merged

retep998 merged 5 commits into
retep998:0.3from
edwin0cheng:taskbarlist

Conversation

@edwin0cheng

@edwin0cheng edwin0cheng commented Apr 8, 2018 •

Copy link
Copy Markdown
Contributor

This PR added 2 Com Interface ITaskbarList and ITaskbarList2 in shobjidl.

@edwin0cheng edwin0cheng changed the title Added ITaskList and ITaskList2 in shobjidl Added ITaskbarList and ITaskbarList2 in shobjidl Apr 8, 2018

@Connicpu Connicpu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the definitions you added actually belong in shobjidl_core.rs, no shobjidl.rs

Comment thread src/um/shobjidl.rs Outdated
use um::winnt::{HRESULT, LPCWSTR, LPWSTR, WCHAR};

DEFINE_GUID!{CLSID_TaskbarList,
0x56fdf344, 0xfd6d, 0x11d0, 0x95, 0x8a, 0x00, 0x60, 0x97, 0xc9, 0xa0, 0x90}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLSID_TaskbarList should be defined in shobjidl_core.rs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Connicpu so the GUID , ITaskbarList and ITaskbar2List both should added belong to shobjidl_core.rs, not only the GUID, right ?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Comment thread src/um/shobjidl.rs Outdated
psi: IShellItem,
) -> HRESULT,
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No extra newlines

Comment thread src/um/shobjidl.rs Outdated
hwnd: HWND,
fFullscreen: BOOL,
) -> HRESULT,
}); No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget a newline at the end of the file

Comment thread src/um/shobjidl.rs Outdated
) -> HRESULT,
});

RIDL!(

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Item level macros should use {} and there should be no newline between RIDL!{ and #[uuid].

@edwin0cheng

Copy link
Copy Markdown
Contributor Author

It should be fine now :) @Connicpu

@Connicpu

Copy link
Copy Markdown
Contributor

Looks like it isn't passing CI. Make sure you run cargo test --features shobjidl_core before pushing

@edwin0cheng

Copy link
Copy Markdown
Contributor Author

Sorry my bad, just fixed and tested this time.

@Connicpu

Copy link
Copy Markdown
Contributor

@edwin0cheng Ah sorry, last little thing! You never fixed the whitespace issues from retep998's comment on your PR

Comment thread src/um/shobjidl_core.rs Outdated
//27457
pub type IShellItemFilter = IUnknown; // TODO

RIDL!{

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#[uuid] should go on the same line as RIDL!{

@edwin0cheng

Copy link
Copy Markdown
Contributor Author

Fixed :)

Comment thread src/um/shobjidl_core.rs Outdated
use um::winnt::{HRESULT, LPWSTR};

DEFINE_GUID!{CLSID_TaskbarList,
0x56fdf344, 0xfd6d, 0x11d0, 0x95, 0x8a, 0x00, 0x60, 0x97, 0xc9, 0xa0, 0x90}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second line of a DEFINE_GUID should be indented.

@edwin0cheng

Copy link
Copy Markdown
Contributor Author

Indent fixed 👍

@retep998
retep998 merged commit 6771c50 into retep998:0.3 Apr 29, 2018
mattlknight pushed a commit to mattlknight/winapi-rs that referenced this pull request Aug 31, 2018
* Added ITaskbarList and ITaskbarList2 in shobjidl

* Move ITaskbarList and ITaskbarList2 to shobjidl_core

* Fixed import sorting

* Fix formating

* Fixed missing indent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants