Finally got it working.
Here is my solution:
Code:
from reaper_python import *
from ctypes import *
offset = RPR_projectconfig_var_getoffs("envattach", 0)[0]
envAttach=RPR_projectconfig_var_addr(RPR_EnumProjects(-1, "", 0), offset)
p=rpr_packp('void*',envAttach)
pp=cast(p, POINTER(c_int))
envAttach=pp.contents.value
Is this the correct/best way to do it?
jnif