DLL and EXE detection

Hi,

I'm looking for informations about BPW 7.0 :

I would like to know how to detect if an EXE file in a DOS or Windows
executable file and how to have a list of DLL used by a Windows EXE
file.

I thing I have to look at the file Header (I've seen something which
seems to be what I'm looking for in the BPW help) but if anyone has a
good code to produce or precise clues, it would help me to get sure
what I've seen is the good way of having such informations.

Thanks in advance for any help,

David.