Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Secure FTP for Windows Mobile 2005 Using VC++ Visual Studio 2005

2 views
Skip to first unread message

Dev

unread,
Apr 24, 2006, 11:11:01 PM4/24/06
to
Hi,

I am using Visual C++ 2005(Visual Studio 2005) to develop Application for
Symbol Technologies Windows Mobile 2005 PDA.
I have used following codes to connect to FTP Server:
hInternetHandle = InternetOpen(_T("Microsoft Internet Explorer"),
INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, INTERNET_INVALID_PORT_NUMBER);
if ( hInternetHandle == 0 )
{
dwError = GetLastError();
HangUp();
ShowLastError(dwError);
return FALSE;
}

hFTPHandle = InternetConnect(hInternetHandle, tszFTPServerName,
ipFTPPortNo, tszFTPUserId, tszFTPPassword, INTERNET_SERVICE_FTP,
INTERNET_FLAG_PASSIVE, 0);

if ( hFTPHandle == 0 )
{
dwError = GetLastError();
InternetCloseHandle(hInternetHandle);
HangUp();
ShowLastError(dwError);
return FALSE;
}

Now I need to connect to Secure FTP Server.
Please can anybody tell me how I can change this code to use for Secure FTP
Server.

Thank you & regards

Dev

<ctacke/>

unread,
Apr 24, 2006, 11:38:33 PM4/24/06
to
SFTP is not simply FTP over SSH, so the standard inet APIs won't work.
Since it's not a published standard either, it's not surprising that Windows
doesn't have inherent API support for it.

More on SFTP can be found here:
http://en.wikipedia.org/wiki/SSH_file_transfer_protocol

-Chris


"Dev" <D...@discussions.microsoft.com> wrote in message
news:DA5CF912-3DA2-4FA5...@microsoft.com...

0 new messages