2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
5 Desc: DOS function NewLoadSeg()
10 #include <dos/dosextens.h>
11 #include <utility/tagitem.h>
12 #include <proto/dos.h>
13 #include "dos_intern.h"
15 /*****************************************************************************
18 #include <proto/dos.h>
20 AROS_LH2(BPTR
, NewLoadSeg
,
23 AROS_LHA(CONST_STRPTR
, file
, D1
),
24 AROS_LHA(const struct TagItem
*, tags
, D2
),
27 struct DosLibrary
*, DOSBase
, 128, Dos
)
30 Loads an executable file into memory via LoadSeg() and takes
31 additional actions based upon the supplied tags.
34 file - NULL terminated name of the file
35 tags - pointer to the tagitems
38 Handle to the loaded executable or 0 if the load failed.
39 IoErr() gives additional information in that case.
46 As there are no tags currently defined, all this function does is
50 LoadSeg(), UnLoadSeg(), InternalLoadSeg(), InternalUnloadSeg()
54 *****************************************************************************/