otya128 / winevdm

16-bit Windows (Windows 1.x, 2.x, 3.0, 3.1, etc.) on 64-bit Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The software developed by running windows 3.1 cannot be opened

SkillGodAk opened this issue · comments

He can install it successfully with winevdm, but the software cannot be opened after the installation is complete
Hope it helps to understand what is happening as it works successfully on Win10 x86
additional tracking
Trace.txt
01

commented
534c:43fc:trace:int:DOSVM_outport IO: 0x6c (1-byte value) to port 0x0378
534c:43fc:warn:int:DOSVM_outport Direct I/O write attempted to port 378

This is trying to read the parallel port. Is it looking for a dongle?

534c:43fc:trace:int:DOSVM_outport IO: 0x6c (1-byte value) to port 0x0378
534c:43fc:warn:int:DOSVM_outport Direct I/O write attempted to port 378

This is trying to read the parallel port. Is it looking for a dongle?

This is cracked software
Shouldn't need a dongle
My built-in NTVDM on WIN10 X86 can run
But X64 can't run

commented

Try the development version and make a trace with that if it doesn't work.

Try the development version and make a trace with that if it doesn't work.

The latest version is still the same, I have attached the Trace
Trace.txt

commented

Your trace is similar to the one in #1265 (comment) starting at line 142422 so I know that the program can work. There's nothing in the trace that shows what is going wrong though.

I tried to change the vdmdosver in otvdm.ini to 5.50, still the same error as the screenshot sent to you at the beginning
My program is placed in MEGA, help me to see where the problem lies
The program to run is CAS_WIN.exe

The successful operation should be like the photo
1690902988197
https://mega.nz/file/ByNWXSwA#gT_3sDhbAeCYmaYDCkZ-ZYvqSsdSLDJ0qFxwG3g2RhY

commented
31f0:Call KERNEL.85: _LOPEN(12b7c27e "C:\\Users\\SkillGodAk\\Desktop\\otvdm-master-2441\\WINDOWS\\SYSTEM\\HASPCODE.DAT",0000) ret=1287:0531 ds=12b7
31f0:Ret  KERNEL.85: _LOPEN() retval=ffffffff ret=1287:0531 ds=12b7

The crack files need to be in the winevdm windows\system directory.

Can you run the program I uploaded?
I put the otvdm crack file in the system directory and a new error occurred
I will upload the error screenshot and Trace
01
Trace.txt

commented

From that package:

2.Copy "enr-chs.dll" and "haspcode.dat" and "national.dll" in the CRACK package to the system folder in the system root directory.

After putting those into the winevdm windows\system directory the program works for me.

Could it be an operating system language issue?
My operating system is Chinese, but it keeps showing that Chinese cannot be found
But it can be executed normally on win10 x86 Chinese system
Because I am sure program that puts winevdm in the windows\system directory
01

commented

My operating system is Chinese, but it keeps showing that Chinese cannot be found

"Plug not Found" is the same error I get when I didn't have the crack files in the correct location. I need a trace like the first one you posted. The one in #1308 (comment) doesn't include the relay.

This is a new track error, please take a look
Sorry to keep bothering you
Trace.txt

commented

From the earlier trace:

31f0:Call KERNEL.134: GETWINDOWSDIRECTORY(12b7:c2a4,00ff) ret=11ff:14fc ds=12b7
31f0:Ret  KERNEL.134: GETWINDOWSDIRECTORY() retval=52900035 ret=11ff:14fc ds=12b7
31f0:Call KERNEL.36: GETCURRENTTASK() ret=14b7:05dd ds=14d7
31f0:Ret  KERNEL.36: GETCURRENTTASK() retval=11df11df ret=14b7:05dd ds=14d7
31f0:Call KERNEL.36: GETCURRENTTASK() ret=14b7:05dd ds=14d7
31f0:Ret  KERNEL.36: GETCURRENTTASK() retval=11df11df ret=14b7:05dd ds=14d7
31f0:Call KERNEL.36: GETCURRENTTASK() ret=14b7:05dd ds=14d7
31f0:Ret  KERNEL.36: GETCURRENTTASK() retval=11df11df ret=14b7:05dd ds=14d7
3cc4:31f0:trace:int21:DOSVM_Int21Handler AX=4300 BX=0000 CX=417e DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003286
3cc4:31f0:trace:int21:INT21_FileAttributes GET FILE ATTRIBUTES for C:\Users\SkillGodAk\Desktop\otvdm-master-2441\WINDOWS\system.ini
3cc4:31f0:trace:int21:DOSVM_Int21Handler returning: AX=0020 BX=0000 CX=0020 DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003286
3cc4:31f0:trace:int21:DOSVM_Int21Handler AX=3d00 BX=0000 CX=4000 DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003246
3cc4:31f0:trace:int21:INT21_CreateFile CreateFile called: function=3d, action=01, access/share=0000, create flags=4000, file=C:\Users\SkillGodAk\Desktop\otvdm-master-2441\WINDOWS\system.ini.
3cc4:31f0:trace:file:Win32HandleToDosFileHandle Got 5 for h32 000002D8
3cc4:31f0:trace:int21:INT21_CreateFile CreateFile finished: handle=5, status=1.
3cc4:31f0:trace:int21:DOSVM_Int21Handler returning: AX=0005 BX=0000 CX=4000 DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003246

From the newer one:

