Hi,

I am conscient that it might not be the place to ask that question here.

I am trying to identify which task is presently active for the user.

I am trying to filter WM_ACTIVATEAPP:
But the param is an htask How do I get information such as which application name is?
Or perhaps convert htask in ProcessID so I can extract the module name.

Thanks
Denis

Re: Howto extract info from an HTASK by Skywing

Skywing
Mon Feb 06 13:23:59 CST 2006

It sounds like you're looking at some really ancient SDK documentation if
you're seeing mention of things like HTASKs.

The lParam value for WM_ACTIVATEAPP is a thread id in 32-bit windows.
HTASKs are things for Win16...

"Denis @ TheOffice" <denisco@ica.net> wrote in message
news:1139253598.306124@www.vif.com...
> Hi,
>
> I am conscient that it might not be the place to ask that question here.
>
> I am trying to identify which task is presently active for the user.
>
> I am trying to filter WM_ACTIVATEAPP:
> But the param is an htask How do I get information such as which
> application name is?
> Or perhaps convert htask in ProcessID so I can extract the module name.
>
> Thanks
> Denis
>
>



Re: Howto extract info from an HTASK by Denis

Denis
Mon Feb 06 14:24:33 CST 2006

You're right I was looking at MFC version of activateapp.
Sorry, never mind.

I think from a threadID I can enum windows then
GetWindowThreadProcessId(...)
for then openProcess(...) for info and then
EnumProcessModules(...) for finally get my :
GetModuleBaseName(...)

I whish there was an easier way to do that. In some ways I do missed the old Win3.1 things like that
was so easier back then.

Regards,
Denis




"Skywing" <skywing_NO_SPAM_@valhallalegends.com> wrote in message
news:O%23vHkL1KGHA.3728@tk2msftngp13.phx.gbl...
> It sounds like you're looking at some really ancient SDK documentation if
> you're seeing mention of things like HTASKs.
>
> The lParam value for WM_ACTIVATEAPP is a thread id in 32-bit windows.
> HTASKs are things for Win16...
>
> "Denis @ TheOffice" <denisco@ica.net> wrote in message
> news:1139253598.306124@www.vif.com...
> > Hi,
> >
> > I am conscient that it might not be the place to ask that question here.
> >
> > I am trying to identify which task is presently active for the user.
> >
> > I am trying to filter WM_ACTIVATEAPP:
> > But the param is an htask How do I get information such as which
> > application name is?
> > Or perhaps convert htask in ProcessID so I can extract the module name.
> >
> > Thanks
> > Denis
> >
> >
>
>