Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The software developed by running windows 3.1 cannot be opened #1308

Closed
SkillGodAk opened this issue Jul 31, 2023 · 20 comments
Closed

The software developed by running windows 3.1 cannot be opened #1308

SkillGodAk opened this issue Jul 31, 2023 · 20 comments

Comments

@SkillGodAk
Copy link

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

@cracyc
Copy link
Contributor

cracyc commented Jul 31, 2023

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?

@SkillGodAk
Copy link
Author

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

@cracyc
Copy link
Contributor

cracyc commented Aug 1, 2023

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

@SkillGodAk
Copy link
Author

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

@cracyc
Copy link
Contributor

cracyc commented Aug 1, 2023

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.

@SkillGodAk
Copy link
Author

SkillGodAk commented Aug 1, 2023

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

@cracyc
Copy link
Contributor

cracyc commented Aug 1, 2023

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.

@SkillGodAk
Copy link
Author

SkillGodAk commented Aug 2, 2023

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

@cracyc
Copy link
Contributor

cracyc commented Aug 2, 2023

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.

@SkillGodAk
Copy link
Author

SkillGodAk commented Aug 2, 2023

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

@cracyc
Copy link
Contributor

cracyc commented Aug 2, 2023

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.

@SkillGodAk
Copy link
Author

SkillGodAk commented Aug 2, 2023

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

@cracyc
Copy link
Contributor

cracyc commented Aug 2, 2023

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.

@SkillGodAk
Copy link
Author

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

@SkillGodAk
Copy link
Author

SkillGodAk commented Aug 2, 2023

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

@cracyc
Copy link
Contributor

cracyc commented Aug 2, 2023

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.

@SkillGodAk
Copy link
Author

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

@cracyc
Copy link
Contributor

cracyc commented Aug 2, 2023

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

@SkillGodAk
Copy link
Author

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

@cracyc
Copy link
Contributor

cracyc commented Aug 2, 2023

Since the problem is fixed you can close this report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants