Solved Viewing a list of all functions in 16 bit file

Microsoft Windows xp professional w/serv...
June 18, 2014 at 20:21:59
Specs: WINDOWS SERVER 2012, 9.6GHZ/4GB
HAY PEOPLE,

I RECENTLY FOUND OUT THAT DLL FILES HAVE FUNCTIONS.
(GOOD MORNING, HAHA)
THIS IS FINE, BUT THE INTERESTHING IS THAT I FOUND OUT THAT THOSE FUNCTIONS IN DLL AND EXE FILES CAN BE USED!
YOU JUST LOAD DLL FILE AND YOU CAN USE ITS FUNCTIONS. FOR EXAMPLE IN POWERSHELL SCRIPT YOU CAN USE FUNCTIONS FROM NTOSKRNL (THE COOLEST FILE IN NEW VERSIONS OF WINDOWS).

BUT, OF COURSE, THERE IS A PROBLEM.
HOW CAN I SEE WHICH FUNCTIONS ARE INSIDE DLL FILES?

THERE IS A PROGRAM CALLED DEPENDENCY WALKER. IT WORKS GREAT, BUT NOT WITH 16 BIT FILES.
BUT, I WANT TO USE 16 BIT DLL FILES.
I FOUND OUT ONE PROGRAM WHICH OPENS 16 BIT FILES, BUT IT OPENS JUST WINDOWS FILES.
BUT I COULD NOT FIND A PROGRAM WHICH OPENS 16-BIT MS-DOS FILES.

TO BE EXACT, I WANT TO USE SOME FUNCTIONS FROM BASICA.EXE (PROGRAM FROM 1981.).
BUT I COULD NOT FIND ANY PROGRAM WHICH CAN OPEN THAT OLD DLL AND EXE FILES.

DO YOU KNOW WHICH PROGRAM CAN OPEN (BY OPEN I MEAN MAKE A LIST OF FUNCTIONS) IN SUCH AN OLD FILES?
DEPENDENCY WALKER DOES NOT WORK.
AND I STILL WANT TO SEE WHICH FUNCTIONS PC-DOS 1.0 USED IN ITS EXECUTABLES.
ANY SUGGESTION?


See More: Viewing a list of all functions in 16 bit file

Report •


✔ Best Answer
June 19, 2014 at 23:07:47
When you see function names in an .exe file you are seeing the functions that are imported from .dll files, not functions exported by the .exe. As MS-DOS did not use .dll libraries there is nothing, in general, to see.

It is just possible that is some cases of very large MS-DOS programs you might see some imports from overlays but, again, these are functions the program needs to import from another file not functions that it exports.

You have to understand the difference between a DLL (Dynamic Link Library), whose purpose is to provide functions that proframs can use, and executable functions.

message edited by ijack



#1
June 18, 2014 at 22:05:30
What functions? Half the stuff from that era doesn't work on current sysems, for obvious reasons (16 - 32 bit, Windows vs DOS, bus and clock speed, video graphics, etc.) I would not invest much confidence or effort into making an old DLL function work in the current environment, but rather to find something that uses current resources. I still use qbasic, and it still works mostly, but I use vis-basic and vbscript for current apps.
It mostly depends on what particular function you wish to invoke...

message edited by nbrane


Report •

#2
June 19, 2014 at 02:43:08
DLLs do not exist in MS-DOS. .exe files do not export functions.

Report •

#3
June 19, 2014 at 05:57:21
One thing from DOS that survived is caps-lock. LOL

=====================
M2 Golden-Triangle


Report •

Related Solutions

#4
June 19, 2014 at 15:23:23
I KNOW THAT IT DOES NOT WORK, I JUST WANT TO MAKE A LIST OF FUNCTIONS. ;)

Report •

#5
June 19, 2014 at 15:24:50
IJACK,
YOU MEAN ALL .EXE FILES OR THOSE FILES FROM MS-DOS?

BECAUSE I CAN SEE FUNCTIONS IN MODERN .EXE FILES WITH DEPENDENCY WALKER.


Report •

#6
June 19, 2014 at 18:39:51
"I WANT TO USE SOME FUNCTIONS FROM BASICA.EXE", so i guess that kind of threw me: "List" vs "Use". I usually just search for filename references in the .exe or .dll code, try to figure out the pattern, then make my own extraction engine based on the pattern. Copy /b the .exe or .dll file to a dummy, then EDIT /70 the dummy file to scan for references to external files (.dll, .exe). I made one: fext, which looks for 8-dot-3 pattern (or eight padded three) in a binary file and exports all matching items, but findstr could better handle that nowadays.

Report •

#7
June 19, 2014 at 23:07:47
✔ Best Answer
When you see function names in an .exe file you are seeing the functions that are imported from .dll files, not functions exported by the .exe. As MS-DOS did not use .dll libraries there is nothing, in general, to see.

It is just possible that is some cases of very large MS-DOS programs you might see some imports from overlays but, again, these are functions the program needs to import from another file not functions that it exports.

You have to understand the difference between a DLL (Dynamic Link Library), whose purpose is to provide functions that proframs can use, and executable functions.

message edited by ijack


Report •

#8
June 20, 2014 at 14:40:37
THANK YOU IJACK,
FOR EXPLAINING THIS TO ME. :)
IN THAT CASE, I DO NOT NEED THIS POST ANYMORE. :)

Report •

#9
June 20, 2014 at 14:44:37
WHAT YOU ARE SUGGESTING NBRANE IS TO MAKE ENGINE TO SERCH FOR FUNCTIONS.
THIS IS GOOD IDEA, THANX, JUST, I DO NOT HAVE TIME TO DEAL WITH BINARY FILES ON THIS WAY.
I WAS JUST LOOKING FOR A NAME OF A COMPILED PROGRAM FOR FINDING FUNCTIONS. :P

Report •


Ask Question