From:	MERC::"uunet!WKUVX1.BITNET!MacroMan" 20-APR-1993 19:43:39.33
To:	MACRO32@WKUVX1.BITNET
CC:	
Subj:	Re: $creprc, setprv and shareable images

In article <01GX8AMY0FZW005I7G@AC.DAL.CA>, Bruce Hudson <HUDSON@AC.DAL.CA>
 writes:
=
=> Leaves my question how to use sys$creprc with PRC$M_NETWRK
=
=    If I remember by DECnet correctly, when you use the PRC$M_NETWORK flag
=you have to specify a username and password in the SYS$ERROR field. The two
=are separated by a space.

The following code creates a network process.  In order to create a network
process, you need DETACH priv.

#include prcdef
#include descrip

main()
{       $DESCRIPTOR(image, "DISK$USERDISK:[CARL]TEST1.EXE");
        $DESCRIPTOR(null, "NL:");
        $DESCRIPTOR(name, "TEST");
        long priv[2] = { 0, 0 };
        SYS$EXIT(SYS$CREPRC(0, &image, &null, &null, &null, priv, 0, &name, 0,
                0, 0, PRC$M_NETWRK));
}
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL

Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
understanding of astronomy is purely at the amateur level (or below).  So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it.  If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.
