Problems, solutions and workarounds: all about using, developing and implementing software across Microsoft technologies...and BTW: yes, I work for Microsoft!
Tuesday, October 02, 2012
DsGetDCName() sample
The API function DSGetDCName() is a recommended way to obtain the domain controller name by domain name etc.
Calling this function one should take care about combination of used flag combination: this is mostly the point of optimization.
To let the developer experiment with the flags I’ve build a quick app helping to check different flag combinations:
Bits and source code are available on request or here.
Enjoy!
Subscribe to:
Post Comments (Atom)
1 comment:
Thank you, I have recently been looking for facts about this question for a while and yours is the best I have found so far.
Post a Comment