Changeset 141 for Include/api_shell.sbp


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

#50 API宣言の変更完了

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/api_shell.sbp

    r35 r141  
    55#define _INC_SHELL
    66
     7#ifdef UNICODE
     8Const _FuncName_DoEnvironmentSubst = "DoEnvironmentSubstW"
     9Const _FuncName_DragQueryFile = "DragQueryFileW"
     10Const _FuncName_ExtractAssociatedIcon = "ExtractAssociatedIconW"
     11Const _FuncName_ExtractIcon = "ExtractIconW"
     12Const _FuncName_ExtractIconEx = "ExtractIconExW"
     13Const _FuncName_FindExecutable = "FindExecutableW"
     14Const _FuncName_GUIDFromString = "GUIDFromStringW"
     15Const _FuncName_SHBrowseForFolder = "SHBrowseForFolderW"
     16Const _FuncName_ShellAbout = "ShellAboutW"
     17Const _FuncName_ShellExecute = "ShellExecuteW"
     18Const _FuncName_SHFileOperation = "SHFileOperationW"
     19Const _FuncName_SHGetPathFromIDList = "SHGetPathFromIDListW"
     20#else
     21Const _FuncName_DoEnvironmentSubst = "DoEnvironmentSubstA"
     22Const _FuncName_DragQueryFile = "DragQueryFileA"
     23Const _FuncName_ExtractAssociatedIcon = "ExtractAssociatedIconA"
     24Const _FuncName_ExtractIcon = "ExtractIconA"
     25Const _FuncName_ExtractIconEx = "ExtractIconExA"
     26Const _FuncName_FindExecutable = "FindExecutableA"
     27Const _FuncName_GUIDFromString = "GUIDFromStringA"
     28Const _FuncName_SHBrowseForFolder = "SHBrowseForFolderA"
     29Const _FuncName_ShellAbout = "ShellAboutA"
     30Const _FuncName_ShellExecute = "ShellExecuteA"
     31Const _FuncName_SHFileOperation = "SHFileOperationA"
     32Const _FuncName_SHGetPathFromIDList = "SHGetPathFromIDListA"
     33#endif
    734
    835'-----------
    936' Shell API
    1037
    11 Declare Function DoEnvironmentSubst Lib "shell32" Alias "DoEnvironmentSubstA" (
     38Declare Function DoEnvironmentSubst Lib "shell32" Alias _FuncName_DoEnvironmentSubst (
    1239    pszString As PSTR,
    1340    cchString As DWord
     
    1643Declare Sub DragAcceptFiles Lib "shell32" (hWnd As HWND, bAccept As BOOL)
    1744Declare Sub DragFinish Lib "shell32" (hDrop As HDROP)
    18 Declare Function DragQueryFile Lib "shell32" Alias "DragQueryFileA" (hDrop As HDROP, iFile As Long, lpszFile As PSTR, cch As DWord) As DWord
     45Declare Function DragQueryFile Lib "shell32" Alias _FuncName_DragQueryFile (hDrop As HDROP, iFile As Long, lpszFile As LPTSTR, cch As DWord) As DWord
    1946Declare Function DragQueryPoint Lib "shell32" (hDrop As HDROP, ByRef lpPoint As POINTAPI) As Long
    20 Declare Function ExtractAssociatedIcon Lib "shell32" Alias "ExtractAssociatedIconA" (hInst As HINSTANCE, lpIconPath As PSTR, lpiIcon As *Word) As HICON
    21 Declare Function ExtractIcon Lib "shell32" Alias "ExtractIconA" (hInst As HINSTANCE, lpszExeFileName As PCSTR, nIconIndex As Long) As HICON
    22 Declare Function ExtractIconEx Lib "shell32" Alias "ExtractIconExA" (lpszFile As PCSTR, nIconIndex As Long, phiconLarge As *DWord, phiconSmall As *DWord, nIcons As Long) As HICON
    23 
    24 Declare Function FindExecutable Lib "shell32" Alias "FindExecutableA" (
    25     pFile As PCSTR,
    26     pDirectory As PCSTR,
    27     pResult As PCSTR
     47Declare Function ExtractAssociatedIcon Lib "shell32" Alias _FuncName_ExtractAssociatedIcon (hInst As HINSTANCE, lpIconPath As LPTSTR, lpiIcon As *Word) As HICON
     48Declare Function ExtractIcon Lib "shell32" Alias _FuncName_ExtractIcon (hInst As HINSTANCE, lpszExeFileName As LPCTSTR, nIconIndex As Long) As HICON
     49Declare Function ExtractIconEx Lib "shell32" Alias _FuncName_ExtractIconEx (lpszFile As PCSTR, nIconIndex As Long, phiconLarge As *DWord, phiconSmall As *DWord, nIcons As Long) As HICON
     50
     51Declare Function FindExecutable Lib "shell32" Alias _FuncName_FindExecutable (
     52    pFile As PCTSTR,
     53    pDirectory As PCTSTR,
     54    pResult As PCTSTR
    2855) As Long
    2956
    30 Declare Function GUIDFromString Lib "shell32" Alias "GUIDFromStringA" (
    31     ByVal psz As PCSTR,
     57Declare Function GUIDFromString Lib "shell32" Alias _FuncName_GUIDFromString (
     58    ByVal psz As PCTSTR,
    3259    ByRef guid As GUID
    3360) As BOOL
     
    3865Declare Function MIMEAssociationDialog Lib "url" (
    3966    hwndParent As HWND,
    40     dwInFlags As DWord,
    41     pcszFile As PCSTR,
    42     pcszMIMEContentType As PCSTR,
    43     pszAppBuf As PSTR,
    44     ucAppBufLen As DWord
     67    dwInFlags As DWord,
     68    pcszFile As PCTSTR,
     69    pcszMIMEContentType As PCTSTR,
     70    pszAppBuf As PTSTR,
     71    ucAppBufLen As DWord
    4572) As HRESULT
    4673
     
    95122Typedef BFFCALLBACK = *Function(hwnd As HWND, uMsg As DWord, lParam As LPARAM, lpData As LPARAM) As Long
    96123
    97 Type BROWSEINFO
     124Type BROWSEINFOW
    98125    hwndOwner      As HWND
    99126    pidlRoot       As VoidPtr
    100     pszDisplayName As PSTR
    101     lpszTitle      As PCSTR
     127    pszDisplayName As LPWSTR
     128    lpszTitle      As LPCWSTR
    102129    ulFlags        As DWord
    103130    lpfn           As BFFCALLBACK
     
    105132    iImage         As Long
    106133End Type
     134Type BROWSEINFOA
     135    hwndOwner      As HWND
     136    pidlRoot       As VoidPtr
     137    pszDisplayName As LPSTR
     138    lpszTitle      As LPCSTR
     139    ulFlags        As DWord
     140    lpfn           As BFFCALLBACK
     141    lParam         As LPARAM
     142    iImage         As Long
     143End Type
     144#ifdef UNICODE
     145TypeDef BROWSEINFO = BROWSEINFOW
     146#else
     147TypeDef BROWSEINFO = BROWSEINFOA
     148#endif
    107149
    108150Type SHITEMID
     
    114156    mkid As SHITEMID
    115157End Type
    116 Declare Function SHBrowseForFolder Lib "shell32" Alias "SHBrowseForFolderA" (ByRef lpbi As BROWSEINFO) As *ITEMIDLIST
     158Declare Function SHBrowseForFolder Lib "shell32" Alias _FuncName_SHBrowseForFolder (ByRef bi As BROWSEINFO) As *ITEMIDLIST
    117159
    118160Const SHCNE_RENAMEITEM          = &h00000001
     
    175217
    176218' ShellApi.h
    177 Declare Function ShellAbout Lib "shell32" Alias "ShellAboutA" (hWnd As HWND, szApp As PCSTR, szOtherStuff As PCSTR, hIcon As HICON) As Long
     219Declare Function ShellAbout Lib "shell32" Alias _FuncName_ShellAbout (hWnd As HWND, szApp As PCTSTR, szOtherStuff As PCTSTR, hIcon As HICON) As Long
    178220
    179221Const SE_ERR_FNF =             2
     
    189231Const SE_ERR_NOASSOC =         31
    190232' ShellApi.h
    191 Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" (hWnd As HWND, lpOperation As PCSTR, lpFile As PCSTR, lpParameters As PCSTR, lpDirectory As PCSTR, nShowCmd As Long) As HINSTANCE
     233Declare Function ShellExecute Lib "shell32" Alias _FuncName_ShellExecute (hWnd As HWND, lpOperation As LPCTSTR, lpFile As LPCTSTR, lpParameters As LPCTSTR, lpDirectory As LPCTSTR, nShowCmd As Long) As HINSTANCE
    192234
    193235Const FO_MOVE =   &H0001
     
    207249Const FOF_NOERRORUI =             &H0400
    208250Const FOF_NOCOPYSECURITYATTRIBS = &H0800
    209 Type SHFILEOPSTRUCT
     251Type SHFILEOPSTRUCTW
     252    hWnd As HWND
     253    wFunc As DWord
     254    pFrom As PCWSTR
     255    pTo As PCWSTR
     256    fFlags As Word
     257    fAnyOperationsAborted As BOOL
     258    hNameMappings As VoidPtr
     259    lpszProgressTitle As LPCWSTR
     260End Type
     261Type SHFILEOPSTRUCTA
    210262    hWnd As HWND
    211263    wFunc As DWord
     
    215267    fAnyOperationsAborted As BOOL
    216268    hNameMappings As VoidPtr
    217     lpszProgressTitle As PCSTR
    218 End Type
    219 ' ShellApi.h
    220 Declare Function SHFileOperation Lib "shell32" Alias "SHFileOperationA" (ByRef lpFileOp As SHFILEOPSTRUCT) As Long
     269    lpszProgressTitle As LPCSTR
     270End Type
     271#ifdef UNICODE
     272TypeDef SHFILEOPSTRUCT = SHFILEOPSTRUCTW
     273#else
     274TypeDef SHFILEOPSTRUCT = SHFILEOPSTRUCTA
     275#endif
     276
     277' ShellApi.h
     278Declare Function SHFileOperation Lib "shell32" Alias _FuncName_SHFileOperation (ByRef FileOp As SHFILEOPSTRUCT) As Long
    221279
    222280' ShellApi.h
     
    225283'SHGetDataFromIDList
    226284
    227 Declare Function SHGetPathFromIDList Lib "shell32" Alias "SHGetPathFromIDListA" (pidl As *ITEMIDLIST, pszPath As PSTR) As Long
     285Declare Function SHGetPathFromIDList Lib "shell32" Alias _FuncName_SHGetPathFromIDList (pidl As *ITEMIDLIST, pszPath As PTSTR) As Long
    228286
    229287#endif '_INC_SHELL
Note: See TracChangeset for help on using the changeset viewer.