Skip to content

Commit 5bda2b5

Browse files
committed
[SHELL32] Ordinals for vista
1 parent 22f0373 commit 5bda2b5

3 files changed

Lines changed: 605 additions & 44 deletions

File tree

dll/win32/shell32/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ add_subdirectory(shelldesktop)
44
add_subdirectory(shellmenu)
55
add_subdirectory(shellrecyclebin)
66

7-
spec2def(shell32.dll shell32.spec ADD_IMPORTLIB)
8-
7+
if(DLL_EXPORT_VERSION GREATER_EQUAL 0x600)
8+
spec2def(shell32.dll shell32_vista.spec ADD_IMPORTLIB)
9+
else()
10+
spec2def(shell32.dll shell32.spec ADD_IMPORTLIB)
11+
endif()
912
remove_definitions(-D_WIN32_WINNT=0x502)
1013
add_definitions(-D_WIN32_WINNT=0x600)
1114

dll/win32/shell32/shell32.spec

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@
417417
660 stdcall -noname FileIconInit(long)
418418
680 stdcall IsUserAnAdmin()
419419
681 stdcall -noname SHGetAppCompatFlags(long) shlwapi.SHGetAppCompatFlags
420-
682 stdcall -stub -version=0x601+ StgMakeUniqueName(ptr wstr long ptr ptr)
421420
683 stub -noname SHStgOpenStorageW
422421
684 stub -noname SHStgOpenStorageA
423422
685 stdcall SHPropStgCreate(ptr ptr ptr long long long ptr ptr)
@@ -507,10 +506,6 @@
507506
871 stub -noname -version=0x600+ DUI_Shell32_EndDeferUninitialization
508507
872 stub -noname -version=0x600+ SHCreateKindFilter
509508
873 stub -noname -version=0x600+ SHIconIndexFromPIDL
510-
874 stub -noname -version=0x601+ LegacyEnumTasks
511-
881 stub -noname -version=0x601+ SHEnumClassesOfCategories
512-
882 stub -noname -version=0x601+ SHWriteClassesOfCategories
513-
884 stub -noname -version=0x601+ SHDoDragDropWithPreferredEffect
514509
885 stdcall -noname -version=0x601+ RunInstallUninstallStubs()
515510
886 stub -noname -version=0x601+ SHLaunchSearch
516511
887 stub -noname -version=0x601+ SHExtCoCreateInstanceCheckCategory
@@ -526,41 +521,5 @@
526521
902 stub -noname -version=0x601+ IsSearchEnabled
527522

528523
@ stdcall -stub -version=0x600+ AssocCreateForClasses(ptr long ptr ptr)
529-
@ stdcall -version=0x601+ GetCurrentProcessExplicitAppUserModelID(wstr)
530-
@ stdcall -version=0x601+ SetCurrentProcessExplicitAppUserModelID(wstr)
531524
@ stdcall -stub -version=0x600+ SHAssocEnumHandlers(wstr ptr ptr)
532-
@ stub -version=0x601+ SHAssocEnumHandlersForProtocolByApplication
533-
@ stdcall -stub -version=0x600+ SHBindToFolderIDListParent(ptr ptr ptr ptr ptr)
534-
@ stdcall -stub -version=0x600+ SHBindToFolderIDListParentEx(ptr ptr ptr ptr ptr ptr)
535-
@ stdcall -version=0x600+ SHBindToObject(ptr ptr long ptr)
536-
@ stdcall -stub -version=0x600+ SHChangeNotifyRegisterThread(ptr)
537-
@ stdcall -stub -version=0x600+ SHCreateAssociationRegistration(ptr ptr)
538-
@ stdcall -version=0x600+ SHCreateDataObject(ptr long ptr ptr ptr ptr)
539-
@ stdcall -version=0x600+ SHCreateDefaultContextMenu(ptr ptr ptr)
540-
@ stdcall -version=0x600+ SHCreateDefaultExtractIcon(ptr ptr)
541-
@ stdcall -version=0x600+ SHCreateItemFromIDList(ptr ptr ptr)
542-
@ stdcall -version=0x600+ SHCreateItemFromParsingName(wstr ptr ptr ptr)
543-
@ stdcall -version=0x600+ SHCreateItemFromRelativeName(ptr wstr ptr ptr ptr)
544-
@ stdcall -version=0x600+ SHCreateItemInKnownFolder(ptr long wstr ptr ptr)
545-
@ stdcall -stub -version=0x600+ SHCreateItemWithParent(ptr ptr ptr ptr ptr)
546-
@ stdcall -version=0x600+ SHCreateShellItemArray(ptr ptr long ptr ptr)
547-
@ stdcall -version=0x600+ SHCreateShellItemArrayFromDataObject(ptr ptr ptr)
548-
@ stdcall -version=0x600+ SHCreateShellItemArrayFromIDLists(long ptr ptr)
549-
@ stdcall -version=0x600+ SHCreateShellItemArrayFromShellItem(ptr ptr ptr)
550-
@ stdcall -stub -version=0x600+ SHEvaluateSystemCommandTemplate(wstr wstr wstr wstr)
551-
@ stdcall -stub -version=0x600+ SHGetFolderPathEx(ptr long ptr wstr long)
552-
@ stdcall -version=0x600+ SHGetItemFromDataObject(ptr long ptr ptr)
553-
@ stdcall -stub -version=0x600+ SHGetKnownFolderIDList(ptr long ptr ptr)
554-
@ stdcall -stub -version=0x601+ SHGetKnownFolderItem(ptr ptr ptr ptr ptr)
555-
@ stdcall -stub -version=0x600+ SHGetKnownFolderPath(ptr long ptr ptr)
556-
@ stdcall -stub -version=0x600+ SHGetLocalizedName(wstr wstr long long)
557-
@ stdcall -version=0x600+ SHGetNameFromIDList(ptr ptr wstr)
558-
@ stdcall -version=0x600+ SHGetPropertyStoreFromParsingName(wstr ptr ptr ptr ptr)
559-
@ stdcall -stub -version=0x600+ SHGetTemporaryPropertyForItem(ptr ptr ptr)
560-
@ stdcall -version=0x600+ SHOpenWithDialog(ptr ptr)
561-
@ stdcall -stub -version=0x600+ SHGetPropertyStoreForWindow(ptr ptr)
562-
@ stdcall -version=0x600+ SHQueryUserNotificationState(ptr)
563-
@ stdcall -stub -version=0x600+ SHSetTemporaryPropertyForItem(ptr ptr ptr)
564-
@ stdcall -version=0x600+ Shell_GetCachedImageIndexA(str long long)
565-
@ stdcall -version=0x600+ Shell_GetCachedImageIndexW(wstr long long) Shell_GetCachedImageIndexAW
566-
@ stdcall -stub -version=0x601+ Shell_NotifyIconGetRect(ptr ptr)
525+
@ stub -version=0x601+ SHAssocEnumHandlersForProtocolByApplication

0 commit comments

Comments
 (0)