【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.25.62 okutil_set_group_server
Contents
Description
set local machine's group folder path (UNC path)
Syntax
okutil_set_group_server(LPCSTR lpcszPath, int bServer=0, LPCSTR lpcszLocalPath=NULL, int nPathIndex=1)
Parameters
- lpcszPath
- [input] "" to disable the server, or pass in UNC path of the server to set group folder at index specified by nPathIndex, NULL and 0==bServer to test if local computer has such suppport at specified index
- bServer
- [input] if > 0, sets the local computer as the group server with the local path to the server group folder which may or may not in the local computer
- < 0 if lpcszPath is specify, will reset computer as client, if lpcsz = NULL and bServer < 0, to remove computer from group at specified index
- lpcszLocalPath
- [input] specify local path
- nPathIndex
- [input] specify the index of group folder
Return
<0 error code like GSERR_LOCAL_GROUP_NOT_WRITABLE, so cannot update
0 success
Examples
EX1
void okutil_set_group_server_Ex1() { LPCSTR lpcszPath = GetAppPath(FALSE); int iRet = okutil_set_group_server(lpcszPath); }
EX2
void okutil_set_group_server_Ex2() { LPCSTR lpcszPath = ""; int bServer = 1; LPCSTR lpcszLocalPath = GetAppPath(FALSE); int iRet = okutil_set_group_server(lpcszPath, bServer, lpcszLocalPath); }
Remark
See Also
Header to Included
origin.h