|
ReactOS 0.4.17-dev-116-ga4b6fe9
|
#include "precomp.h"#include <lmcons.h>#include <lmapibuf.h>#include <lmaccess.h>#include <lmserver.h>#include <secext.h>
Go to the source code of this file.
Classes | |
| class | CDummyOleWindow |
| struct | tagALIAS_MAPPING |
Macros | |
| #define | PATH_VALID_ELEMENT |
| #define | COPY_STREAM_DEFAULT_BUFFER_SIZE 0x4000 |
| #define | COMPUTER_DESCRIPTIONS_KEY L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ComputerDescriptions" |
Typedefs | |
| typedef struct tagALIAS_MAPPING | ALIAS_MAPPING |
| typedef struct tagALIAS_MAPPING * | PALIAS_MAPPING |
Variables | |
| static const ALIAS_MAPPING | g_AliasTable [] |
| PIDL alias table. | |
| #define COMPUTER_DESCRIPTIONS_KEY L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ComputerDescriptions" |
| #define COPY_STREAM_DEFAULT_BUFFER_SIZE 0x4000 |
| #define PATH_VALID_ELEMENT |
| typedef struct tagALIAS_MAPPING ALIAS_MAPPING |
| typedef struct tagALIAS_MAPPING * PALIAS_MAPPING |
|
static |
Definition at line 35 of file utils.cpp.
Referenced by CDefFolderMenu_MergeMenu().
| EXTERN_C BOOL WINAPI Activate_RunDLL | ( | _In_ HWND | hwnd, |
| _In_ HINSTANCE | hinst, | ||
| _In_ LPCWSTR | cmdline, | ||
| _In_ INT | cmdshow | ||
| ) |
Definition at line 1549 of file utils.cpp.
Definition at line 342 of file utils.cpp.
Referenced by CDesktopFolder::_ParseDisplayNameByParent(), CDesktopFolder::ParseDisplayName(), and CDesktopFolder::ShellUrlParseDisplayName().
Definition at line 350 of file utils.cpp.
Referenced by CDrivesFolder::ParseDisplayName(), CFSFolder::ParseDisplayName(), and CRegFolder::ParseDisplayName().
Definition at line 609 of file utils.cpp.
Referenced by SHParseDisplayName().
| EXTERN_C HRESULT BindCtx_RegisterObjectParam | ( | _In_ IBindCtx * | pBindCtx, |
| _In_ LPOLESTR | pszKey, | ||
| _In_opt_ IUnknown * | punk, | ||
| _Out_ LPBC * | ppbc | ||
| ) |
Definition at line 669 of file utils.cpp.
Referenced by SHParseDisplayName().
| EXTERN_C VOID WINAPI CDefFolderMenu_MergeMenu | ( | _In_ HINSTANCE | hInstance, |
| _In_ UINT | uMainMerge, | ||
| _In_ UINT | uPopupMerge, | ||
| _Inout_ LPQCMINFO | lpQcmInfo | ||
| ) |
Definition at line 77 of file utils.cpp.
| EXTERN_C HRESULT WINAPI CopyStreamUI | ( | _In_ IStream * | pSrc, |
| _Out_ IStream * | pDst, | ||
| _Inout_opt_ IProgressDialog * | pProgress, | ||
| _In_opt_ DWORDLONG | dwlSize | ||
| ) |
Definition at line 1431 of file utils.cpp.
Definition at line 1907 of file utils.cpp.
Referenced by DCIA_AddShellExSubkey().
Definition at line 1920 of file utils.cpp.
Referenced by CFSDropTarget::_GetEffectFromMenu().
| EXTERN_C HRESULT WINAPI DisplayNameOfW | ( | _In_ IShellFolder * | psf, |
| _In_ LPCITEMIDLIST | pidl, | ||
| _In_ DWORD | dwFlags, | ||
| _Out_ LPWSTR | pszBuf, | ||
| _In_ UINT | cchBuf | ||
| ) |
Definition at line 504 of file utils.cpp.
Referenced by SHGetNameAndFlagsW().
|
static |
Definition at line 1599 of file utils.cpp.
Referenced by PathIsEqualOrSubFolder().
|
static |
Definition at line 1616 of file utils.cpp.
Referenced by DynamicSHGetSpecialFolderPathW().
|
static |
Definition at line 1648 of file utils.cpp.
Referenced by PathIsEqualOrSubFolder().
| EXTERN_C WORD WINAPI ExtractIconResInfoA | ( | _In_ HANDLE | hHandle, |
| _In_ LPCSTR | lpFileName, | ||
| _In_ WORD | wIndex, | ||
| _Out_ LPWORD | lpSize, | ||
| _Out_ LPHANDLE | lpIcon | ||
| ) |
Definition at line 747 of file utils.cpp.
Definition at line 1863 of file utils.cpp.
Referenced by SHELL_GetCommandStringImpl().
|
static |
Definition at line 1813 of file utils.cpp.
Referenced by GetDfmCmd().
| UINT GetDfmCmd | ( | _In_ IContextMenu * | pCM, |
| _In_ LPCSTR | verba | ||
| ) |
Definition at line 1827 of file utils.cpp.
Referenced by BrFolder_OnContextMenu().
|
static |
Definition at line 1314 of file utils.cpp.
Referenced by Int64ToString().
|
static |
Definition at line 1269 of file utils.cpp.
Referenced by Int64ToString().
| EXTERN_C INT WINAPI Int64ToString | ( | _In_ LONGLONG | llValue, |
| _Out_writes_(cchOut) LPWSTR | pszOut, | ||
| _In_ UINT | cchOut, | ||
| _In_ BOOL | bUseFormat, | ||
| _In_opt_ const NUMBERFMTW * | pNumberFormat, | ||
| _In_ DWORD | dwNumberFlags | ||
| ) |
Definition at line 1374 of file utils.cpp.
Referenced by DoTestEntry(), LargeIntegerToString(), and Test_Int64ToString().
| EXTERN_C HRESULT InvokeIExecuteCommand | ( | _In_ IExecuteCommand * | pEC, |
| _In_ PCWSTR | pszCommandName, | ||
| _In_opt_ IPropertyBag * | pPB, | ||
| _In_opt_ IShellItemArray * | pSIA, | ||
| _In_opt_ LPCMINVOKECOMMANDINFOEX | pICI, | ||
| _In_opt_ IUnknown * | pSite | ||
| ) |
Definition at line 1762 of file utils.cpp.
Referenced by InvokeIExecuteCommandWithDataObject().
| EXTERN_C HRESULT InvokeIExecuteCommandWithDataObject | ( | _In_ IExecuteCommand * | pEC, |
| _In_ PCWSTR | pszCommandName, | ||
| _In_opt_ IPropertyBag * | pPB, | ||
| _In_ IDataObject * | pDO, | ||
| _In_opt_ LPCMINVOKECOMMANDINFOEX | pICI, | ||
| _In_opt_ IUnknown * | pSite | ||
| ) |
Definition at line 1799 of file utils.cpp.
Referenced by CDefaultContextMenu::InvokeRegVerb().
Definition at line 914 of file utils.cpp.
Referenced by IsSuspendAllowed().
| EXTERN_C HRESULT IUnknown_InitializeCommand | ( | _In_ IUnknown * | pUnk, |
| _In_ PCWSTR | pszCommandName, | ||
| _In_opt_ IPropertyBag * | pPB | ||
| ) |
Definition at line 1749 of file utils.cpp.
Referenced by InvokeIExecuteCommand(), and CDefaultContextMenu::InvokeRegVerb().
| EXTERN_C INT WINAPI LargeIntegerToString | ( | _In_ const LARGE_INTEGER * | pLargeInt, |
| _Out_writes_(cchOut) LPWSTR | pszOut, | ||
| _In_ UINT | cchOut, | ||
| _In_ BOOL | bUseFormat, | ||
| _In_opt_ const NUMBERFMTW * | pNumberFormat, | ||
| _In_ DWORD | dwNumberFlags | ||
| ) |
Definition at line 1412 of file utils.cpp.
Referenced by DoTestEntry(), and Test_LargeIntegerToString().
Definition at line 2358 of file utils.cpp.
Definition at line 321 of file utils.cpp.
Referenced by SHOpenEffectiveToken().
Definition at line 254 of file utils.cpp.
Referenced by CFSFolder::_CreateIDListFromName().
Definition at line 228 of file utils.cpp.
Referenced by PathIsValidElement(), and CFileDefExt::WalkDirTree().
Definition at line 1684 of file utils.cpp.
Referenced by PathIsTemporaryW(), and START_TEST().
Definition at line 733 of file utils.cpp.
Definition at line 240 of file utils.cpp.
Referenced by Shell_NextElement().
| EXTERN_C HRESULT SHBindToObject | ( | _In_opt_ IShellFolder * | psf, |
| _In_ LPCITEMIDLIST | pidl, | ||
| _In_ REFIID | riid, | ||
| _Out_ void ** | ppvObj | ||
| ) |
Definition at line 442 of file utils.cpp.
Referenced by _BindToObject(), CDesktopFolder::_ParseDisplayNameByParent(), BrFolder_InitTreeView(), CRegItemContextMenu_CreateInstance(), FileOpCallback(), SHELL_GetIDListTarget(), Shell_ParsePrinterName(), and CDesktopFolder::ShellUrlParseDisplayName().
| HRESULT SHBindToObjectEx | ( | _In_opt_ IShellFolder * | pShellFolder, |
| _In_ LPCITEMIDLIST | pidl, | ||
| _In_opt_ IBindCtx * | pBindCtx, | ||
| _In_ REFIID | riid, | ||
| _Out_ void ** | ppvObj | ||
| ) |
Definition at line 409 of file utils.cpp.
Referenced by SHBindToObject().
Definition at line 566 of file utils.cpp.
Referenced by ShellExecuteExW(), SHGetNameAndFlagsW(), and SHSetLocalizedName().
Definition at line 975 of file utils.cpp.
| EXTERN_C HRESULT SHELL32_AliasTranslatePidl | ( | _In_ LPCITEMIDLIST | pidl, |
| _Out_ LPITEMIDLIST * | ppidlNew, | ||
| _In_ DWORD | dwFlags | ||
| ) |
Translate a PIDL to an "alias" PIDL.
Definition at line 2345 of file utils.cpp.
Referenced by CreateNotificationParamAndSend(), CDesktopFolder::ParseDisplayName(), and SHLogILFromFSIL().
| EXTERN_C BOOL SHELL32_ReparentAsAliasPidl | ( | _In_opt_ HWND | hwnd, |
| _In_opt_ HANDLE | hToken, | ||
| _In_ LPCITEMIDLIST | pidlTarget, | ||
| _Out_ LPITEMIDLIST * | ppidlNew, | ||
| _In_ DWORD | dwFlags | ||
| ) |
Translate a PIDL to an "alias" PIDL.
Definition at line 2206 of file utils.cpp.
Referenced by SHELL32_AliasTranslatePidl().
|
static |
Definition at line 2088 of file utils.cpp.
Referenced by SHGetComputerDisplayNameW().
|
static |
Definition at line 2051 of file utils.cpp.
Referenced by SHGetComputerDisplayNameW().
Definition at line 1897 of file utils.cpp.
Referenced by SHELL_CreateFallbackExtractIconForFolder(), and SHELL_CreateFallbackExtractIconForNoAssocFile().
| HRESULT SHELL_DisplayNameOf | ( | _In_opt_ IShellFolder * | psf, |
| _In_ LPCITEMIDLIST | pidl, | ||
| _In_opt_ UINT | Flags, | ||
| _Out_ PWSTR * | ppStr | ||
| ) |
Definition at line 478 of file utils.cpp.
Referenced by CFileDefExt::InitMultifilePageThread().
Definition at line 392 of file utils.cpp.
Referenced by CDesktopFolder::ParseDisplayName(), and CDesktopFolder::ShellUrlParseDisplayName().
|
static |
Definition at line 2038 of file utils.cpp.
Referenced by SHGetComputerDisplayNameW().
| HRESULT SHELL_GetCommandStringImpl | ( | SIZE_T | CmdId, |
| UINT | uFlags, | ||
| LPSTR | Buf, | ||
| UINT | cchBuf, | ||
| const CMVERBMAP * | pMap | ||
| ) |
Definition at line 1874 of file utils.cpp.
Referenced by CCopyAsPathMenu::GetCommandString(), COpenWithMenu::GetCommandString(), CRecycleBinItemContextMenu::GetCommandString(), and CRecycleBin::GetCommandString().
|
static |
Definition at line 2065 of file utils.cpp.
Referenced by SHGetComputerDisplayNameW().
| HRESULT SHELL_GetIDListTarget | ( | _In_ LPCITEMIDLIST | pidl, |
| _Out_ PIDLIST_ABSOLUTE * | ppidl | ||
| ) |
Definition at line 554 of file utils.cpp.
Referenced by SHBrowseForFolderW().
| EXTERN_C HRESULT SHELL_GetUIObjectOfAbsoluteItem | ( | _In_opt_ HWND | hWnd, |
| _In_ PCIDLIST_ABSOLUTE | pidl, | ||
| _In_ REFIID | riid, | ||
| _Out_ void ** | ppvObj | ||
| ) |
Definition at line 452 of file utils.cpp.
Referenced by CShellLink::DragEnter(), CSendToMenu::GetUIObjectFromPidl(), CFolderItemVerbs::Init(), SHELL_PidlGetIconLocationW(), and shellex_get_dataobj().
Definition at line 1840 of file utils.cpp.
Referenced by CCopyAsPathMenu::InvokeCommand(), COpenWithMenu::InvokeCommand(), CRecycleBinItemContextMenu::InvokeCommand(), and CRecycleBin::InvokeCommand().
|
static |
Definition at line 982 of file utils.cpp.
Referenced by SHGetUnreadMailCountW().
Definition at line 2023 of file utils.cpp.
Referenced by SHELL_BuildDisplayMachineName(), SHELL_CacheComputerDescription(), SHELL_GetCachedComputerDescription(), and SHGetComputerDisplayNameW().
| EXTERN_C HRESULT WINAPI SHEnumerateUnreadMailAccountsW | ( | _In_opt_ HKEY | hKeyUser, |
| _In_ DWORD | dwIndex, | ||
| _Out_writes_(cchMailAddress) PWSTR | pszMailAddress, | ||
| _In_ INT | cchMailAddress | ||
| ) |
Definition at line 1209 of file utils.cpp.
Referenced by START_TEST().
| EXTERN_C BOOL WINAPI SHFindComputer | ( | LPCITEMIDLIST | pidlRoot, |
| LPCITEMIDLIST | pidlSavedSearch | ||
| ) |
Definition at line 1243 of file utils.cpp.
Referenced by CTrayWindow::HandleCommand(), and CTrayWindow::HandleHotKey().
| DWORD SHGetAttributes | ( | _In_ IShellFolder * | psf, |
| _In_ LPCITEMIDLIST | pidl, | ||
| _In_ DWORD | dwAttributes | ||
| ) |
Definition at line 520 of file utils.cpp.
Referenced by CFSDropTarget::_DoDrop(), BrFolder_InsertItem(), CRegItemContextMenu_CreateInstance(), CDefView::OnCreate(), and SHGetNameAndFlagsW().
| EXTERN_C HRESULT WINAPI SHGetComputerDisplayNameW | ( | _In_opt_ PWSTR | pszServerName, |
| _In_ DWORD | dwFlags, | ||
| _Out_writes_z_(cchNameMax) PWSTR | pszName, | ||
| _In_ DWORD | cchNameMax | ||
| ) |
Definition at line 2108 of file utils.cpp.
| HRESULT SHGetNameAndFlagsW | ( | _In_ LPCITEMIDLIST | pidl, |
| _In_ DWORD | dwFlags, | ||
| _Out_opt_ LPWSTR | pszText, | ||
| _In_ UINT | cchBuf, | ||
| _Inout_opt_ DWORD * | pdwAttributes | ||
| ) |
Definition at line 575 of file utils.cpp.
Referenced by CDrvDefExt::AddMainPage(), DoGetFileTitle(), CShellLink::OnInitDialog(), SHELL_execute(), SHELL_GetCaptionFromDataObject(), and CDesktopFolder::ShellUrlParseDisplayName().
| EXTERN_C HRESULT WINAPI SHGetPathCchFromIDListW | ( | LPCITEMIDLIST | pidl, |
| LPWSTR | pszPath, | ||
| SIZE_T | cchPathMax | ||
| ) |
Referenced by DynamicSHGetPathFromIDListW().
| EXTERN_C HRESULT WINAPI SHGetRealIDL | ( | _In_ IShellFolder * | psf, |
| _In_ PCUITEMID_CHILD | pidlSimple, | ||
| _Outptr_ PITEMID_CHILD * | ppidlReal | ||
| ) |
Definition at line 1715 of file utils.cpp.
Referenced by CDefView::OnChangeNotify().
Definition at line 933 of file utils.cpp.
| EXTERN_C HRESULT WINAPI SHGetUnreadMailCountW | ( | _In_opt_ HKEY | hKeyUser, |
| _In_opt_ PCWSTR | pszMailAddress, | ||
| _Out_opt_ PDWORD | pdwCount, | ||
| _Inout_opt_ PFILETIME | pFileTime, | ||
| _Out_writes_opt_(cchShellExecuteCommand) PWSTR | pszShellExecuteCommand, | ||
| _In_ INT | cchShellExecuteCommand | ||
| ) |
Definition at line 1026 of file utils.cpp.
Referenced by START_TEST().
| EXTERN_C HRESULT WINAPI SHGetUserDisplayName | ( | _Out_writes_to_ *, *puSize PWSTR | pName, |
| _Inout_ PULONG | puSize | ||
| ) |
Definition at line 1967 of file utils.cpp.
Referenced by START_TEST().
Definition at line 788 of file utils.cpp.
| HRESULT SHILAppend | ( | _Inout_ LPITEMIDLIST | pidl, |
| _Inout_ LPITEMIDLIST * | ppidl | ||
| ) |
Definition at line 275 of file utils.cpp.
Referenced by CFSFolder::_ParseSimple(), BrFolder_Treeview_Rename(), and CFSFolder::ParseDisplayName().
| HRESULT SHILClone | ( | _In_opt_ LPCITEMIDLIST | pidl, |
| _Outptr_ LPITEMIDLIST * | ppidl | ||
| ) |
Definition at line 215 of file utils.cpp.
Referenced by BrFolder_Treeview_Rename(), CShellBrowser::BrowseToPath(), CFindFolder::GetCurFolder(), CCabFolder::GetCurFolder(), CRecycleBin::GetCurFolder(), CShellBrowser::GetPidl(), CFindFolder::Initialize(), CCopyMoveToMenu::Initialize(), CEnumIDList::Next(), CShellBrowser::OpenNewBrowserWindow(), CFSFolder::SetNameOf(), CRegFolder::SetNameOf(), and SHGetRealIDL().
| EXTERN_C HRESULT WINAPI SHInvokePrivilegedFunctionW | ( | _In_ LPCWSTR | pszName, |
| _In_ PRIVILEGED_FUNCTION | fn, | ||
| _In_opt_ LPARAM | lParam | ||
| ) |
Definition at line 815 of file utils.cpp.
Definition at line 1943 of file utils.cpp.
Referenced by START_TEST().
| HRESULT SHIsFileSysBindCtx | ( | _In_ IBindCtx * | pBindCtx, |
| _Out_opt_ WIN32_FIND_DATAW * | pFindData | ||
| ) |
Definition at line 375 of file utils.cpp.
Referenced by CDesktopFolder::ParseDisplayName(), CDrivesFolder::ParseDisplayName(), and CFSFolder::ParseDisplayName().
Definition at line 61 of file utils.cpp.
Referenced by CDefFolderMenu_MergeMenu().
Definition at line 779 of file utils.cpp.
Referenced by SHGetUserSessionId(), SHInvokePrivilegedFunctionW(), and SHTestTokenPrivilegeW().
| EXTERN_C LPWSTR WINAPI ShortSizeFormatW | ( | _In_ DWORD | dwNumber, |
| _Out_writes_(0x8FFF) LPWSTR | pszBuffer | ||
| ) |
Definition at line 768 of file utils.cpp.
| EXTERN_C HRESULT WINAPI SHSetFolderPathA | ( | _In_ INT | csidl, |
| _In_ HANDLE | hToken, | ||
| _In_ DWORD | dwFlags, | ||
| _In_ LPCSTR | pszPath | ||
| ) |
Definition at line 715 of file utils.cpp.
| EXTERN_C HRESULT WINAPI SHSetLocalizedName | ( | _In_ PCWSTR | pszPath, |
| _In_ PCWSTR | pszResModule, | ||
| _In_ INT | idsRes | ||
| ) |
Definition at line 2272 of file utils.cpp.
| EXTERN_C HRESULT WINAPI SHSetUnreadMailCountW | ( | _In_ PCWSTR | pszMailAddress, |
| _In_ DWORD | dwCount, | ||
| _In_ PCWSTR | pszShellExecuteCommand | ||
| ) |
Definition at line 1104 of file utils.cpp.
Referenced by START_TEST().
Definition at line 298 of file utils.cpp.
Referenced by START_TEST().
Definition at line 363 of file utils.cpp.
Referenced by CDesktopFolder::_ParseDisplayNameByParent().
| EXTERN_C HRESULT WINAPI SHStartNetConnectionDialogA | ( | _In_ HWND | hwnd, |
| _In_ LPCSTR | pszRemoteName, | ||
| _In_ DWORD | dwType | ||
| ) |
Definition at line 1575 of file utils.cpp.
Referenced by SHStartNetConnectionDialog().
Definition at line 858 of file utils.cpp.
Referenced by IsShutdownAllowed().
Definition at line 122 of file utils.cpp.
Referenced by TEST_StrRStrA().
| EXTERN_C PWSTR WINAPI StrRStrW | ( | _In_ PCWSTR | pszSrc, |
| _In_opt_ PCWSTR | pszLast, | ||
| _In_ PCWSTR | pszSearch | ||
| ) |
Definition at line 154 of file utils.cpp.
Referenced by TEST_StrRStrW().
| WINE_DEFAULT_DEBUG_CHANNEL | ( | shell | ) |
|
static |
PIDL alias table.
Definition at line 2176 of file utils.cpp.
Referenced by SHELL32_ReparentAsAliasPidl().