Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The MprAdminEstablishDomainRasServer function establishes the given machine as a Remote Access Server in the domain. This function must be executed only on a machine joined to a domain.
Syntax
DWORD MprAdminEstablishDomainRasServer(
[in] LPWSTR pszDomain,
[in] LPWSTR pszMachine,
[in] BOOL bEnable
);
Parameters
[in] pszDomain
The domain in which you want the server to be advertised.
[in] pszMachine
The name of the RAS server.
[in] bEnable
A BOOL that is TRUE if the RAS server should be advertised in the domain. Otherwise, it is FALSE.
Return value
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the following error codes.
Value | Meaning |
---|---|
|
pszDomain is invalid. |
|
pszMachine is invalid. |
|
User is a non-domain user. |
|
Function executed on a machine not joined to any domain. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | mprapi.h |
Library | Mprapi.lib |
DLL | Mprapi.dll |