<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Parent process ID in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821936#M48115</link>
    <description>Sure, you'd do it the same way as in C.  What OS?&lt;BR /&gt;&lt;BR /&gt;James</description>
    <pubDate>Fri, 21 Feb 2003 12:58:53 GMT</pubDate>
    <dc:creator>james1</dc:creator>
    <dc:date>2003-02-21T12:58:53Z</dc:date>
    <item>
      <title>Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821935#M48114</link>
      <description>Is there a way to get the parent process ID in Visual Fortran ?&lt;BR /&gt;Or should I have to mix language ?</description>
      <pubDate>Thu, 20 Feb 2003 22:42:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821935#M48114</guid>
      <dc:creator>belsim</dc:creator>
      <dc:date>2003-02-20T22:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821936#M48115</link>
      <description>Sure, you'd do it the same way as in C.  What OS?&lt;BR /&gt;&lt;BR /&gt;James</description>
      <pubDate>Fri, 21 Feb 2003 12:58:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821936#M48115</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2003-02-21T12:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821937#M48116</link>
      <description>Um, parent process ID? Windows does not even have concept of parent and child processes -- it's a Unixian thingo. One can spawn a "child" process via CreateProcess, but the relationship between "child" and "parent" is very weak and AFAIK there's no way to reach the "parent" process (unless the "parent" passes that information explicitly, e.g. using command line). What exactly you're trying to do?&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Fri, 21 Feb 2003 16:34:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821937#M48116</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-02-21T16:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821938#M48117</link>
      <description>Jugoslav, the relationship may be "weak" but it is still there, and such information accessible.&lt;BR /&gt;&lt;BR /&gt;James</description>
      <pubDate>Sat, 22 Feb 2003 02:34:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821938#M48117</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2003-02-22T02:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821939#M48118</link>
      <description>James, I'm affraid you'll have to support that statement with a code sample :-).</description>
      <pubDate>Mon, 24 Feb 2003 03:06:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821939#M48118</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-02-24T03:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821940#M48119</link>
      <description>Ok, attached.</description>
      <pubDate>Mon, 24 Feb 2003 05:19:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821940#M48119</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2003-02-24T05:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821941#M48120</link>
      <description>OK, you win -- I didn't count on undocumented APIs :-).</description>
      <pubDate>Tue, 25 Feb 2003 17:51:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821941#M48120</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-02-25T17:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821942#M48121</link>
      <description>Actually it is the concept that is important!  I illustrated one way to do it, there is another using documented APIs, it just requires more code.&lt;BR /&gt;&lt;BR /&gt;James</description>
      <pubDate>Wed, 26 Feb 2003 01:11:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821942#M48121</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2003-02-26T01:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821943#M48122</link>
      <description>GetCurrentProcessID in kernel32 returns this.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Gerry T.</description>
      <pubDate>Wed, 26 Feb 2003 03:16:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821943#M48122</guid>
      <dc:creator>gfthomas8</dc:creator>
      <dc:date>2003-02-26T03:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821944#M48123</link>
      <description>No, GetCurrentProcessID returns the current process id as the name says, not that of the parent.&lt;BR /&gt;&lt;BR /&gt;James</description>
      <pubDate>Wed, 26 Feb 2003 03:32:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821944#M48123</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2003-02-26T03:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821945#M48124</link>
      <description>That's correct. However, if you snapshot the system via CreateToolHelp32Snapshot, then the snapshot and GetCurrentProcessID allow you to get the process entry data for the current app and hence the parent process id. This is then passed with the snapshot to Process32First(Next) to reveal the name of the parent process as the last member of the PROCESSENTRY32 struct. This approach is preferable to use of internal functions of ntdll as advised in MSDN. Also, snapshots can reveal details on app modules (including loaded ocx's, dll's, and their versioning info) and the threads spawned by the app, wittingly or otherwise.&lt;BR /&gt;&lt;BR /&gt;Ciao,&lt;BR /&gt;Gerry T.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Feb 2003 05:10:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821945#M48124</guid>
      <dc:creator>gfthomas8</dc:creator>
      <dc:date>2003-02-26T05:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821946#M48125</link>
      <description>Gerry, yes, that approach is fine in practice although it would be quite a bit more verbose than my example, which was intended to demonstrate a concept.  Note that I also mentioned there were more official interfaces available, but didn't have time to whip up an example based on that approach just to show that it was possible.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;James</description>
      <pubDate>Wed, 26 Feb 2003 05:32:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821946#M48125</guid>
      <dc:creator>james1</dc:creator>
      <dc:date>2003-02-26T05:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Parent process ID</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821947#M48126</link>
      <description>Hi James&lt;BR /&gt;&lt;BR /&gt;I found your demo to be highly instructive and I'm sorry if I came across as unappreciative. Snapshotting is more bother and besides it hasn't made into CVF's kernel32 yet.&lt;BR /&gt;&lt;BR /&gt;Have you noticed that if you run it from the ide, the parent is the ide; if you double click the .exe, the parent is Explorer; and if you shell it, the parent is the sheller. Ditto for the snapshot approach. I hope my pc hasn't been invaded by Raelians, :-).&lt;BR /&gt;&lt;BR /&gt;Ciao,&lt;BR /&gt;Gerry T.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Feb 2003 07:25:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Parent-process-ID/m-p/821947#M48126</guid>
      <dc:creator>gfthomas8</dc:creator>
      <dc:date>2003-02-26T07:25:21Z</dc:date>
    </item>
  </channel>
</rss>

