Thanks for the reply! I did look at the msdn-page but I have no clue whatsoever about this 'real c-programming' tongue. I learned c-script back in the days of A6 and made the transition to lite-c recently...

But now my next question ^^ the code you posted returned the following error:

Error in line 10: syntax error < char buffer [MAX_COMPUTERNAME_LENGTH + 1]; >

Here is the code of the test I tried to run:

Code:
#include <acknex.h>
#include <windows.h> 
#include <default.c>

STRING *comp;

void getComputerName()
{
    char buffer [MAX_COMPUTERNAME_LENGTH + 1];
    long size = MAX_COMPUTERNAME_LENGTH + 1;

    memset(buffer, 0, size);


    if(GetComputerName(buffer, &size))
    {
         str_cpy(comp, buffer);
    }
    else
    {
         str_cpy(comp, "Couldn't get the computer name");
    }
    error(comp);
}

void main()
{
  while(!key_enter){wait(1);}
  getComputerName();
}