PureBasic Forum
https://www.purebasic.fr/english/

ProgramID()
https://www.purebasic.fr/english/viewtopic.php?f=37&t=74145
Page 1 of 1

Author:  Little John [ Mon Dec 02, 2019 10:03 pm ]
Post subject:  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.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/