This may be off topic to your request, but depending on what you are doing, you may wish to keep an eye on the
hosts project. While currently it is intended for use solely in the unix environment, it is a security test sweet that runs n tests against a computer in perl. From the presentation that I saw, it looks like they were investigating winnt, 2000 compatability. Thus, depending on your purposes, you may be able to borrow code or directly use that code in your project. However, I am unable to wager when it would or could be available...
----
Zak
"There is no room in this country for hyphenated Americanism" ~ Theodore Roosevelt (1915)