Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How can I get all the environment variables from Windows?
Feedback.

Answer: Try this code:
Example:
declare function GetEnvironmentStrings Lib "kernel32" () as ptr
dim m as memoryBlock
dim n as integer

m=GetEnvironmentStrings()

n=0
do
msgBox m.cstring(n)
while m.byte(n)<>0
n=n+1
wend
n=n+1
loop until m.byte(n)=0

Notes: The MBS Plugin has an EnvironmentMBS class for this.



Links
MBS Realbasic Plugins - Nachhilfe in Plaidt