{
if (IsEqualIID(riid, &IID_IDataObject))
{
- return CIDLData_CreateFromIDArray(pidlFolder, cidl, apidl, ppv);
+ return CIDLData_CreateFromIDArray(pidlFolder, cidl, apidl, (IDataObject**)ppv);
}
return E_FAIL;
}
struct IconExtraction
{
- ULONG ref;
+ LONG ref;
IDefaultExtractIconInit defaultExtractIconInitImpl;
IExtractIconW extractIconWImpl;
IExtractIconA extractIconAImpl;
IDefaultExtractIconInit *This)
{
struct IconExtraction *s = CONTAINING_RECORD(This, struct IconExtraction, defaultExtractIconInitImpl);
- ULONG refCount = InterlockedIncrement((PLONG)&s->ref);
+ ULONG refCount = InterlockedIncrement(&s->ref);
TRACE("(%p)\n", This);
return refCount;
}
TRACE("(%p)\n", This);
- refCount = InterlockedDecrement((PLONG)&s->ref);
+ refCount = InterlockedDecrement(&s->ref);
if (refCount == 0)
{
if (s->defaultIcon.file) CoTaskMemFree(s->defaultIcon.file);
*/
BOOL
-SH_ShowPropertiesDialog(WCHAR * lpf)
+SH_ShowPropertiesDialog(PCWSTR lpf)
{
PROPSHEETHEADERW pinfo;
HPROPSHEETPAGE hppages[MAX_PROPERTY_SHEET_PAGE];
if (lpf[0] == '"')
{
/* remove quotes from lpf */
- LPWSTR src = lpf + 1;
+ LPCWSTR src = lpf + 1;
LPWSTR dst = wFileName;
while(*src && *src!='"')
-<module name="shell32" type="win32dll" baseaddress="${BASEADDRESS_SHELL32}" installbase="system32" installname="shell32.dll" allowwarnings="true">
+<module name="shell32" type="win32dll" baseaddress="${BASEADDRESS_SHELL32}" installbase="system32" installname="shell32.dll">
<autoregister infsection="OleControlDlls" type="Both" />
<importlibrary definition="shell32.spec.def" />
<include base="shell32">.</include>
HPROPSHEETPAGE SH_CreatePropertySheetPage(LPSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle);
BOOL SH_ShowDriveProperties(WCHAR * drive);
BOOL SH_ShowRecycleBinProperties(WCHAR sDrive);
-BOOL SH_ShowPropertiesDialog(WCHAR * lpf);
+BOOL SH_ShowPropertiesDialog(PCWSTR lpf);
#endif
IShellFolder2Vtbl *lpVtbl;
IPersistFolder2Vtbl *lpVtblPersistFolder2;
- DWORD ref;
+ LONG ref;
CLSID *pclsid;
ids->text_resource_id = IDS_DELETESELECTED_TEXT;
return TRUE;
case ASK_OVERWRITE_FILE:
- ids->hIconInstance = NULL;
- ids->icon_resource_id = IDI_WARNING;
+ ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
ids->caption_resource_id = IDS_OVERWRITEFILE_CAPTION;
ids->text_resource_id = IDS_OVERWRITEFILE_TEXT;
return TRUE;
case ASK_OVERWRITE_FOLDER:
- ids->hIconInstance = NULL;
- ids->icon_resource_id = IDI_WARNING;
+ ids->icon_resource_id = IDI_SHELL_CONFIRM_DELETE;
ids->caption_resource_id = IDS_OVERWRITEFILE_CAPTION;
ids->text_resource_id = IDS_OVERWRITEFOLDER_TEXT;
return TRUE;
return 1;
break;
case CWM_GETISHELLBROWSER:
- return pThis->pShellBrowser;
+ return (LRESULT)pThis->pShellBrowser;
}
return DefWindowProcW(hWnd, uMessage, wParam, lParam);
}
HRESULT hr;
IShellFolder_AddRef(pSFParent);
cm->rfg = SFGAO_BROWSABLE | SFGAO_CANCOPY | SFGAO_CANMOVE | SFGAO_CANDELETE | SFGAO_CANRENAME | SFGAO_HASPROPSHEET;
- hr = IShellFolder_GetAttributesOf(pSFParent, cidl, apidl, &cm->rfg);
+ hr = IShellFolder_GetAttributesOf(pSFParent, cidl, (LPCITEMIDLIST *)apidl, &cm->rfg);
if (!SUCCEEDED(hr))
cm->rfg = 0; /* No action available */
}
indexMenu = SH_AddStaticEntryToMenu(hmenu, indexMenu, This);
SetMenuDefaultItem(hmenu, 0, MF_BYPOSITION);
- pDataObj = IDataObject_Constructor(NULL, This->pidl, This->apidl, This->cidl);
+ pDataObj = IDataObject_Constructor(NULL, This->pidl, (LPCITEMIDLIST *)This->apidl, This->cidl);
if (pDataObj)
{
indexMenu = SH_LoadContextMenuHandlers(This, pDataObj, hmenu, indexMenu);
PathAddBackslashW(szPath);
IPersistFolder2_Release(psf);
- szTarget = build_paths_list(szPath, This->cidl, This->apidl);
+ szTarget = build_paths_list(szPath, This->cidl, (LPCITEMIDLIST *)This->apidl);
if (pidl)
{
BOOL WINAPI StrRetToStrNA(LPSTR,DWORD,LPSTRRET,const ITEMIDLIST*);
BOOL WINAPI StrRetToStrNW(LPWSTR,DWORD,LPSTRRET,const ITEMIDLIST*);
-
-/****************************************************************************
-* SHChangeNotifyRegister API
-*/
-#define SHCNRF_InterruptLevel 0x0001
-#define SHCNRF_ShellLevel 0x0002
-#define SHCNRF_RecursiveInterrupt 0x1000 /* Must be combined with SHCNRF_InterruptLevel */
-#define SHCNRF_NewDelivery 0x8000 /* Messages use shared memory */
-
/****************************************************************************
* Shell Common Dialogs
*/
#define CFSTR_SHELLURL "UniformResourceLocator"
#endif
-#define CFSTR_FILENAMEW L"FileNameW"
+#define CFSTR_FILENAMEW "FileNameW"
#define CFSTR_FILENAMEA "FileName"
#define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
#define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */