Get Environment Variable Block

M. Gallant 01/16/2002

This signed applet for IE4+ browsers uses Microsoft J/Direct technology and a custom DLL migutilslib.dll (which must be first installed in a suitable directory e.g. in the system directory, on the system PATH.) The applet calls the DLL function:
DWORD GetAllEnvars(LPTSTR varbuff, DWORD nSize)

and returns a listing of the entire local environment variable block. The syntax for GetAllEnvars() is similar to the standard win32 API function GetEnvironmentVariable. The DLL migutilslib.dll is written in C using Visual C++ and currently only implements an ANSI version (UNICODE not implemented yet). Therefore the Microsoft-specific @dll.import Java-code directive must specify ansi.

migutilslib.dll



Applet Source Code    Java application version     Run-time DLL loading version
Native C application version
Compiling & signing