It is currently Mon Aug 03, 2020 10:54 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [Done]ProgramID()
PostPosted: Mon Dec 02, 2019 10:03 pm 
Offline
Addict
Addict

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3885
Location: Berlin, Germany
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().

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: ProgramID()
PostPosted: Mon Dec 02, 2019 10:15 pm 
Offline
Addict
Addict

Joined: Thu Apr 18, 2019 8:17 am
Posts: 948
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: ProgramID()
PostPosted: Mon Dec 02, 2019 10:30 pm 
Offline
Addict
Addict

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3885
Location: Berlin, Germany
I hope you are not asking me, since unfortunately I don't know the answers to your questions. :) :x

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: ProgramID()
PostPosted: Tue Dec 03, 2019 8:19 am 
Offline
Addict
Addict

Joined: Thu Apr 18, 2019 8:17 am
Posts: 948
No, just thinking out loud.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Done]ProgramID()
PostPosted: Wed Apr 01, 2020 2:16 pm 
Offline
Addict
Addict

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3885
Location: Berlin, Germany
Documentation Editors wrote:
[Done]

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.

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye