|
Short story: Obtain domain controller information on Win2000 (and higher) systems.
Longer description from old site: click here.
To be edited...
This sample, or the one from which it originally derived, was published (or at least peripherally mentioned) in the following article(s):
- Add a Window to the Taskbar, Ask the VB Pro, VBPJ, January 2001
- Look Into Raw Memory Contents, Ask the VB Pro, VBPJ, February 2001
This sample uses the following API calls:
Module Library Function CGetDcName.cls kernel32
netapi32
ole32FreeLibrary
GetModuleHandle
GetProcAddress
LoadLibrary
lstrlen
lstrlen
RtlMoveMemory
DsGetDcNameA
DsGetDcNameW
NetApiBufferFree
StringFromGUID2Don't see what you're looking for? Here's a complete API cross-reference.
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