PureBasic Forum

Page 1 of 1

Author:  Little John [ Mon Dec 02, 2019 10:03 pm ]
Post subject:  [Done]ProgramID()

Note: the value returned here is not a handle (unlike with most other ...ID() functions). Rather, it is the Process ID which may be viewed within the Taskmanager.

On Windows, this is only true for standard Win32 programs, but not for UWP apps, as Dude pointed out.
That should be mentioned in the documentation of ProgramID().

Author:  BarryG [ Mon Dec 02, 2019 10:15 pm ]
Post subject:  Re: ProgramID()

Interesting. I regularly use process IDs to interact with apps, and this is a major issue for me that I was unaware of. So how do we get the process ID of UWP apps then, since we can't rely on ProgramID() at all? Doesn't this issue make ProgramID() totally useless, too? I mean, if it's not going to return the correct process ID, then I'm not going to ever use it again.

Author:  Little John [ Mon Dec 02, 2019 10:30 pm ]
Post subject:  Re: ProgramID()

I hope you are not asking me, since unfortunately I don't know the answers to your questions. :) :x

Author:  BarryG [ Tue Dec 03, 2019 8:19 am ]
Post subject:  Re: ProgramID()

No, just thinking out loud.

Author:  Little John [ Wed Apr 01, 2020 2:16 pm ]
Post subject:  Re: [Done]ProgramID()

Documentation Editors wrote:

I see the additional note regarding this issue in the help that ships with PB 5.72 LTS. Thank you!
However, the online help for ProgramID() is not yet updated accordingly.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group