Why do you think GetLastError() has any meaning here? GetLastError is, with a few rare
exceptions, defined ONLY if the last API failed. If it succeeded, GetLastError has no
meaning. So unless you check the value of hList and see it is NULL, then you have no idea
whether or not ::GetLastError has any meaning.
Joseph M. Newcomer [MVP]
MVP Tips: http://www.yqcomputer.com/