GetEnvironmentVariable

BlitzMax Forums/BlitzMax Programming/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'm trying to compile the following code, but max is saying unnexpected \. What's the correct way to do this?

Extern "Win32"
	Function GetEnvironmentVariable(lpName$z, lpBuffer:Byte Ptr, nSize) = "GetEnvironmentVariableA@12"
End Extern