Commit f2d40ca8 authored by Carlo Bramini's avatar Carlo Bramini Committed by Alexandre Julliard

shlwapi: Add stub for AssocGetPerceivedType.

parent db09c6c3
......@@ -103,6 +103,42 @@ HRESULT WINAPI AssocCreate(CLSID clsid, REFIID refiid, void **lpInterface)
}
/*************************************************************************
* AssocGetPerceivedType [SHLWAPI.@]
*
* Detect the type of a file by inspecting its extension
*
* PARAMS
* lpszExt [I] File extension to evaluate.
* lpType [O] Pointer to perceived type
* lpFlag [O] Pointer to perceived type flag
* lppszType [O] Address to pointer for perceived type text
*
* RETURNS
* Success: S_OK. lpType and lpFlag contain the perceived type and
* its informations. If lppszType is not NULL, it will point
* to a string with perceived type text.
* Failure: An HRESULT error code indicating the error.
*
* NOTES
* lppszType is optional and it can be NULL.
* if lpType or lpFlag are NULL, the function will crash.
* if lpszExt is NULL, an error is returned.
*
* BUGS
* Unimplemented.
*/
HRESULT WINAPI AssocGetPerceivedType(LPCWSTR lpszExt, PERCEIVED *lpType,
INT *lpFlag, LPWSTR *lppszType)
{
FIXME("(%s, %p, %p, %p) not supported\n", debugstr_w(lpszExt), lpType, lpFlag, lppszType);
if (lpszExt == NULL)
return HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
return E_NOTIMPL;
}
/*************************************************************************
* AssocQueryKeyW [SHLWAPI.@]
*
* See AssocQueryKeyA.
......
......@@ -547,6 +547,7 @@
551 stub -noname IShellFolder_CompareIDs
@ stdcall AssocCreate(int128 ptr ptr)
@ stdcall AssocGetPerceivedType(wstr ptr ptr ptr)
@ stdcall AssocIsDangerous(long)
@ stdcall AssocQueryKeyA(long long str ptr ptr)
@ stdcall AssocQueryKeyW(long long wstr ptr ptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment