Hi,
Most likely your C# code is going to be calling the Windows SDK functions to get the information about the users from the network active directory. If you don't want the .NET framework on the target computer, you can use the C# code as a model for writing a C dll.
Feroz