WinApi Question (GetEnvironmentVariable)

Blitz3D Forums/Blitz3D Programming/WinApi Question (GetEnvironmentVariable)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I want to use the GetEnvironmentVariable Function. I have found decls on this page to use the functions, but I have one Problem. First, some example source

api_SetEnvironmentVariable ("TEST", "Value")
len = api_GetEnvironmentVariable ("TEST", c$, 255) 
print c$
waitkey
end


c$ ist always empty. How can I read out the Variable into a Blitz String?