 |
| Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP) |
User rating: 0/10 (0 votes) | |
|
|
 |
 |
 |
| |
| |
Members area. Log in to view this example. |
|
| |
|
|
|
|
|
 |
User rating: 0/10 (0 votes) | |
| 2153 bytes Created: 2001-10-16 23:40:10 Modified: 2011-12-10 09:20:22 Visits in 7 days: 61 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| My comment: |
 |
Notice that SERVERNAME and DOMAIN name parameters are declared as Integers, not Strings, and are set to zero.
This is done to pass NULL values to the function instead of string values. In this case the local computer is used (SERVERNAME), and the function returns the name of the domain controller for the primary domain (DOMAIN).
Error 2453 means that your computer is not joined to domain. Use NetJoinDomain function or go through the network settings to join a domain. |
 |
 |
| Word Index links for this example: |
 |
|
|
 |
 |
| Translate this page: |
 |
|