为什么win7下的扫雷在win10不能运行?

番茄系统家园 · 2021-07-21 21:04:08

为什么win7下的扫雷在win10不能运行?

我也一直纠结这个问题,直到我昨天查到了这个资料

–,,(),,,,here’

(1)SincetheupgradetoWIN10AnniveditionwipesouteverythingbutthedirectorystructureforWin7games,getanoldcopyofWin7gamesandcopyitbacktoeitherc:\ProgramFilesorc:\ProgramFiles(x86).

(2)getanoldcopyofc:\Windows\System32\CardGames.dllandcopyitbacktoc:\Windows\System32.

(3)[thisisthehardpart]createanoverridetoslc.dllandputacopyinEVERYsubdirectoryof..\MicrosoftGamescontainsagame[ex:..\MicrosoftGames\Solitaire;..\MicrosoftGames\Mahjong–thisistheSAMEdirectoryasthe.exe].Thereasonthegamesnolongerworkisthatthe.execallsslc.dlltovalidatethegameislegit.Theslc.dllinWindows\System32returnsan“invalid”response,sothegamefailstolaunch.Theworkaroundistocreateanoverridetoslc.dll.Todothis,youhavetocreateanewdumbeddowndllthatreturnsa“valid”returnvalue.Here’saassemblylanguageversionthatworkswithMSVisualStudio:

.code

WINAPIprochInstDLL:DWORD,fwdReason:DWORD,lpvReserved:DWORD

ret

WINAPIendp

SLGetWindowsInformationDWORDproc

ret

SLGetWindowsInformationDWORDendp

end

NotethatthisworkarounddoesNOTrequirethehacks(changingbitsinthe.exe)oranyothertweeksmentionedinpoststogetWin7gamesworkingfortheearlierversionsofWin10.Providingaworkaroundversionofslc.dllworkswitheitherthehacked.exesortheoriginal.exes.NotealsothatthesolutionoutlinedhereprovidesonlytheMINIMUMtohavingaworkingversionofWin7games.Itdoesnotaddthegamestothestartmenuoranyother“extras”thattheWinaerodownloadprovides.

Ifyoudon’twanttogothroughthebotherofcreatingyourownslc.dll,youcanimageyourPC,installtheWinaeropackage,copyoffslc.dllfromanyofthe..\WindowsGames\xxx\subdirectories,restoreyourPCfromtheimage,anduseWinaero’sslc.dllinplaceofcreatingyourown.dll.

然后问题就解决了,那个包就OK,win7游戏

-------------------------------------分割------------------------------------

以下为VS2017的代码,弄一个WIN32DLL项目,然后生成自定义先masm然后编译选项中添加/NOENTRY设置(/SAFESEH:NO)就可以了。

file:

slc.def

LIBRARY

slc

EXPORT

S

SLGetWindowsInformationDWORD

file:

slc.asm

;如果是X86则需要

.386

.model

flat,stdcall;-----------------------;如果是x64则要注释上面两行.codeWINAPIprochInstDLL:DWORD,fwdReason:DWORD,lpvReserved:DWORDretWINAPIendpSLGetWindowsInformationDWORDprocretSLGetWindowsInformationDWORDendpend

展开阅读全文​

相关阅读

  • 为何win7下的扫雷在win10不能运行
  • win10系统打不开win7的扫雷,怎么解决
  • 为什么win7下的扫雷在win10不能运行?
  • 免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/post/16704.html。
    猜你喜欢
    最新应用
    热门应用