How can I check if a dll has been loaded or not in the current session of powershell?

rated by 0 users
This post has 0 Replies | 1 Follower

Top 500 Contributor
Posts 5
Facioli Posted: 02-07-2012 10:17 AM

Huh? How can I check if a dll (or one of its members) has been loaded or not in the current session of powershell?

I'm loading this dll in a script, as follows:

$sw = @'
[DllImport("user32.dll")]
public static extern int ShowWindow(int hwnd, int nCmdShow);
'@

In another script I want to check if this dll is already loaded. If not, I need to load it.

Grateful for any information.

Page 1 of 1 (1 items) | RSS
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.