The RasAdminGetUserAccountServer function retrieves the name of the server that has the user account database. You can use the returned server name in the RasAdminUserGetInfo and RasAdminUserSetInfo functions to get or set information about a specified user.
DWORD RasAdminGetUserAccountServer(
const WCHAR *lpszDomain, |
// pointer to the name of the Windows NT domain |
const WCHAR *lpszServer, |
// pointer to the name of the RAS server |
LPWSTR lpszUserAccountServer |
// receives the name of the user account server |
); |
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value can be the following error code.
Value |
Meaning |
ERROR_INVALID_PARAMETER |
Both lpszDomain and lpszServer are NULL. |
There is no extended error information for this function; do not call GetLastError.
The lpszDomain parameter should specify a valid Windows NT domain name. If you are running your RAS administration application on a Windows NT Workstation or Server that is not participating in a Windows NT domain (for example, the workstation or server is in its own work group), then set lpszDomain to NULL. In this case, you must specify your server name in the lpszServer parameter. Be sure to prefix the server name with the “\\” characters. To get the server name, call the GetComputerName function.
GetComputerName, RasAdminUserGetInfo, RasAdminUserSetInfo
file: /Techref/os/win/api/win32/func/src/f69_20.htm, 4KB, , updated: 2000/4/7 11:19, local time: 2024/12/25 17:49,
18.217.104.36:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/Techref/os/win/api/win32/func/src/f69_20.htm"> RasAdminGetUserAccountServer</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.