M
Mobileboy36
Hello group,
I'm having troubles using an ftp class on WM2005, wich is invoking functions
from wininet.dll.
InternetOpenW returns a handle different from 0.
InternetConnectW returns 0 for the handle and 6 for GetLastError(The handle
is invalid)
This are the calls:
lInternetHandle = InternetOpenW("FTPOpen",
Convert.ToUInt32(INTERNET_OPEN_TYPE_PRECONFIG), "", "", Convert.ToUInt32(0))
lFtpHandle = InternetConnectW( _
Convert.ToUInt32(lInternetHandle), Host,
Convert.ToUInt16(INTERNET_DEFAULT_FTP_PORT), Username, _
Password, Convert.ToUInt32(INTERNET_SERVICE_FTP),
Convert.ToUInt32(INTERNET_FLAG_ACTIVE), Convert.ToUInt32(0))
This class is working several years (ppc 2002,2003, wince 4.2...)
Is there any reason why it does not work on WM2005?
On the Wm2005, I noticed "wininet.dll" has been renamed to
"wininet.dll.0409".
Is that "normal" or something manufacturer-specific?
I hope to find a solution to make my class working again.
Best regards,
Mobile Boy
I'm having troubles using an ftp class on WM2005, wich is invoking functions
from wininet.dll.
InternetOpenW returns a handle different from 0.
InternetConnectW returns 0 for the handle and 6 for GetLastError(The handle
is invalid)
This are the calls:
lInternetHandle = InternetOpenW("FTPOpen",
Convert.ToUInt32(INTERNET_OPEN_TYPE_PRECONFIG), "", "", Convert.ToUInt32(0))
lFtpHandle = InternetConnectW( _
Convert.ToUInt32(lInternetHandle), Host,
Convert.ToUInt16(INTERNET_DEFAULT_FTP_PORT), Username, _
Password, Convert.ToUInt32(INTERNET_SERVICE_FTP),
Convert.ToUInt32(INTERNET_FLAG_ACTIVE), Convert.ToUInt32(0))
This class is working several years (ppc 2002,2003, wince 4.2...)
Is there any reason why it does not work on WM2005?
On the Wm2005, I noticed "wininet.dll" has been renamed to
"wininet.dll.0409".
Is that "normal" or something manufacturer-specific?
I hope to find a solution to make my class working again.
Best regards,
Mobile Boy