Programming Manual 50
GetFTPShareFolder
Get terminal current File Transfer Profile share folder.
DWORD GetFTPShareFolder
{
WCHAR *strShareFolder,
int *nFolderLen
}
Parameters
strShareFolder
[out] The buffer to receive the share folder string
nFolderLen
[in/out] The strShareFolder buffer max size. If terminal current share folder
length > nFolderLen, the nFolderLen receive current share folder length.
Returned Values
If the action succeeds, the returned value is E_FUNC_SUCCEED. If the action fails,
possible returned values are E_FUNC_PAR_ERROR, BT_ERR_INSUFFICIENT.
Remarks
If function return BT_ERR_INSUFFICIENT, nFolderLen will receive the share folder
length of terminal.
Example
WCHAR *strFolder;
int nFolderLen = 256;
strFolder = new WCHAR[nMax];
DWORD dwErr = GetFTPShareFolder(strFolder, & nFolderLen);;
If(dwErr == BT_ERR_INSUFFICIENT){
Delete strFolder;
strFolder = new WCHAR[nFolderLen];
GetFTPShareFolder(strFolder, & nFolderLen);
}
Requirements
OS Versions: Windows CE 5.0 and later.
Commentaires sur ces manuels