37e4:Call KERNEL.134: GETWINDOWSDIRECTORY(12b7:c2a4,00ff) ret=11ff:14fc ds=12b7
37e4:Ret  KERNEL.134: GETWINDOWSDIRECTORY() retval=549f002b ret=11ff:14fc ds=12b7
37e4:Call KERNEL.36: GETCURRENTTASK() ret=14b7:05dd ds=14d7
37e4:Ret  KERNEL.36: GETCURRENTTASK() retval=11df11df ret=14b7:05dd ds=14d7
37e4:Call KERNEL.36: GETCURRENTTASK() ret=14b7:05dd ds=14d7
37e4:Ret  KERNEL.36: GETCURRENTTASK() retval=11df11df ret=14b7:05dd ds=14d7
37e4:Call KERNEL.36: GETCURRENTTASK() ret=14b7:05dd ds=14d7
37e4:Ret  KERNEL.36: GETCURRENTTASK() retval=11df11df ret=14b7:05dd ds=14d7
1394:37e4:trace:int21:DOSVM_Int21Handler AX=4300 BX=0000 CX=417e DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003286
1394:37e4:trace:int21:INT21_FileAttributes GET FILE ATTRIBUTES for ÈÓ��\system.ini
1394:37e4:trace:int21:DOSVM_Int21Handler failed, error 123
1394:37e4:trace:int21:DOSVM_Int21Handler returning: AX=007b BX=0000 CX=417e DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003287
37e4:Call KERNEL.36: GETCURRENTTASK() ret=14b7:05dd ds=14d7
37e4:Ret  KERNEL.36: GETCURRENTTASK() retval=11df11df ret=14b7:05dd ds=14d7
37e4:Call KERNEL.36: GETCURRENTTASK() ret=14b7:05dd ds=14d7
37e4:Ret  KERNEL.36: GETCURRENTTASK() retval=11df11df ret=14b7:05dd ds=14d7
1394:37e4:trace:int21:DOSVM_Int21Handler AX=3d00 BX=062e CX=4000 DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003246
1394:37e4:trace:int21:INT21_CreateFile CreateFile called: function=3d, action=01, access/share=0000, create flags=4000, file=C:\Windows\System\otvdm-master-2441\WINDOWS\system.ini.
1394:37e4:trace:int21:DOSVM_Int21Handler failed, error 123
1394:37e4:trace:int21:DOSVM_Int21Handler returning: AX=007b BX=062e CX=4000 DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003247

The earlier one shows it looking for system.ini in the correct location, the newer one is wrong. You must have broken something somewhere. Check the WINDIR in your otvdm.ini file.

The strange thing is that I didn't touch the otvdm.ini file in WINDIR, but I put otvdm back on the desktop and executed it again, and the error in your screenshot disappeared again.
29e0:3cc0:trace:int21:DOSVM_Int21Handler AX=4300 BX=0000 CX=417e DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003286 29e0:3cc0:trace:int21:INT21_FileAttributes GET FILE ATTRIBUTES for C:\Users\SkillGodAk\Desktop\otvdm-master-2441\WINDOWS\system.ini 29e0:3cc0:trace:int21:DOSVM_Int21Handler returning: AX=0020 BX=0000 CX=0020 DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003286 29e0:3cc0:trace:int21:DOSVM_Int21Handler AX=3d00 BX=0000 CX=4000 DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003246 29e0:3cc0:trace:int21:INT21_CreateFile CreateFile called: function=3d, action=01, access/share=0000, create flags=4000, file=C:\Users\SkillGodAk\Desktop\otvdm-master-2441\WINDOWS\system.ini. 29e0:3cc0:trace:file:Win32HandleToDosFileHandle Got 5 for h32 000002D8 29e0:3cc0:trace:int21:INT21_CreateFile CreateFile finished: handle=5, status=1. 29e0:3cc0:trace:int21:DOSVM_Int21Handler returning: AX=0005 BX=0000 CX=4000 DX=c2a4 SI=4001 DI=0000 DS=12b7 ES=3cd7 EFL=00003246 3cc0:Call KERNEL.36: GETCURRENTTASK() ret=14b7:05dd ds=14d7
Trace.txt

However, put OTVDM in C:\Windows\System\otvdm-master-2441 and execute it, it will automatically generate WINDOWS\system behind otvdm-master-2441
I tried to add the crack file and the new OTVDM to its auto-generated root directory, no error popped up, but the program did not execute
31e4:23f0:trace:winevdm:set_dll_path L"C:\\Windows\\System\\otvdm-master-2441\\WINDOWS\\SYSTEM" 31e4:23f0:trace:winevdm:set_dll_path L"C:\\Windows\\System\\otvdm-master-2441\\WINDOWS\\SYSTEM" version: 2441 31e4:23f0:trace:winevdm:entry_point GetCommandLine = 'C:\CASWIN\CAS_WIN.exe --ntvdm64: "C:\CASWIN\CAS_WIN.EXE" --ntvdm64-args: ' 31e4:23f0:trace:winevdm:entry_point appname = 'C:\CASWIN\CAS_WIN.EXE' 31e4:23f0:trace:winevdm:entry_point cmdline = '' 31e4:23f0:trace:winevdm:entry_point argv[0]: 'C:\CASWIN\CAS_WIN.exe' 31e4:23f0:trace:winevdm:entry_point argv[1]: 'C:\CASWIN\CAS_WIN.EXE'
Trace.txt

commented

Put winevdm in C:\Users\SkillGodAk\Desktop\otvdm-master-2441\ and the crack files in C:\Users\SkillGodAk\Desktop\otvdm-master-2441\WINDOWS\system . Winevdm cannot be put in C;\windows\system, it will not work.

Finally succeeded, it turned out that I misplaced it
But the opening speed is very slow, is this normal?

commented

EnumFontLimitation=1 in otvdm.ini make it a lot faster but if you need all the fonts available then that won't help.

I have tried to run with whpx vm
Some time has been shortened, but there is still a gap between the opening speed of Microsoft's NTVDM
But it's great news that it can run on X64
Thank you for spending so much time helping me
I hope that the opening speed of the later updated version can be improved

commented

Since the problem is fixed you can close this report.