Changeset 141 for Include/api_shell.sbp
- Timestamp:
- Mar 8, 2007, 10:42:50 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_shell.sbp
r35 r141 5 5 #define _INC_SHELL 6 6 7 #ifdef UNICODE 8 Const _FuncName_DoEnvironmentSubst = "DoEnvironmentSubstW" 9 Const _FuncName_DragQueryFile = "DragQueryFileW" 10 Const _FuncName_ExtractAssociatedIcon = "ExtractAssociatedIconW" 11 Const _FuncName_ExtractIcon = "ExtractIconW" 12 Const _FuncName_ExtractIconEx = "ExtractIconExW" 13 Const _FuncName_FindExecutable = "FindExecutableW" 14 Const _FuncName_GUIDFromString = "GUIDFromStringW" 15 Const _FuncName_SHBrowseForFolder = "SHBrowseForFolderW" 16 Const _FuncName_ShellAbout = "ShellAboutW" 17 Const _FuncName_ShellExecute = "ShellExecuteW" 18 Const _FuncName_SHFileOperation = "SHFileOperationW" 19 Const _FuncName_SHGetPathFromIDList = "SHGetPathFromIDListW" 20 #else 21 Const _FuncName_DoEnvironmentSubst = "DoEnvironmentSubstA" 22 Const _FuncName_DragQueryFile = "DragQueryFileA" 23 Const _FuncName_ExtractAssociatedIcon = "ExtractAssociatedIconA" 24 Const _FuncName_ExtractIcon = "ExtractIconA" 25 Const _FuncName_ExtractIconEx = "ExtractIconExA" 26 Const _FuncName_FindExecutable = "FindExecutableA" 27 Const _FuncName_GUIDFromString = "GUIDFromStringA" 28 Const _FuncName_SHBrowseForFolder = "SHBrowseForFolderA" 29 Const _FuncName_ShellAbout = "ShellAboutA" 30 Const _FuncName_ShellExecute = "ShellExecuteA" 31 Const _FuncName_SHFileOperation = "SHFileOperationA" 32 Const _FuncName_SHGetPathFromIDList = "SHGetPathFromIDListA" 33 #endif 7 34 8 35 '----------- 9 36 ' Shell API 10 37 11 Declare Function DoEnvironmentSubst Lib "shell32" Alias "DoEnvironmentSubstA"(38 Declare Function DoEnvironmentSubst Lib "shell32" Alias _FuncName_DoEnvironmentSubst ( 12 39 pszString As PSTR, 13 40 cchString As DWord … … 16 43 Declare Sub DragAcceptFiles Lib "shell32" (hWnd As HWND, bAccept As BOOL) 17 44 Declare 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 DWord45 Declare Function DragQueryFile Lib "shell32" Alias _FuncName_DragQueryFile (hDrop As HDROP, iFile As Long, lpszFile As LPTSTR, cch As DWord) As DWord 19 46 Declare 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 HICON21 Declare Function ExtractIcon Lib "shell32" Alias "ExtractIconA" (hInst As HINSTANCE, lpszExeFileName As PCSTR, nIconIndex As Long) As HICON22 Declare Function ExtractIconEx Lib "shell32" Alias "ExtractIconExA"(lpszFile As PCSTR, nIconIndex As Long, phiconLarge As *DWord, phiconSmall As *DWord, nIcons As Long) As HICON23 24 Declare Function FindExecutable Lib "shell32" Alias "FindExecutableA"(25 pFile As PC STR,26 pDirectory As PC STR,27 pResult As PC STR47 Declare Function ExtractAssociatedIcon Lib "shell32" Alias _FuncName_ExtractAssociatedIcon (hInst As HINSTANCE, lpIconPath As LPTSTR, lpiIcon As *Word) As HICON 48 Declare Function ExtractIcon Lib "shell32" Alias _FuncName_ExtractIcon (hInst As HINSTANCE, lpszExeFileName As LPCTSTR, nIconIndex As Long) As HICON 49 Declare 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 51 Declare Function FindExecutable Lib "shell32" Alias _FuncName_FindExecutable ( 52 pFile As PCTSTR, 53 pDirectory As PCTSTR, 54 pResult As PCTSTR 28 55 ) As Long 29 56 30 Declare Function GUIDFromString Lib "shell32" Alias "GUIDFromStringA"(31 ByVal psz As PC STR,57 Declare Function GUIDFromString Lib "shell32" Alias _FuncName_GUIDFromString ( 58 ByVal psz As PCTSTR, 32 59 ByRef guid As GUID 33 60 ) As BOOL … … 38 65 Declare Function MIMEAssociationDialog Lib "url" ( 39 66 hwndParent As HWND, 40 41 pcszFile As PCSTR,42 pcszMIMEContentType As PCSTR,43 pszAppBuf As PSTR,44 67 dwInFlags As DWord, 68 pcszFile As PCTSTR, 69 pcszMIMEContentType As PCTSTR, 70 pszAppBuf As PTSTR, 71 ucAppBufLen As DWord 45 72 ) As HRESULT 46 73 … … 95 122 Typedef BFFCALLBACK = *Function(hwnd As HWND, uMsg As DWord, lParam As LPARAM, lpData As LPARAM) As Long 96 123 97 Type BROWSEINFO 124 Type BROWSEINFOW 98 125 hwndOwner As HWND 99 126 pidlRoot As VoidPtr 100 pszDisplayName As PSTR101 lpszTitle As PCSTR127 pszDisplayName As LPWSTR 128 lpszTitle As LPCWSTR 102 129 ulFlags As DWord 103 130 lpfn As BFFCALLBACK … … 105 132 iImage As Long 106 133 End Type 134 Type 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 143 End Type 144 #ifdef UNICODE 145 TypeDef BROWSEINFO = BROWSEINFOW 146 #else 147 TypeDef BROWSEINFO = BROWSEINFOA 148 #endif 107 149 108 150 Type SHITEMID … … 114 156 mkid As SHITEMID 115 157 End Type 116 Declare Function SHBrowseForFolder Lib "shell32" Alias "SHBrowseForFolderA" (ByRef lpbi As BROWSEINFO) As *ITEMIDLIST158 Declare Function SHBrowseForFolder Lib "shell32" Alias _FuncName_SHBrowseForFolder (ByRef bi As BROWSEINFO) As *ITEMIDLIST 117 159 118 160 Const SHCNE_RENAMEITEM = &h00000001 … … 175 217 176 218 ' ShellApi.h 177 Declare Function ShellAbout Lib "shell32" Alias "ShellAboutA" (hWnd As HWND, szApp As PCSTR, szOtherStuff As PCSTR, hIcon As HICON) As Long219 Declare Function ShellAbout Lib "shell32" Alias _FuncName_ShellAbout (hWnd As HWND, szApp As PCTSTR, szOtherStuff As PCTSTR, hIcon As HICON) As Long 178 220 179 221 Const SE_ERR_FNF = 2 … … 189 231 Const SE_ERR_NOASSOC = 31 190 232 ' 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 HINSTANCE233 Declare 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 192 234 193 235 Const FO_MOVE = &H0001 … … 207 249 Const FOF_NOERRORUI = &H0400 208 250 Const FOF_NOCOPYSECURITYATTRIBS = &H0800 209 Type SHFILEOPSTRUCT 251 Type 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 260 End Type 261 Type SHFILEOPSTRUCTA 210 262 hWnd As HWND 211 263 wFunc As DWord … … 215 267 fAnyOperationsAborted As BOOL 216 268 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 270 End Type 271 #ifdef UNICODE 272 TypeDef SHFILEOPSTRUCT = SHFILEOPSTRUCTW 273 #else 274 TypeDef SHFILEOPSTRUCT = SHFILEOPSTRUCTA 275 #endif 276 277 ' ShellApi.h 278 Declare Function SHFileOperation Lib "shell32" Alias _FuncName_SHFileOperation (ByRef FileOp As SHFILEOPSTRUCT) As Long 221 279 222 280 ' ShellApi.h … … 225 283 'SHGetDataFromIDList 226 284 227 Declare Function SHGetPathFromIDList Lib "shell32" Alias "SHGetPathFromIDListA" (pidl As *ITEMIDLIST, pszPath As PSTR) As Long285 Declare Function SHGetPathFromIDList Lib "shell32" Alias _FuncName_SHGetPathFromIDList (pidl As *ITEMIDLIST, pszPath As PTSTR) As Long 228 286 229 287 #endif '_INC_SHELL
Note:
See TracChangeset
for help on using the changeset viewer.