Skip to content

Have ITaskFolder::GetTasks use Option<TASK_ENUM_FLAGS> instead of i32 #4402

@Zerowalker

Description

@Zerowalker

Suggestion

Currently ITaskFolder::GetTasks has this definition GetTasks(&self, flags: i32).
But as It only allows for TASK_ENUM_FLAGS it should be GetTasks(&self, flags: Option<TASK_ENUM_FLAGS>),
if I'm not mistaken, or perhaps add a:
pub const TASK_ENUM_ALL: TASK_ENUM_FLAGS = TASK_ENUM_FLAGS(0i32);
Though I'm guessing that is a bad idea as you making up a flag that doesn't exist.
Having an Option allows for the flag to be set, and if None it's simply 0.

I tried finding it in win32metadata to no avail, but I am guessing the "fault" lies there?
I think it should be defined here, but it's not: https://github.com/microsoft/win32metadata/blob/main/generation/WinSDK/RecompiledIdlHeaders/um/MSTask.idl

Thanks:)!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions