C++
#import "libid:7A3A786C-EB8C-43b3-BC10-8D09ACF5D195" #include <atlcom.h> ::CoInitializeEx(NULL, COINIT_MULTITHREADED); CComPtr<sfFTPLib::IFTPParser> ftpParser; HRESULT hr = ftpParser.CoCreateInstance(__uuidof(sfFTPLib::FTPParser)); ftpParser.Initialize(sfFTPLib::ftpParserFormatUNIX); static const WCHAR line[] = L"-rw------- 1 user group 3907 Feb 21 13:55 finger.txt"; CComPtr<sfFTPLib::IFTPItem> ftpItem; if (SUCCEEDED(ftpParser->ParseLine(line, &ftpItem)) { } }
Copyright (c) by SmartSoft Ltd. All rights reserved.
|