I have an app that uses functions inside a dll. I would like the dll to get a variable hInstance from the app so when the dll is loaded it has the value assigned to an hInstance vraible in the dll?

Is this possible?if so how would i go about doing this?

Cheers in Advance

Andy