Re: SetEnvironmentVariable

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Wed, 13 Oct 1999 18:00:19 +0100, Flaminio <newpow at TIN.IT> wrote:

>I can't use this function, it doesn't work, surely my prog is wrong...
>please see if there's anything wrong in it...
>
>include machine.e
>include dll.e
>atom kernel, SetEnvironmentVariable
>kernel = open_dll("kernel32.dll")
>SetEnvironmentVariable = define_c_func(kernel,
>"SetEnvironmentVariableA", {C_INT, C_INT, C_INT},C_INT)
>? c_func(SetEnvironmentVariable, {allocate_string("ciao"),
>allocate_string("oiac"),1})

"SetEnvironmentVariableA", {C_POINTER, C_POINTER} , C_INT)

-- first parameter     enviornment varible-name
-- second parameter    NEW VALUE

Bernie

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu