I need to define through the program, an operating system environment variable to be seen by all the applications. He is possible?
Already I obtained to define with the following program. But the program that created only obtains to see the variable. It would like that all the programs in saw it to execution.
Code: Select all | Expand
SetEnvironmentVariable("VFAPORTAL","c:\teste ")
#pragma BEGINDUMP
#include <windows.h>
HB_FUNC( SETENVIRONMENTVARIABLE )
{
hb_retl( SetEnvironmentVariableA( (LPCSTR) hb_parcx( 1 ),
(LPCSTR) hb_parcx( 2 )
) ) ;
}
#pragma ENDDUMP