<?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: GetComputeName / GetUserName in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942078#M17267</link>
    <description>Thanks, they both worked fine. &lt;BR /&gt; &lt;BR /&gt;David</description>
    <pubDate>Tue, 13 Mar 2001 03:29:27 GMT</pubDate>
    <dc:creator>davidgraham</dc:creator>
    <dc:date>2001-03-13T03:29:27Z</dc:date>
    <item>
      <title>GetComputeName / GetUserName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942074#M17263</link>
      <description>I am trying to use the GetComputerName / GetUserName functions but I get an error when I run them - the parameters must be wrong. &lt;BR /&gt; &lt;BR /&gt;Does anyone have a example of using these functions, or is there a better way to get the Computer Name / User Name? &lt;BR /&gt; &lt;BR /&gt;Thanks, David</description>
      <pubDate>Sat, 10 Mar 2001 01:20:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942074#M17263</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2001-03-10T01:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: GetComputeName / GetUserName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942075#M17264</link>
      <description>It's fishy declaration of GetComputerName / GetUserName in ADVAPI32.f90 and KERNEL32.f90. The docs say that nSize argument is actually, speaking in fortran terms, INTENT(INOUT), i.e. it's a pointer to an integer, not integer-by-value. Thus, it would be more natural that the fortran declaration has !DEC$ATTRIBUTES REFERENCE:: nSize  &lt;BR /&gt; &lt;BR /&gt;Workaround for that is to pass LOC(nSize) argument, not nSize: &lt;BR /&gt; &lt;BR /&gt;&lt;PRE&gt; 
CHARACTER(40):: sUser 
 
nSize=40 
bSt=GetUserName(sUser,LOC(nSize)) 
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Sat, 10 Mar 2001 01:48:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942075#M17264</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-03-10T01:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: GetComputeName / GetUserName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942076#M17265</link>
      <description>INTEGER*4 Result  &lt;BR /&gt;  &lt;BR /&gt;CHARACTER*(As long as needed) UserName, CompName  &lt;BR /&gt;  &lt;BR /&gt;Result = GETENVQQ("USERNAME", UserName)  &lt;BR /&gt;Result = GETENVQQ("COMPUTERNAME", CompName)  &lt;BR /&gt;  &lt;BR /&gt;USERNAME and COMPUTERNAME are true for W2K. Enter SET at command line to see what they are called in your OS.  &lt;BR /&gt;  &lt;BR /&gt;Sabalan.</description>
      <pubDate>Sat, 10 Mar 2001 02:00:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942076#M17265</guid>
      <dc:creator>sabalan</dc:creator>
      <dc:date>2001-03-10T02:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: GetComputeName / GetUserName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942077#M17266</link>
      <description>USE DFLIB &lt;BR /&gt; &lt;BR /&gt;INTEGER*4 Result   &lt;BR /&gt;   &lt;BR /&gt;CHARACTER*(As long as needed) UserName, CompName   &lt;BR /&gt;   &lt;BR /&gt;Result = GETENVQQ("USERNAME", UserName)   &lt;BR /&gt; &lt;BR /&gt;Result = GETENVQQ("COMPUTERNAME", CompName)   &lt;BR /&gt;   &lt;BR /&gt;USERNAME and COMPUTERNAME are true for W2K. Enter SET at command line to see what they are called in your OS.   &lt;BR /&gt;   &lt;BR /&gt;Sabalan.</description>
      <pubDate>Sat, 10 Mar 2001 02:04:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942077#M17266</guid>
      <dc:creator>sabalan</dc:creator>
      <dc:date>2001-03-10T02:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: GetComputeName / GetUserName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942078#M17267</link>
      <description>Thanks, they both worked fine. &lt;BR /&gt; &lt;BR /&gt;David</description>
      <pubDate>Tue, 13 Mar 2001 03:29:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetComputeName-GetUserName/m-p/942078#M17267</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2001-03-13T03:29:27Z</dc:date>
    </item>
  </channel>
</rss>

