mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 04:13:01 +00:00
[SHELL32][SDK] Implement SHOpenPropSheetA (#5830)
- Add SHOpenPropSheetA and SHOpenPropSheetW prototypes to <shlobj.h>. - Implement SHOpenPropSheetA function.
This commit is contained in:
parent
8f6b016963
commit
dcc9a2d8f3
3 changed files with 70 additions and 28 deletions
|
@ -218,35 +218,20 @@ SHGetSetFolderCustomSettingsA(LPSHFOLDERCUSTOMSETTINGSA pfcs,
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*************************************************************************
|
||||||
* Unimplemented
|
* SHOpenPropSheetW [SHELL32.80]
|
||||||
|
*
|
||||||
|
* @see https://learn.microsoft.com/en-us/windows/win32/api/shlobj/nf-shlobj-shopenpropsheetw
|
||||||
*/
|
*/
|
||||||
EXTERN_C BOOL
|
BOOL WINAPI
|
||||||
WINAPI
|
SHOpenPropSheetW(
|
||||||
SHOpenPropSheetA(LPCSTR lpCaption,
|
_In_opt_z_ LPCWSTR pszCaption,
|
||||||
HKEY hKeys[],
|
_In_opt_ HKEY *ahKeys,
|
||||||
UINT uCount,
|
_In_ UINT cKeys,
|
||||||
const CLSID *pClsID,
|
_In_ const CLSID *pclsidDefault,
|
||||||
IDataObject *pDataObject,
|
_In_ IDataObject *pDataObject,
|
||||||
IShellBrowser *pShellBrowser,
|
_In_opt_ IShellBrowser *pShellBrowser,
|
||||||
LPCSTR lpStartPage)
|
_In_opt_z_ LPCWSTR pszStartPage)
|
||||||
{
|
|
||||||
FIXME("SHOpenPropSheetA() stub\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Unimplemented
|
|
||||||
*/
|
|
||||||
EXTERN_C BOOL
|
|
||||||
WINAPI
|
|
||||||
SHOpenPropSheetW(LPCWSTR lpCaption,
|
|
||||||
HKEY hKeys[],
|
|
||||||
UINT uCount,
|
|
||||||
const CLSID *pClsID,
|
|
||||||
IDataObject *pDataObject,
|
|
||||||
IShellBrowser *pShellBrowser,
|
|
||||||
LPCWSTR lpStartPage)
|
|
||||||
{
|
{
|
||||||
FIXME("SHOpenPropSheetW() stub\n");
|
FIXME("SHOpenPropSheetW() stub\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -466,3 +466,41 @@ LargeIntegerToString(
|
||||||
return Int64ToString(pLargeInt->QuadPart, pszOut, cchOut, bUseFormat,
|
return Int64ToString(pLargeInt->QuadPart, pszOut, cchOut, bUseFormat,
|
||||||
pNumberFormat, dwNumberFlags);
|
pNumberFormat, dwNumberFlags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************
|
||||||
|
* SHOpenPropSheetA [SHELL32.707]
|
||||||
|
*
|
||||||
|
* @see https://learn.microsoft.com/en-us/windows/win32/api/shlobj/nf-shlobj-shopenpropsheeta
|
||||||
|
*/
|
||||||
|
EXTERN_C
|
||||||
|
BOOL WINAPI
|
||||||
|
SHOpenPropSheetA(
|
||||||
|
_In_opt_z_ LPCSTR pszCaption,
|
||||||
|
_In_opt_ HKEY *ahKeys,
|
||||||
|
_In_ UINT cKeys,
|
||||||
|
_In_ const CLSID *pclsidDefault,
|
||||||
|
_In_ IDataObject *pDataObject,
|
||||||
|
_In_opt_ IShellBrowser *pShellBrowser,
|
||||||
|
_In_opt_z_ LPCSTR pszStartPage)
|
||||||
|
{
|
||||||
|
WCHAR szStartPageW[MAX_PATH], szCaptionW[MAX_PATH];
|
||||||
|
LPCWSTR pszCaptionW = NULL, pszStartPageW = NULL;
|
||||||
|
|
||||||
|
TRACE("(%s, %p, %u, %p, %p, %p, %s)", pszCaption, ahKeys, cKeys, pclsidDefault, pDataObject,
|
||||||
|
pShellBrowser, pszStartPage);
|
||||||
|
|
||||||
|
if (pszCaption)
|
||||||
|
{
|
||||||
|
SHAnsiToUnicode(pszCaption, szCaptionW, _countof(szCaptionW));
|
||||||
|
pszCaptionW = szCaptionW;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pszStartPage)
|
||||||
|
{
|
||||||
|
SHAnsiToUnicode(pszStartPage, szStartPageW, _countof(szStartPageW));
|
||||||
|
pszStartPageW = szStartPageW;
|
||||||
|
}
|
||||||
|
|
||||||
|
return SHOpenPropSheetW(pszCaptionW, ahKeys, cKeys, pclsidDefault,
|
||||||
|
pDataObject, pShellBrowser, pszStartPageW);
|
||||||
|
}
|
||||||
|
|
|
@ -340,6 +340,25 @@ int WINAPI PathCleanupSpec(_In_opt_ LPCWSTR, _Inout_ LPWSTR);
|
||||||
HINSTANCE WINAPI SHGetShellStyleHInstance(VOID);
|
HINSTANCE WINAPI SHGetShellStyleHInstance(VOID);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOL WINAPI
|
||||||
|
SHOpenPropSheetA(
|
||||||
|
_In_opt_z_ LPCSTR pszCaption,
|
||||||
|
_In_opt_ HKEY *ahKeys,
|
||||||
|
_In_ UINT cKeys,
|
||||||
|
_In_ const CLSID *pclsidDefault,
|
||||||
|
_In_ IDataObject *pDataObject,
|
||||||
|
_In_opt_ IShellBrowser *pShellBrowser,
|
||||||
|
_In_opt_z_ LPCSTR pszStartPage);
|
||||||
|
BOOL WINAPI
|
||||||
|
SHOpenPropSheetW(
|
||||||
|
_In_opt_z_ LPCWSTR pszCaption,
|
||||||
|
_In_opt_ HKEY *ahKeys,
|
||||||
|
_In_ UINT cKeys,
|
||||||
|
_In_ const CLSID *pclsidDefault,
|
||||||
|
_In_ IDataObject *pDataObject,
|
||||||
|
_In_opt_ IShellBrowser *pShellBrowser,
|
||||||
|
_In_opt_z_ LPCWSTR pszStartPage);
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* IContextMenu interface
|
* IContextMenu interface
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue