edit : I think I found the functions needed, but I don't know how to catch this IShellWindows::OnNavigate, this is not a function I call, but a function that IS CALLED.
while writing my question, I found this in similar questions, which is exactly what I need
SHOpenFolderAndSelectItems for explorer replacement program
IShellWindows::RegisterPending
Type: VARIANT*
A VARIANT of type VT_VARIANT | VT_BYREF. Set the value of pvarloc to an absolute PIDL (PIDLIST_ABSOLUTE) that specifies the window to register.
I've only used SHParseDisplayName before which gives a PIDL, but that's for a file path, how can I get PIDL of a window ? What does PIDL of a window mean ?
what does this registration do ? and how do I get the files to select/focus after I register? Is there a function/event that will be called when SHOpenFolderAndSelectItems is called ?
I've asked this question in the ahk forums before because I am writing a file manager in ahk, I would like to call these dll functions in ahk. There is what I've tried in ahk.
I'm not sure : does GetCurrentThreadId give the correct thread ID for long lThreadId
?