Executables can be tested via the FTYP function (type 1 is executable)
of Toolkit 2.

AFAIK you can't recognise Resident Extensions by file type, as they
are type 0 data files like text files, sbasic programs etc, although
some manage to mask themselves as 'executable type' - some versions of
Turbo Toolkit used to do this. In theory you could probably test for
extensions either by (1) filename extension (they are usually _cde,
_bin, _rxt or _rext files) or by looking for a typical piece of code
at the start, something like lea definition block....rts or looking
for the procedure definition block, but it wouldn't be an easy task or
very reliable - youd probably be better off going by filename
extensions.
--
Dilwyn Jones
[EMAIL PROTECTED]
http://www.soft.net.uk/dj/index.html

Phoebus Dokus wrote:

>Hmmm, since my knowledge on the matter is practically
non-existent.... IS
>there a way (by reading for example x bytes of a file) to find from
sbasic
>if a file is a Resident Extension, and Executable etc?



Reply via email to