I read through the suggested page, and as far as I can make out my problem seems to be, I am passing in a Security Attribute structure for the lpSecurityAttributes parameter. This works fine on NT and 2000, but not on 95 and 98. For 95, 98 I need to pass in a 0 (byval clng(0)).

The thing is how can I tell what version of windows is running?

More so, if I try to put in a condition to pass in one parameter or the other, my code won't compile as 2000 doesn't like the passing of a 0.

Help please, I'm new to API and am getting tied in knots!!!