https://git.reactos.org/?p=reactos.git;a=commitdiff;h=144a8b5b849ef710ebc366b12cd93ca9ef1175da

commit 144a8b5b849ef710ebc366b12cd93ca9ef1175da
Author:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
AuthorDate: Sat Sep 14 22:40:11 2024 +0200
Commit:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
CommitDate: Sat Sep 14 23:05:52 2024 +0200

    [SHELL32][SDK] Move SHMenuIndexFromID() definition to shlwapi_undoc.h
---
 dll/win32/shell32/CDefView.cpp      | 2 --
 sdk/include/reactos/shlwapi_undoc.h | 3 ++-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dll/win32/shell32/CDefView.cpp b/dll/win32/shell32/CDefView.cpp
index 771576222fc..a963f55e044 100644
--- a/dll/win32/shell32/CDefView.cpp
+++ b/dll/win32/shell32/CDefView.cpp
@@ -1773,8 +1773,6 @@ LRESULT CDefView::OnCreate(UINT uMsg, WPARAM wParam, 
LPARAM lParam, BOOL &bHandl
 
 // #### Handling of the menus ####
 
-extern "C" DWORD WINAPI SHMenuIndexFromID(HMENU hMenu, UINT uID);
-
 HRESULT CDefView::FillFileMenu()
 {
     HMENU hFileMenu = GetSubmenuByID(m_hMenu, FCIDM_MENU_FILE);
diff --git a/sdk/include/reactos/shlwapi_undoc.h 
b/sdk/include/reactos/shlwapi_undoc.h
index 921361a947f..def0725cdd2 100644
--- a/sdk/include/reactos/shlwapi_undoc.h
+++ b/sdk/include/reactos/shlwapi_undoc.h
@@ -91,8 +91,9 @@ UINT WINAPI SHEnableMenuItem(HMENU hMenu, UINT wItemID, BOOL 
bEnable);
 DWORD WINAPI SHCheckMenuItem(HMENU hMenu, UINT uID, BOOL bCheck);
 DWORD WINAPI SHRegisterClassA(WNDCLASSA *wndclass);
 BOOL WINAPI SHSimulateDrop(IDropTarget *pDrop, IDataObject *pDataObj, DWORD 
grfKeyState, PPOINTL lpPt, DWORD* pdwEffect);
-HMENU WINAPI SHGetMenuFromID(HMENU hMenu, UINT uID);
 DWORD WINAPI SHGetCurColorRes(void);
+HMENU WINAPI SHGetMenuFromID(HMENU hMenu, UINT uID);
+DWORD WINAPI SHMenuIndexFromID(HMENU hMenu, UINT uID);
 DWORD WINAPI SHWaitForSendMessageThread(HANDLE hand, DWORD dwTimeout);
 DWORD WINAPI SHSendMessageBroadcastW(UINT uMsg, WPARAM wParam, LPARAM lParam);
 HRESULT WINAPI SHIsExpandableFolder(LPSHELLFOLDER lpFolder, LPCITEMIDLIST 
pidl);

Reply via email to