source: Include/api_shell.sbp@ 127

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

OLE Automation関数などの追加
KERNEL関数などの追加

File size: 7.4 KB
Line 
1' api_shell.sbp
2
3
4#ifndef _INC_SHELL
5#define _INC_SHELL
6
7
8'-----------
9' Shell API
10
11Declare Function DoEnvironmentSubst Lib "shell32" Alias "DoEnvironmentSubstA" (
12 pszString As PSTR,
13 cchString As DWord
14) As DWord
15
16Declare Sub DragAcceptFiles Lib "shell32" (hWnd As HWND, bAccept As BOOL)
17Declare Sub DragFinish Lib "shell32" (hDrop As HDROP)
18Declare Function DragQueryFile Lib "shell32" Alias "DragQueryFileA" (hDrop As HDROP, iFile As Long, lpszFile As PSTR, cch As DWord) As DWord
19Declare Function DragQueryPoint Lib "shell32" (hDrop As HDROP, ByRef lpPoint As POINTAPI) As Long
20Declare Function ExtractAssociatedIcon Lib "shell32" Alias "ExtractAssociatedIconA" (hInst As HINSTANCE, lpIconPath As PSTR, lpiIcon As *Word) As HICON
21Declare Function ExtractIcon Lib "shell32" Alias "ExtractIconA" (hInst As HINSTANCE, lpszExeFileName As PCSTR, nIconIndex As Long) As HICON
22Declare Function ExtractIconEx Lib "shell32" Alias "ExtractIconExA" (lpszFile As PCSTR, nIconIndex As Long, phiconLarge As *DWord, phiconSmall As *DWord, nIcons As Long) As HICON
23
24Declare Function FindExecutable Lib "shell32" Alias "FindExecutableA" (
25 pFile As PCSTR,
26 pDirectory As PCSTR,
27 pResult As PCSTR
28) As Long
29
30Declare Function GUIDFromString Lib "shell32" Alias "GUIDFromStringA" (
31 ByVal psz As PCSTR,
32 ByRef guid As GUID
33) As BOOL
34
35' intshcut.h
36Declare Function InetIsOffline Lib "url" (dwFlags As DWord) As BOOL
37' intshcut.h
38Declare Function MIMEAssociationDialog Lib "url" (
39 hwndParent As HWND,
40 dwInFlags As DWord,
41 pcszFile As PCSTR,
42 pcszMIMEContentType As PCSTR,
43 pszAppBuf As PSTR,
44 ucAppBufLen As DWord
45) As HRESULT
46
47Declare Sub SHAddToRecentDocs Lib "shell32" (ByVal uFlags As Long, ByVal pv As VoidPtr)
48
49Const ABM_NEW = &h00000000
50Const ABM_REMOVE = &h00000001
51Const ABM_QUERYPOS = &h00000002
52Const ABM_SETPOS = &h00000003
53Const ABM_GETSTATE = &h00000004
54Const ABM_GETTASKBARPOS = &h00000005
55Const ABM_ACTIVATE = &h00000006
56Const ABM_GETAUTOHIDEBAR = &h00000007
57Const ABM_SETAUTOHIDEBAR = &h00000008
58Const ABM_WINDOWPOSCHANGED = &h0000009
59Const ABM_SETSTATE = &h0000000a
60
61Const ABN_STATECHANGE = &h0000000
62Const ABN_POSCHANGED = &h0000001
63Const ABN_FULLSCREENAPP = &h0000002
64Const ABN_WINDOWARRANGE = &h0000003
65
66Const ABS_AUTOHIDE = &h0000001
67Const ABS_ALWAYSONTOP = &h0000002
68
69Const ABE_LEFT = 0
70Const ABE_TOP = 1
71Const ABE_RIGHT = 2
72Const ABE_BOTTOM = 3
73
74Type APPBARDATA
75 cbSize As DWord
76 hWnd As HWND
77 uCallbackMessage As DWord
78 uEdge As DWord
79 rc As RECT
80 lParam As LPARAM
81End Type
82
83Declare Function SHAppBarMessage Lib "shell32" (dwMessage As DWord, ByRef Data As APPBARDATA) As ULONG_PTR
84
85Const BIF_RETURNONLYFSDIRS = &H0001
86Const BIF_DONTGOBELOWDOMAIN = &H0002
87Const BIF_STATUSTEXT = &H0004
88Const BIF_RETURNFSANCESTORS = &H0008
89Const BIF_EDITBOX = &H0010
90Const BIF_VALIDATE = &H0020
91Const BIF_BROWSEFORCOMPUTER = &H1000
92Const BIF_BROWSEFORPRINTER = &H2000
93Const BIF_BROWSEINCLUDEFILES = &H4000
94
95Typedef BFFCALLBACK = *Function(hwnd As HWND, uMsg As DWord, lParam As LPARAM, lpData As LPARAM) As Long
96
97Type BROWSEINFO
98 hwndOwner As HWND
99 pidlRoot As VoidPtr
100 pszDisplayName As PSTR
101 lpszTitle As PCSTR
102 ulFlags As DWord
103 lpfn As BFFCALLBACK
104 lParam As LPARAM
105 iImage As Long
106End Type
107
108Type SHITEMID
109 cb As Word
110 abID[ELM(1)] As Byte
111End Type
112
113Type ITEMIDLIST
114 mkid As SHITEMID
115End Type
116Declare Function SHBrowseForFolder Lib "shell32" Alias "SHBrowseForFolderA" (ByRef lpbi As BROWSEINFO) As *ITEMIDLIST
117
118Const SHCNE_RENAMEITEM = &h00000001
119Const SHCNE_CREATE = &h00000002
120Const SHCNE_DELETE = &h00000004
121Const SHCNE_MKDIR = &h00000008
122Const SHCNE_RMDIR = &h00000010
123Const SHCNE_MEDIAINSERTED = &h00000020
124Const SHCNE_MEDIAREMOVED = &h00000040
125Const SHCNE_DRIVEREMOVED = &h00000080
126Const SHCNE_DRIVEADD = &h00000100
127Const SHCNE_NETSHARE = &h00000200
128Const SHCNE_NETUNSHARE = &h00000400
129Const SHCNE_ATTRIBUTES = &h00000800
130Const SHCNE_UPDATEDIR = &h00001000
131Const SHCNE_UPDATEITEM = &h00002000
132Const SHCNE_SERVERDISCONNECT = &h00004000
133Const SHCNE_UPDATEIMAGE = &h00008000
134Const SHCNE_DRIVEADDGUI = &h00010000
135Const SHCNE_RENAMEFOLDER = &h00020000
136Const SHCNE_FREESPACE = &h00040000
137
138#ifdef __UNDEFINED__ '#if _WIN32_IE >= 0x0400
139Const SHCNE_EXTENDED_EVENT = &h04000000
140#endif
141
142Const SHCNE_ASSOCCHANGED = &h08000000
143
144Const SHCNE_DISKEVENTS = &h0002381F
145Const SHCNE_GLOBALEVENTS = &h0C0581E0
146Const SHCNE_ALLEVENTS = &h7FFFFFFF
147Const SHCNE_INTERRUPT = &h80000000
148
149#ifdef __UNDEFINED__ '#if _WIN32_IE >= 0x0400
150Const SHCNEE_ORDERCHANGED = 2
151Const SHCNEE_MSI_CHANGE = 4
152Const SHCNEE_MSI_UNINSTALL = 5
153#endif
154
155Const SHCNF_IDLIST = &h0000
156Const SHCNF_PATHA = &h0001
157Const SHCNF_PRINTERA = &h0002
158Const SHCNF_DWORD = &h0003
159Const SHCNF_PATHW = &h0005
160Const SHCNF_PRINTERW = &h0006
161Const SHCNF_TYPE = &h00FF
162Const SHCNF_FLUSH = &h1000
163Const SHCNF_FLUSHNOWAIT = &h2000
164
165#ifdef UNICODE
166Const SHCNF_PATH = SHCNF_PATHW
167Const SHCNF_PRINTER = SHCNF_PRINTERW
168#else
169Const SHCNF_PATH = SHCNF_PATHA
170Const SHCNF_PRINTER = SHCNF_PRINTERA
171#endif
172
173' ShlObj.h
174Declare Sub SHChangeNotify Lib "shell32" (wEventId As Long, uFlags As DWord, dwItem1 As VoidPtr, dwItem2 As VoidPtr)
175
176' ShellApi.h
177Declare Function ShellAbout Lib "shell32" Alias "ShellAboutA" (hWnd As HWND, szApp As PCSTR, szOtherStuff As PCSTR, hIcon As HICON) As Long
178
179Const SE_ERR_FNF = 2
180Const SE_ERR_PNF = 3
181Const SE_ERR_ACCESSDENIED = 5
182Const SE_ERR_OOM = 8
183Const SE_ERR_DLLNOTFOUND = 32
184Const SE_ERR_SHARE = 26
185Const SE_ERR_ASSOCINCOMPLETE = 27
186Const SE_ERR_DDETIMEOUT = 28
187Const SE_ERR_DDEFAIL = 29
188Const SE_ERR_DDEBUSY = 30
189Const SE_ERR_NOASSOC = 31
190' ShellApi.h
191Declare 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
192
193Const FO_MOVE = &H0001
194Const FO_COPY = &H0002
195Const FO_DELETE = &H0003
196Const FO_RENAME = &H0004
197Const FOF_MULTIDESTFILES = &H0001
198Const FOF_CONFIRMMOUSE = &H0002
199Const FOF_SILENT = &H0004
200Const FOF_RENAMEONCOLLISION = &H0008
201Const FOF_NOCONFIRMATION = &H0010
202Const FOF_WANTMAPPINGHANDLE = &H0020
203Const FOF_ALLOWUNDO = &H0040
204Const FOF_FILESONLY = &H0080
205Const FOF_SIMPLEPROGRESS = &H0100
206Const FOF_NOCONFIRMMKDIR = &H0200
207Const FOF_NOERRORUI = &H0400
208Const FOF_NOCOPYSECURITYATTRIBS = &H0800
209Type SHFILEOPSTRUCT
210 hWnd As HWND
211 wFunc As DWord
212 pFrom As PCSTR
213 pTo As PCSTR
214 fFlags As Word
215 fAnyOperationsAborted As BOOL
216 hNameMappings As VoidPtr
217 lpszProgressTitle As PCSTR
218End Type
219' ShellApi.h
220Declare Function SHFileOperation Lib "shell32" Alias "SHFileOperationA" (ByRef lpFileOp As SHFILEOPSTRUCT) As Long
221
222' ShellApi.h
223Declare Sub SHFreeNameMappings Lib "shell32" (hNameMappings As HANDLE)
224
225'SHGetDataFromIDList
226
227Declare Function SHGetPathFromIDList Lib "shell32" Alias "SHGetPathFromIDListA" (pidl As *ITEMIDLIST, pszPath As PSTR) As Long
228
229#endif '_INC_SHELL
Note: See TracBrowser for help on using the repository browser.