>I would like to write a file to the Windows system directory after the expiry date of the demo which should disable my application (limited time demo version). Is there a way of finding out the name of the Windows system directory?
Rene,
Here's the declaration and how to use it:
DECLARE INTEGER GetSystemDirectory IN Win32API;
STRING @c_ReturnBuffer, INTEGER n_BufferSize
lcbuffer = SPACE(265)
lnbufflen = LEN(lcbuffer)
lnbufflen = GetSystemDirectory(@lcbuffer, lnbufflen)
IF lnbufflen > 0
lcbuffer = LEFT(lcbuffer, lnbufflen)
ENDIF
hth,
George
Ubi caritas et amor, deus ibi est