in reply to Re^2: Win32 GetEnvironmentVariables?
in thread Win32 GetEnvironmentVariables?
Unless the dll was bound to perl, the changes won't be made until you load the dll. It then depends when the dll sets/changes the environment variables.
If they are set/changed by the dlls initialisation, then you can
use Win32; my $hModule = Win32::Loadibrary( 'thedll' );
to load the library and then use GetEnvironmentStrings or GetEnvironmentVariable (via Win32::API) to get the modified environment for the perl process.
If they don't get set until a particular api within the dll is called, then use Win32::API to load the dll and call the api before retrieving the new/modified values.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Win32 GetEnvironmentVariables?
by Anonymous Monk on Nov 11, 2006 at 01:49 UTC | |
by BrowserUk (Patriarch) on Nov 11, 2006 at 02:10 UTC |