Implemented SHCreateStdEnumFmtEtc.

This commit is contained in:
Rolf Kalbermatter 2002-09-06 18:34:37 +00:00 committed by Alexandre Julliard
parent c514a78167
commit 73ffe2ae8a
2 changed files with 29 additions and 1 deletions

View File

@ -67,7 +67,7 @@ init Shell32LibMain
71 stdcall Shell_GetImageList(ptr ptr) Shell_GetImageList 71 stdcall Shell_GetImageList(ptr ptr) Shell_GetImageList
72 stdcall Shell_GetCachedImageIndex(ptr ptr long) Shell_GetCachedImageIndexAW 72 stdcall Shell_GetCachedImageIndex(ptr ptr long) Shell_GetCachedImageIndexAW
73 stdcall SHShellFolderView_Message(long long long) SHShellFolderView_Message 73 stdcall SHShellFolderView_Message(long long long) SHShellFolderView_Message
74 stub SHCreateStdEnumFmtEtc 74 stdcall SHCreateStdEnumFmtEtc(long ptr ptr) SHCreateStdEnumFmtEtc
75 stdcall PathYetAnotherMakeUniqueName(ptr ptr ptr ptr) PathYetAnotherMakeUniqueNameA 75 stdcall PathYetAnotherMakeUniqueName(ptr ptr ptr ptr) PathYetAnotherMakeUniqueNameA
76 stub DragQueryInfo 76 stub DragQueryInfo
77 stdcall SHMapPIDLToSystemImageListIndex(long long long) SHMapPIDLToSystemImageListIndex 77 stdcall SHMapPIDLToSystemImageListIndex(long long long) SHMapPIDLToSystemImageListIndex

View File

@ -19,6 +19,8 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include "config.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include "winerror.h" #include "winerror.h"
@ -1354,3 +1356,29 @@ HRESULT WINAPI CIDLData_CreateFromIDArray(
if (*ppdataObject) return S_OK; if (*ppdataObject) return S_OK;
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
} }
/*************************************************************************
* SHCreateStdEnumFmtEtc [SHELL32.74]
*
* NOTES
*
*/
HRESULT WINAPI SHCreateStdEnumFmtEtc(
DWORD cFormats,
const FORMATETC *lpFormats,
LPENUMFORMATETC *ppenumFormatetc)
{
IEnumFORMATETC *pef;
HRESULT hRes;
TRACE("cf=%ld fe=%p pef=%p\n", cFormats, lpFormats, ppenumFormatetc);
pef = IEnumFORMATETC_Constructor(cFormats, lpFormats);
if (!pef)
return E_OUTOFMEMORY;
IEnumFORMATETC_AddRef(pef);
hRes = IEnumFORMATETC_QueryInterface(pef, &IID_IEnumFORMATETC, (LPVOID*)ppenumFormatetc);
IEnumFORMATETC_Release(pef);
return hRes;
}