CString strDomainName a string that contains the Domain name. If
this parameter is empty, the domain where the machine is logued, is used.

Remarks:

If you use the first construct, the CNetDomain class will work only with the
machine that it is running, getting and updating the information on it

For Example:

CNetDomain pDomain(_T("")); //This sample use the domain where is logued the Machine...
CNetDomain pDomain(_T("Developers")); //This sample use the Developers
domain...
CNetDomain pDomain(); //This sample use the local
machine...

int nPrivileges a set of bit flags defining the operator privileges
assigned to a user network account.

CNetUers::opPrivPrint The
print operator privilege is enabled.CNetUers::opPrivComm The
communications operator privilege is enabled.CNetUers::opPrivServer The
server operator privilege is enabled.CNetUers::opPrivAccounts The accounts
operator privilege is enabled.

Special thanks

These Net Classes received many suggestions from the users.
Thank to All for your collaboration and Ideas.

Ingo Stapel
Spiros Prantalos

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

Share

About the Author

Carlos Antollini is a software engineer working on Object Oriented, Visual C++, MFC, COM, ATL, ADO, Internet technologies and Business Intelligence.
Carlos is originally from Argentina, he was living for several years in Fort Lauderdale, Florida, working for Citibank. Then he started his own business.
Carlos is the creator of <a href="http://www.piFive.com">piFive</a>[<a target="_blank" title="piFive" href="http://www.piFive.com">^</a>], a family of BI Analytic Platform software, that it deals next to, <a href="http://www.latinsys.com">latinsys</a>[<a target="_blank" title="latinsys" href="http://www.latinsys.com">^</a>], his partner in businesses...
Currently he is sharing his passion for project management and BI at Citigroup.