NetDomain

Description

Short story: Obtain domain controller information on Win2000 (and higher) systems.

Longer description from old site: click here.

To be edited...

Published

This sample, or the one from which it originally derived, was published (or at least peripherally mentioned) in the following article(s):

APIs Usage

This sample uses the following API calls:

Module Library Function
CGetDcName.cls kernel32






netapi32


ole32
FreeLibrary
GetModuleHandle
GetProcAddress
LoadLibrary
lstrlen
lstrlen
RtlMoveMemory
DsGetDcNameA
DsGetDcNameW
NetApiBufferFree
StringFromGUID2

Don't see what you're looking for? Here's a complete API cross-reference.

Download

Download NetDomain.zip   Please, enjoy and learn from this sample. Include its code within your own projects, if you wish. But, in order to insure only the most recent code is available to all, I ask that you don't share the sample by any form of mass distribution.

Download NetDomain.zip, 6Kb, Last Updated: Tuesday, October 17, 2000