• GUARDIAN C++ How can I get my process name o PID

    From Luis Silva@21:1/5 to red floyd on Fri Feb 5 20:29:30 2021
    On Friday, February 5, 2021 at 9:32:27 PM UTC-6, red floyd wrote:
    On 2/5/21 7:31 PM, Luis Silva wrote:
    Hi,

    I have a C guardian process.

    I want to know my process name i.e. $Y9SA or the equivalent of my process ID i.e. 1,2345

    I tried with get_pid but I get a runtime error.

    Is there a way I can get any of this two values at runtime.

    Look up PROCESS_GETINFOLIST_

    What happens if I have two insances of the same program running. How can I know which ID is mine?

    Does process_getinfolist_ works to know my own pid?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From red floyd@21:1/5 to Luis Silva on Fri Feb 5 19:32:23 2021
    On 2/5/21 7:31 PM, Luis Silva wrote:
    Hi,

    I have a C guardian process.

    I want to know my process name i.e. $Y9SA or the equivalent of my process ID i.e. 1,2345

    I tried with get_pid but I get a runtime error.

    Is there a way I can get any of this two values at runtime.

    Look up PROCESS_GETINFOLIST_

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luis Silva@21:1/5 to red floyd on Fri Feb 5 21:12:01 2021
    On Friday, February 5, 2021 at 9:32:27 PM UTC-6, red floyd wrote:
    On 2/5/21 7:31 PM, Luis Silva wrote:
    Hi,

    I have a C guardian process.

    I want to know my process name i.e. $Y9SA or the equivalent of my process ID i.e. 1,2345

    I tried with get_pid but I get a runtime error.

    Is there a way I can get any of this two values at runtime.

    Look up PROCESS_GETINFOLIST_


    Thank you a lot Red Floyd!

    I started with PROCESS_GETINFOLIST_ and ended with PROCESS_GETINFO_ as in need info of myself.

    You pointed me in the right direction!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luis Silva@21:1/5 to All on Fri Feb 5 19:31:19 2021
    Hi,

    I have a C guardian process.

    I want to know my process name i.e. $Y9SA or the equivalent of my process ID i.e. 1,2345

    I tried with get_pid but I get a runtime error.

    Is there a way I can get any of this two values at runtime.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)