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:)!
Suggestion
Currently
ITaskFolder::GetTaskshas this definitionGetTasks(&self, flags: i32).But as It only allows for
TASK_ENUM_FLAGSit should beGetTasks(&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
Optionallows for the flag to be set, and ifNoneit'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:)!