source: Include/api_shell.sbp@ 160

Last change on this file since 160 was 160, checked in by イグトランス (egtra), 17 years ago

API宣言の追加(主にフォーラムに投稿されたものより)

File size: 20.6 KB
Line 
1' api_shell.sbp
2
3
4#ifndef _INC_SHELL
5#define _INC_SHELL
6
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_ShellExecuteEx = "ShellExecuteExW"
19Const _FuncName_Shell_NotifyIcon = "_FuncName_Shell_NotifyIconW"
20Const _FuncName_SHEmptyRecycleBin = "_FuncName_SHEmptyRecycleBinW"
21Const _FuncName_SHFileOperation = "SHFileOperationW"
22Const _FuncName_SHGetFileInfo = "_FuncName_SHGetFileInfoW"
23Const _FuncName_SHGetPathFromIDList = "SHGetPathFromIDListW"
24Const _FuncName_SHGetSpecialFolderPath = "_FuncName_SHGetSpecialFolderPathW"
25#else
26Const _FuncName_DoEnvironmentSubst = "DoEnvironmentSubstA"
27Const _FuncName_DragQueryFile = "DragQueryFileA"
28Const _FuncName_ExtractAssociatedIcon = "ExtractAssociatedIconA"
29Const _FuncName_ExtractIcon = "ExtractIconA"
30Const _FuncName_ExtractIconEx = "ExtractIconExA"
31Const _FuncName_FindExecutable = "FindExecutableA"
32Const _FuncName_GUIDFromString = "GUIDFromStringA"
33Const _FuncName_SHBrowseForFolder = "SHBrowseForFolderA"
34Const _FuncName_ShellAbout = "ShellAboutA"
35Const _FuncName_ShellExecute = "ShellExecuteA"
36Const _FuncName_ShellExecuteEx = "ShellExecuteExA"
37Const _FuncName_Shell_NotifyIcon = "_FuncName_Shell_NotifyIconA"
38Const _FuncName_SHEmptyRecycleBin = "_FuncName_SHEmptyRecycleBinA"
39Const _FuncName_SHFileOperation = "SHFileOperationA"
40Const _FuncName_SHGetFileInfo = "_FuncName_SHGetFileInfoA"
41Const _FuncName_SHGetPathFromIDList = "SHGetPathFromIDListA"
42Const _FuncName_SHGetSpecialFolderPath = "_FuncName_SHGetSpecialFolderPathA"
43#endif
44
45Interface IEnumIDList
46End Interface
47
48'-----------
49' Shell API
50
51' shellapi.h
52Declare Function DoEnvironmentSubst Lib "shell32" Alias _FuncName_DoEnvironmentSubst (
53 pszString As PTSTR,
54 cchString As DWord
55) As DWord
56
57' shellapi.h
58Declare Sub DragAcceptFiles Lib "shell32" (hWnd As HWND, bAccept As BOOL)
59Declare Sub DragFinish Lib "shell32" (hDrop As HDROP)
60Declare Function DragQueryFile Lib "shell32" Alias _FuncName_DragQueryFile (hDrop As HDROP, iFile As Long, lpszFile As LPTSTR, cch As DWord) As DWord
61Declare Function DragQueryPoint Lib "shell32" (hDrop As HDROP, ByRef lpPoint As POINTAPI) As Long
62Declare Function ExtractAssociatedIcon Lib "shell32" Alias _FuncName_ExtractAssociatedIcon (hInst As HINSTANCE, lpIconPath As LPTSTR, lpiIcon As *Word) As HICON
63' Shellapi.h
64Declare Function ExtractIcon Lib "shell32" Alias _FuncName_ExtractIcon (hInst As HINSTANCE, lpszExeFileName As LPCTSTR, nIconIndex As Long) As HICON
65Declare Function ExtractIconEx Lib "shell32" Alias _FuncName_ExtractIconEx (lpszFile As PCSTR, nIconIndex As Long, phiconLarge As *DWord, phiconSmall As *DWord, nIcons As Long) As HICON
66
67' shellapi.h
68Declare Function FindExecutable Lib "shell32" Alias _FuncName_FindExecutable (
69 lpFile As LPCTSTR,
70 lpDirectory As LPCTSTR,
71 lpResult As LPCTSTR
72) As Long
73
74Declare Function GUIDFromString Lib "shell32" Alias _FuncName_GUIDFromString (
75 ByVal psz As PCTSTR,
76 ByRef guid As GUID
77) As BOOL
78
79' intshcut.h
80Declare Function InetIsOffline Lib "url" (dwFlags As DWord) As BOOL
81' intshcut.h
82Declare Function MIMEAssociationDialog Lib "url" (
83 hwndParent As HWND,
84 dwInFlags As DWord,
85 pcszFile As PCTSTR,
86 pcszMIMEContentType As PCTSTR,
87 pszAppBuf As PTSTR,
88 ucAppBufLen As DWord
89) As HRESULT
90
91' shlobj.h
92Declare Sub SHAddToRecentDocs Lib "shell32" (ByVal uFlags As Long, ByVal pv As VoidPtr)
93
94Const ABM_NEW = &h00000000
95Const ABM_REMOVE = &h00000001
96Const ABM_QUERYPOS = &h00000002
97Const ABM_SETPOS = &h00000003
98Const ABM_GETSTATE = &h00000004
99Const ABM_GETTASKBARPOS = &h00000005
100Const ABM_ACTIVATE = &h00000006
101Const ABM_GETAUTOHIDEBAR = &h00000007
102Const ABM_SETAUTOHIDEBAR = &h00000008
103Const ABM_WINDOWPOSCHANGED = &h0000009
104Const ABM_SETSTATE = &h0000000a
105
106Const ABN_STATECHANGE = &h0000000
107Const ABN_POSCHANGED = &h0000001
108Const ABN_FULLSCREENAPP = &h0000002
109Const ABN_WINDOWARRANGE = &h0000003
110
111Const ABS_AUTOHIDE = &h0000001
112Const ABS_ALWAYSONTOP = &h0000002
113
114Const ABE_LEFT = 0
115Const ABE_TOP = 1
116Const ABE_RIGHT = 2
117Const ABE_BOTTOM = 3
118
119Type APPBARDATA
120 cbSize As DWord
121 hWnd As HWND
122 uCallbackMessage As DWord
123 uEdge As DWord
124 rc As RECT
125 lParam As LPARAM
126End Type
127
128' shellapi.h
129Declare Function SHAppBarMessage Lib "shell32" (dwMessage As DWord, ByRef Data As APPBARDATA) As ULONG_PTR
130
131Const BIF_RETURNONLYFSDIRS = &H0001
132Const BIF_DONTGOBELOWDOMAIN = &H0002
133Const BIF_STATUSTEXT = &H0004
134Const BIF_RETURNFSANCESTORS = &H0008
135Const BIF_EDITBOX = &H0010
136Const BIF_VALIDATE = &H0020
137Const BIF_BROWSEFORCOMPUTER = &H1000
138Const BIF_BROWSEFORPRINTER = &H2000
139Const BIF_BROWSEINCLUDEFILES = &H4000
140
141Typedef BFFCALLBACK = *Function(hwnd As HWND, uMsg As DWord, lParam As LPARAM, lpData As LPARAM) As Long
142
143Type BROWSEINFOW
144 hwndOwner As HWND
145 pidlRoot As VoidPtr
146 pszDisplayName As LPWSTR
147 lpszTitle As LPCWSTR
148 ulFlags As DWord
149 lpfn As BFFCALLBACK
150 lParam As LPARAM
151 iImage As Long
152End Type
153Type BROWSEINFOA
154 hwndOwner As HWND
155 pidlRoot As VoidPtr
156 pszDisplayName As LPSTR
157 lpszTitle As LPCSTR
158 ulFlags As DWord
159 lpfn As BFFCALLBACK
160 lParam As LPARAM
161 iImage As Long
162End Type
163#ifdef UNICODE
164TypeDef BROWSEINFO = BROWSEINFOW
165#else
166TypeDef BROWSEINFO = BROWSEINFOA
167#endif
168
169Type SHITEMID 'shtypes.h
170 cb As Word
171 abID[ELM(1)] As Byte
172End Type
173
174Type ITEMIDLIST 'shtypes.h
175 mkid As SHITEMID
176End Type
177
178typedef LPITEMIDLIST = /*__unaligned*/ *ITEMIDLIST
179typedef LPCITEMIDLIST = /*__unaligned const*/ *ITEMIDLIST
180
181'shlobj.h
182Declare Function SHBrowseForFolder Lib "shell32" Alias _FuncName_SHBrowseForFolder (ByRef bi As BROWSEINFO) As *ITEMIDLIST
183
184Const SHCNE_RENAMEITEM = &h00000001
185Const SHCNE_CREATE = &h00000002
186Const SHCNE_DELETE = &h00000004
187Const SHCNE_MKDIR = &h00000008
188Const SHCNE_RMDIR = &h00000010
189Const SHCNE_MEDIAINSERTED = &h00000020
190Const SHCNE_MEDIAREMOVED = &h00000040
191Const SHCNE_DRIVEREMOVED = &h00000080
192Const SHCNE_DRIVEADD = &h00000100
193Const SHCNE_NETSHARE = &h00000200
194Const SHCNE_NETUNSHARE = &h00000400
195Const SHCNE_ATTRIBUTES = &h00000800
196Const SHCNE_UPDATEDIR = &h00001000
197Const SHCNE_UPDATEITEM = &h00002000
198Const SHCNE_SERVERDISCONNECT = &h00004000
199Const SHCNE_UPDATEIMAGE = &h00008000
200Const SHCNE_DRIVEADDGUI = &h00010000
201Const SHCNE_RENAMEFOLDER = &h00020000
202Const SHCNE_FREESPACE = &h00040000
203
204#ifdef __UNDEFINED__ '#if _WIN32_IE >= 0x0400
205Const SHCNE_EXTENDED_EVENT = &h04000000
206#endif
207
208Const SHCNE_ASSOCCHANGED = &h08000000
209
210Const SHCNE_DISKEVENTS = &h0002381F
211Const SHCNE_GLOBALEVENTS = &h0C0581E0
212Const SHCNE_ALLEVENTS = &h7FFFFFFF
213Const SHCNE_INTERRUPT = &h80000000
214
215#ifdef __UNDEFINED__ '#if _WIN32_IE >= 0x0400
216Const SHCNEE_ORDERCHANGED = 2
217Const SHCNEE_MSI_CHANGE = 4
218Const SHCNEE_MSI_UNINSTALL = 5
219#endif
220
221Const SHCNF_IDLIST = &h0000
222Const SHCNF_PATHA = &h0001
223Const SHCNF_PRINTERA = &h0002
224Const SHCNF_DWORD = &h0003
225Const SHCNF_PATHW = &h0005
226Const SHCNF_PRINTERW = &h0006
227Const SHCNF_TYPE = &h00FF
228Const SHCNF_FLUSH = &h1000
229Const SHCNF_FLUSHNOWAIT = &h2000
230
231#ifdef UNICODE
232Const SHCNF_PATH = SHCNF_PATHW
233Const SHCNF_PRINTER = SHCNF_PRINTERW
234#else
235Const SHCNF_PATH = SHCNF_PATHA
236Const SHCNF_PRINTER = SHCNF_PRINTERA
237#endif
238
239' ShlObj.h
240Declare Sub SHChangeNotify Lib "shell32" (wEventId As Long, uFlags As DWord, dwItem1 As VoidPtr, dwItem2 As VoidPtr)
241
242' ShellApi.h
243Declare Function ShellAbout Lib "shell32" Alias _FuncName_ShellAbout (hWnd As HWND, szApp As PCTSTR, szOtherStuff As PCTSTR, hIcon As HICON) As Long
244
245Const SE_ERR_FNF = 2
246Const SE_ERR_PNF = 3
247Const SE_ERR_ACCESSDENIED = 5
248Const SE_ERR_OOM = 8
249Const SE_ERR_DLLNOTFOUND = 32
250Const SE_ERR_SHARE = 26
251Const SE_ERR_ASSOCINCOMPLETE = 27
252Const SE_ERR_DDETIMEOUT = 28
253Const SE_ERR_DDEFAIL = 29
254Const SE_ERR_DDEBUSY = 30
255Const SE_ERR_NOASSOC = 31
256' ShellApi.h
257Declare 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
258
259Const SEE_MASK_CLASSNAME = &H0001
260Const SEE_MASK_CLASSKEY = &H0003
261Const SEE_MASK_IDLIST = &H0004
262Const SEE_MASK_INVOKEIDLIST = &H000C
263Const SEE_MASK_ICON = &H0010
264Const SEE_MASK_HOTKEY = &H0020
265Const SEE_MASK_NOCLOSEPROCESS = &H0040
266Const SEE_MASK_CONNECTNETDRV = &H0080
267Const SEE_MASK_FLAG_DDEWAIT = &H0100
268Const SEE_MASK_DOENVSUBST = &H0200
269Const SEE_MASK_FLAG_NO_UI = &H0400
270
271Type SHELLEXECUTEINFOA
272 cbSize As DWord
273 fMask As DWord
274 hwnd As HWND
275 lpVerb As LPCSTR
276 lpFile As LPCSTR
277 lpParameters As LPCSTR
278 lpDirectory As LPCSTR
279 nShow As Long
280 hInstApp As HINSTANCE
281 lpIDList As LPVOID
282 lpClass As LPCSTR
283 hkeyClass As HKEY
284 dwHotKey As DWord
285 hIcon As HANDLE
286 hProcess As HANDLE
287End Type
288Type SHELLEXECUTEINFOW
289 cbSize As DWord
290 fMask As DWord
291 hwnd As HWND
292 lpVerb As LPCWSTR
293 lpFile As LPCWSTR
294 lpParameters As LPCWSTR
295 lpDirectory As LPCWSTR
296 nShow As Long
297 hInstApp As HINSTANCE
298 lpIDList As LPVOID
299 lpClass As LPCWSTR
300 hkeyClass As HKEY
301 dwHotKey As DWord
302 hIcon As HANDLE
303 hProcess As HANDLE
304End Type
305#ifdef UNICODE
306TypeDef SHELLEXECUTEINFO = SHELLEXECUTEINFOW
307#else
308TypeDef SHELLEXECUTEINFO = SHELLEXECUTEINFOA
309#endif
310TypeDef LPSHELLEXECUTEINFO = *SHELLEXECUTEINFO
311Declare Function ShellExecuteEx Lib "shell32" Alias _FuncName_ShellExecuteEx (ByRef ExecInfo As SHELLEXECUTEINFO) As BOOL
312
313Const FO_MOVE = &H0001
314Const FO_COPY = &H0002
315Const FO_DELETE = &H0003
316Const FO_RENAME = &H0004
317Const FOF_MULTIDESTFILES = &H0001
318Const FOF_CONFIRMMOUSE = &H0002
319Const FOF_SILENT = &H0004
320Const FOF_RENAMEONCOLLISION = &H0008
321Const FOF_NOCONFIRMATION = &H0010
322Const FOF_WANTMAPPINGHANDLE = &H0020
323Const FOF_ALLOWUNDO = &H0040
324Const FOF_FILESONLY = &H0080
325Const FOF_SIMPLEPROGRESS = &H0100
326Const FOF_NOCONFIRMMKDIR = &H0200
327Const FOF_NOERRORUI = &H0400
328Const FOF_NOCOPYSECURITYATTRIBS = &H0800
329Type SHFILEOPSTRUCTW
330 hWnd As HWND
331 wFunc As DWord
332 pFrom As PCWSTR
333 pTo As PCWSTR
334 fFlags As Word
335 fAnyOperationsAborted As BOOL
336 hNameMappings As VoidPtr
337 lpszProgressTitle As LPCWSTR
338End Type
339Type SHFILEOPSTRUCTA
340 hWnd As HWND
341 wFunc As DWord
342 pFrom As PCSTR
343 pTo As PCSTR
344 fFlags As Word
345 fAnyOperationsAborted As BOOL
346 hNameMappings As VoidPtr
347 lpszProgressTitle As LPCSTR
348End Type
349#ifdef UNICODE
350TypeDef SHFILEOPSTRUCT = SHFILEOPSTRUCTW
351#else
352TypeDef SHFILEOPSTRUCT = SHFILEOPSTRUCTA
353#endif
354
355' ShellApi.h
356Declare Function SHFileOperation Lib "shell32" Alias _FuncName_SHFileOperation (ByRef FileOp As SHFILEOPSTRUCT) As Long
357
358' ShellApi.h
359Declare Sub SHFreeNameMappings Lib "shell32" (hNameMappings As HANDLE)
360
361'SHGetDataFromIDList
362
363'shlobj.h
364Declare Function SHGetDesktopFolder Lib "shell32" (ByRef pshf As *IShellFolder) As HRESULT
365
366Declare Function SHGetPathFromIDList Lib "shell32" Alias _FuncName_SHGetPathFromIDList (pidl As *ITEMIDLIST, pszPath As PTSTR) As Long
367
368' ShellApi.h
369Declare Function SHEmptyRecycleBin Lib"shell32" Alias _FuncName_SHEmptyRecycleBin (hwnd As HWND, pszRootPath As LPCTSTR, dwFlags As DWord) As HRESULT
370
371' ShlObj.h
372Declare Function SHGetSpecialFolderPath Lib "shell32" Alias _FuncName_SHGetSpecialFolderPath (hwndOwner As HWND, lpszPath As LPTSTR, nFolder As Long, fCreate As BOOL) As BOOL
373
374' shlobj.h
375Declare Function SHGetInstanceExplorer Lib "shell32" (ByRef ppunk As *IUnknown) As HRESULT
376
377Const CSIDL_PERSONAL = 5
378Const CSIDL_FAVORITIES = 6
379
380Const SHGFI_ICON = &H000000100
381Const SHGFI_DISPLAYNAME = &H000000200
382Const SHGFI_TYPENAME = &H000000400
383Const SHGFI_ATTRIBUTES = &H000000800
384Const SHGFI_ICONLOCATION = &H000001000
385Const SHGFI_EXETYPE = &H000002000
386Const SHGFI_SYSICONINDEX = &H000004000
387Const SHGFI_LINKOVERLAY = &H000008000
388Const SHGFI_SELECTED = &H000010000
389Const SHGFI_ATTR_SPECIFIED = &H000020000
390Const SHGFI_LARGEICON = &H000000000
391Const SHGFI_SMALLICON = &H000000001
392Const SHGFI_OPENICON = &H000000002
393Const SHGFI_SHELLICONSIZE = &H000000004
394Const SHGFI_PIDL = &H000000008
395Const SHGFI_USEFILEATTRIBUTES = &H000000010
396Const SHGFI_ADDOVERLAYS = &H000000020
397Const SHGFI_OVERLAYINDEX = &H000000040
398
399' ShellApi.h
400Type SHFILEINFO
401 hIcon As HICON
402 iIcon As Long
403 dwAttributes As DWord
404 szDisplayName[ELM(MAX_PATH)] As TCHAR
405 szTypeName[ELM(80)] As TCHAR
406End Type
407
408' shellapi.h
409Declare Function SHGetFileInfo Lib "shell32" Alias _FuncName_SHGetFileInfo (pszPath As LPCTSTR, dwFileAttributes As DWord, ByRef sfi As SHFILEINFO, cbFileInfo As DWord, uFlags As DWord) As ULONG_PTR
410
411Type NOTIFYICONDATAW
412 cbSize As DWord
413 hWnd As HWND
414 uID As DWord
415 uFlags As DWord
416 uCallbackMessage As DWord
417 hIcon As HICON
418 szTip[ELM(64)] As WCHAR
419 dwState As DWord
420 dwStateMask As DWord
421 szInfo[ELM(256)] As WCHAR
422 'Union
423 uTimeout As DWord
424 ' uVersion As DWord
425 'End Union
426 szInfoTitle[ELM(64)] As WCHAR
427 dwInfoFlags As DWord
428 guidItem As GUID
429End Type
430Type NOTIFYICONDATAA
431 cbSize As DWord
432 hWnd As HWND
433 uID As DWord
434 uFlags As DWord
435 uCallbackMessage As DWord
436 hIcon As HICON
437 szTip[ELM(64)] As SByte
438 dwState As DWord
439 dwStateMask As DWord
440 szInfo[ELM(256)] As SByte
441 'Union
442 uTimeout As DWord
443 ' uVersion As DWord
444 'End Union
445 szInfoTitle[ELM(64)] As SByte
446 dwInfoFlags As DWord
447 guidItem As GUID
448End Type
449#ifdef UNICODE
450TypeDef NOTIFYICONDATA = NOTIFYICONDATAW
451#else
452TypeDef NOTIFYICONDATA = NOTIFYICONDATAA
453#endif
454Declare Function Shell_NotifyIcon Lib "shell32" Alias _FuncName_Shell_NotifyIcon (dwMessage As DWORD, ByRef data As NOTIFYICONDATA) As BOOL
455
456Type STRRET 'shtypes.h
457 uType As DWord
458 'Union
459 'pOleStr As *WCHAR
460 'uOffset As DWord
461 cStr[ELM(MAX_PATH)] As Byte
462 'End Union
463End Type
464
465' shobjidl.h
466Enum SLGP_FLAGS
467 SLGP_SHORTPATH = &h1
468 SLGP_UNCPRIORITY = &h2
469 SLGP_RAWPATH = &h4
470 SLGP_RELATIVEPRIORITY = &h8
471End Enum
472
473Interface IShellLinkA 'shobjidl.h
474 Inherits IUnknown
475
476 Function GetPath(
477 /* [size_is][out] */ pszFile As PSTR,
478 /* [in] */ cch As Long,
479 /* [full][out][in] */ pfd As *WIN32_FIND_DATAA,
480 /* [in] */ fFlags As DWord) As HRESULT
481 Function GetIDList(
482 /* [out] */ ByRef ppidl As LPITEMIDLIST) As HRESULT
483 Function SetIDList(
484 /* [in] */ pidl As LPCITEMIDLIST) As HRESULT
485 Function GetDescription(
486 /* [size_is][out] */ pszName As PSTR,
487 /* [in] */ cch As Long) As HRESULT
488 Function SetDescription(
489 /* [in] */ pszName As PCSTR) As HRESULT
490 Function GetWorkingDirectory(
491 /* [size_is][out] */ pszDir As PSTR,
492 /* [in] */ cch As Long) As HRESULT
493 Function SetWorkingDirectory(
494 /* [in] */ pszDir As PCSTR) As HRESULT
495 Function GetArguments(
496 /* [size_is][out] */ pszArgs As PSTR,
497 /* [in] */ cch As Long) As HRESULT
498 Function SetArguments(
499 /* [in] */ pszArgs As PCSTR) As HRESULT
500 Function GetHotkey(
501 /* [out] */ ByRef wHotkey As Word) As HRESULT
502 Function SetHotkey(
503 /* [in] */ wHotkey As Word) As HRESULT
504 Function GetShowCmd(
505 /* [out] */ ByRef piShowCmd As Long) As HRESULT
506 Function SetShowCmd(
507 /* [in] */ iShowCmd As Long) As HRESULT
508 Function GetIconLocation(
509 /* [size_is][out] */ pszIconPath As PSTR,
510 /* [in] */ cch As Long,
511 /* [out] */ ByRef iIcon As Long) As HRESULT
512 Function SetIconLocation(
513 /* [in] */ pszIconPath As PCSTR,
514 /* [in] */ iIcon As Long) As HRESULT
515 Function SetRelativePath(
516 /* [in] */ pszPathRel As PCSTR,
517 /* [in] */ dwReserved As DWord) As HRESULT
518 Function Resolve(
519 /* [in] */ hwnd As HWND,
520 /* [in] */ fFlags As DWord) As HRESULT
521 Function SetPath(
522 /* [in] */ pszFile As PCSTR) As HRESULT
523End Interface
524
525Interface IShellLinkW 'shobjidl.h
526 Inherits IUnknown
527
528 Function GetPath(
529 /* [size_is][out] */ pszFile As PWSTR,
530 /* [in] */ cch As Long,
531 /* [full][out][in] */ pfd As *WIN32_FIND_DATAW,
532 /* [in] */ fFlags As DWord) As HRESULT
533 Function GetIDList(
534 /* [out] */ ppidl As *LPITEMIDLIST) As HRESULT
535 Function SetIDList(
536 /* [in] */ pidl As LPCITEMIDLIST) As HRESULT
537 Function GetDescription(
538 /* [size_is][out] */ pszName As PWSTR,
539 /* [in] */ cch As Long) As HRESULT
540 Function SetDescription(
541 /* [in] */ pszName As PCWSTR) As HRESULT
542 Function GetWorkingDirectory(
543 /* [size_is][out] */ pszDir As PSTR,
544 /* [in] */ cch As Long) As HRESULT
545 Function SetWorkingDirectory(
546 /* [in] */ pszDir As PCWSTR) As HRESULT
547 Function GetArguments(
548 /* [size_is][out] */ pszArgs As PSTR,
549 /* [in] */ cch As Long) As HRESULT
550 Function SetArguments(
551 /* [in] */ pszArgs As PCWSTR) As HRESULT
552 Function GetHotkey(
553 /* [out] */ ByRef wHotkey As Word) As HRESULT
554 Function SetHotkey(
555 /* [in] */ wHotkey As Word) As HRESULT
556 Function GetShowCmd(
557 /* [out] */ ByRef piShowCmd As Long) As HRESULT
558 Function SetShowCmd(
559 /* [in] */ iShowCmd As Long) As HRESULT
560 Function GetIconLocation(
561 /* [size_is][out] */ pszIconPath As PWSTR,
562 /* [in] */ cch As Long,
563 /* [out] */ ByRef iIcon As Long) As HRESULT
564 Function SetIconLocation(
565 /* [in] */ pszIconPath As PCWSTR,
566 /* [in] */ iIcon As Long) As HRESULT
567 Function SetRelativePath(
568 /* [in] */ pszPathRel As PCWSTR,
569 /* [in] */ dwReserved As DWord) As HRESULT
570 Function Resolve(
571 /* [in] */ hwnd As HWND,
572 /* [in] */ fFlags As DWord) As HRESULT
573 Function SetPath(
574 /* [in] */ pszFile As PCWSTR) As HRESULT
575End Interface
576
577#ifdef UNICODE
578TypeDef IShellLink = IShellLinkW
579#else
580TypeDef IShellLink = IShellLinkA
581#endif
582
583Enum SHCONT
584 SHCONTF_FOLDERS = &h0020
585 SHCONTF_NONFOLDERS = &h0040
586 SHCONTF_INCLUDEHIDDEN = &h0080
587 SHCONTF_INIT_ON_FIRST_NEXT = &h0100
588 SHCONTF_NETPRINTERSRCH = &h0200
589 SHCONTF_SHAREABLE = &h0400
590 SHCONTF_STORAGE = &h0800
591End Enum
592
593Enum SHGNO
594 SHGDN_NORMAL = &h0000
595 SHGDN_INFOLDER = &h0001
596 SHGDN_FOREDITING = &h1000
597 SHGDN_FORADDRESSBAR = &h4000
598 SHGDN_FORPARSING = &h8000
599End Enum
600
601TypeDef SHCONTF = DWord
602TypeDef SFGAOF = DWord
603TypeDef SHGDNF = DWord
604
605Dim IID_IShellFolder = [&h000214E6, 0, 0, [&hC0, 0, 0, 0, 0, 0, 0, &h46]] As IID
606Interface IShellFolder 'shobjidl.h
607 Inherits IUnknown
608
609 Function ParseDisplayName(
610 /* [in] */ hwnd As HWND,
611 /* [in] */ pbc As *IBindCtx,
612 /* [string][in] */ pszDisplayName As LPOLESTR,
613 /* [out] */ pchEaten As *DWord,
614 /* [out] */ ByRef pidl As *ITEMIDLIST,
615 /* [unique][out][in] */ pdwAttributes As *DWord) As HRESULT
616 Function EnumObjects(
617 /* [in] */ hwnd As HWND,
618 /* [in] */ grfFlags As SHCONTF,
619 /* [out] */ ByRef penumIDList As *IEnumIDList) As HRESULT
620 Function BindToObject(
621 /* [in] */ pidl As *ITEMIDLIST,
622 /* [in] */ pbc As *IBindCtx,
623 /* [in] */ ByRef riid As IID,
624 /* [iid_is][out] */ ppv As *VoidPtr) As HRESULT
625 Function BindToStorage(
626 /* [in] */ pidl As *ITEMIDLIST,
627 /* [in] */ pbc As *IBindCtx,
628 /* [in] */ ByRef riid As IID,
629 /* [iid_is][out] */ ppv As *VoidPtr) As HRESULT
630 Function CompareIDs(
631 /* [in] */ lParam As LPARAM,
632 /* [in] */ pidl1 As *ITEMIDLIST,
633 /* [in] */ pidl2 As *ITEMIDLIST) As HRESULT
634 Function CreateViewObject(
635 /* [in] */ hwndOwner As HWND,
636 /* [in] */ ByRef riid As IID,
637 /* [iid_is][out] */ ppv As *VoidPtr) As HRESULT
638 Function GetAttributesOf(
639 /* [in] */ cidl As DWord,
640 /* [size_is][in] */ apidl As *ITEMIDLIST,
641 /* [out][in] */ ByRef rgfInOut As SFGAOF) As HRESULT
642 Function GetUIObjectOf(
643 /* [in] */ hwndOwner As HWND,
644 /* [in] */ cidl As DWord,
645 /* [size_is][in] */ apidl As *ITEMIDLIST,
646 /* [in] */ ByRef riid As IID,
647 /* [unique][out][in] */ rgfReserved As *DWord,
648 /* [iid_is][out] */ ppv As *VoidPtr) As HRESULT
649 Function GetDisplayNameOf(
650 /* [in] */ pidl As *ITEMIDLIST,
651 /* [in] */ uFlags As SHGDNF,
652 /* [out] */ ByRef pName As STRRET) As HRESULT
653 Function SetNameOf(
654 /* [in] */ hwnd As HWND,
655 /* [in] */ pidl As *ITEMIDLIST,
656 /* [string][in] */ pszName As LPCWSTR,
657 /* [in] */ uFlags As SHGDNF,
658 /* [out] */ ByRef ppidlOut As LPITEMIDLIST) As HRESULT
659End Interface
660
661#endif '_INC_SHELL
Note: See TracBrowser for help on using the repository browser.