shlwapi: Add stub for AssocGetPerceivedType.
This commit is contained in:
parent
db09c6c393
commit
f2d40ca87d
|
@ -102,6 +102,42 @@ HRESULT WINAPI AssocCreate(CLSID clsid, REFIID refiid, void **lpInterface)
|
|||
return SHCoCreateInstance( NULL, &clsid, NULL, refiid, 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.@]
|
||||
*
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue