Ignore:
Timestamp:
Mar 8, 2007, 10:42:50 AM (18 years ago)
Author:
イグトランス (egtra)
Message:

#50 API宣言の変更完了

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/api_wininet.sbp

    r1 r141  
    55#define _INC_WININET
    66
     7#ifdef UNICODE
     8Const _FuncName_InternetOpen = "InternetOpenW"
     9Const _FuncName_InternetConnect = "InternetConnectW"
     10Const _FuncName_FtpGetFile = "FtpGetFileW"
     11Const _FuncName_FtpGetCurrentDirectory = "FtpGetCurrentDirectoryW"
     12Const _FuncName_FtpSetCurrentDirectory = "FtpSetCurrentDirectoryW"
     13Const _FuncName_FtpFindFirstFile = "FtpFindFirstFileW"
     14Const _FuncName_InternetFindNextFile = "InternetFindNextFileW"
     15#else
     16Const _FuncName_InternetOpen = "InternetOpenA"
     17Const _FuncName_InternetConnect = "InternetConnectA"
     18Const _FuncName_FtpGetFile = "FtpGetFileA"
     19Const _FuncName_FtpGetCurrentDirectory = "FtpGetCurrentDirectoryA"
     20Const _FuncName_FtpSetCurrentDirectory = "FtpSetCurrentDirectoryA"
     21Const _FuncName_FtpFindFirstFile = "FtpFindFirstFileA"
     22Const _FuncName_InternetFindNextFile = "InternetFindNextFileA"
     23#endif
    724
    825TypeDef HINTERNET = VoidPtr
     
    2441Const INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4   'prevent using java/script/INS
    2542
    26 Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (
    27     lpszAgent As LPCSTR,
     43Declare Function InternetOpen Lib "wininet.dll" Alias _FuncName_InternetOpen (
     44    lpszAgent As LPCTSTR,
    2845    dwAccessType As DWord,
    29     lpszProxy As LPCSTR,
    30     lpszProxyBypass As LPCSTR,
     46    lpszProxy As LPCTSTR,
     47    lpszProxyBypass As LPCTSTR,
    3148    dwFlags As DWord) As HINTERNET
    3249
     
    4461Const INTERNET_DEFAULT_SOCKS_PORT    = 1080        'default for SOCKS firewall servers.
    4562
    46 Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" (
     63Declare Function InternetConnect Lib "wininet.dll" Alias _FuncName_InternetConnect (
    4764    hInternet As HINTERNET,
    48     lpszServerName As LPCSTR,
     65    lpszServerName As LPCTSTR,
    4966    nServerPort As INTERNET_PORT,
    50     lpszUserName As LPCSTR,
    51     lpszPassword As LPCSTR,
     67    lpszUserName As LPCTSTR,
     68    lpszPassword As LPCTSTR,
    5269    dwService As DWord,
    5370    dwFlags As DWord,
     
    6279'----------------
    6380
    64 Declare Function FtpGetFile Lib "wininet.dll" Alias "FtpGetFileA" (
     81Declare Function FtpGetFile Lib "wininet.dll" Alias _FuncName_FtpGetFile (
    6582    hConnect As HINTERNET,
    66     lpszRemoteFile As LPCSTR,
    67     lpszNewFile As LPCSTR,
     83    lpszRemoteFile As LPCTSTR,
     84    lpszNewFile As LPCTSTR,
    6885    fFailIfExists As BOOL,
    6986    dwFlagsAndAttributes As DWord,
     
    7188    dwContext As DWORD_PTR) As BOOL
    7289
    73 Declare Function FtpGetCurrentDirectory Lib "wininet.dll" Alias "FtpGetCurrentDirectoryA" (
     90Declare Function FtpGetCurrentDirectory Lib "wininet.dll" Alias _FuncName_FtpGetCurrentDirectory (
    7491    hConnect As HINTERNET,
    75     lpszCurrentDirectory As LPSTR,
     92    lpszCurrentDirectory As LPTSTR,
    7693    lpdwCurrentDirectory As DWord) As BOOL
    7794
    78 Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" (
     95Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias _FuncName_FtpSetCurrentDirectory (
    7996    hConnect As HINTERNET,
    80     lpszDirectory As LPCSTR) As BOOL
     97    lpszDirectory As LPCTSTR) As BOOL
    8198
    82 Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA" (
     99Declare Function FtpFindFirstFile Lib "wininet.dll" Alias _FuncName_FtpFindFirstFile (
    83100    hConnect As HINTERNET,
    84     lpszSearchFile As LPCSTR,
    85     lpFindFileData As LPWIN32_FIND_DATA,
     101    lpszSearchFile As LPCTSTR,
     102    ByRef FindFileData As WIN32_FIND_DATA,
    86103    dwFlags As DWord,
    87104    dwContext As DWORD_PTR) As HINTERNET
    88105
    89 Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA" (
     106Declare Function InternetFindNextFile Lib "wininet.dll" Alias _FuncName_InternetFindNextFile (
    90107    hFind As HINTERNET,
    91     lpvFindData As VoidPtr) As BOOL
     108    ByREf vFindData As Any) As BOOL
    92109
    93110
Note: See TracChangeset for help on using the changeset viewer.