<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by dkas: Hi,
I am trying to use WinAPI 'GetSystemDirectory' to get the system directory on NT system but somehow cannot get it. Here is the code..Can someone please point out where am I going wrong ?
static size = 300 ;
load("d:\\Program Files\\Mercury Interactive\\WinRunner\\lib\\win32api");
extern int GetSystemDirectory(out string, in unsigned int);
report_msg("The string is " & dirname );
You should define the GetSystemDirectory as follows:
Then you should be able to use the following function to retrieve what you need: