Correct way ? please define Correct
excuse me but removing the focus is in my opinion a much better way
In your implementation your code would break on a non MS system ( ever
heard of MONO ??? or # develop ??? )
I personally only use API`s when there is absolutely no other way of doing
so through the framework and if i know for sure that my program wil only run
under a certain operating system ( even Windows has changed and different
API refernces between versions )
So correct could turn out to be incorrect
using API for this is going from Amsterdam to Rome by first stopping in
Madrid while you were looking for the fastest way .
Just my opinion
regards
Michel Posseth [MCP]
Michel Posseth