Article 4342 of vmsnet.internals: Path: nntpd.lkg.dec.com!pa.dec.com!news1.digital.com!nntp-hub2.barrnet.net!newsfeed.internetmci.com!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!news.moneng.mei.com!daily-planet.execpc.com!sundog.tiac.net!astro.uisinc.com!stone From: stone@astro.uisinc.com (David M. Stone) Newsgroups: vmsnet.internals Subject: Re: Making $SNDJBC/JOBCTL do something it doesn't want to Date: 10 Oct 1995 16:37:04 GMT Organization: Raxco Inc. Lines: 26 Distribution: world Message-ID: <45e7fg$idl@sundog.tiac.net> References: <01HW8ZD5Y2K88WWI1M@kopc.hhs.dk> Reply-To: stone@astro.uisinc.com (David M. Stone) NNTP-Posting-Host: astro.uisinc.com X-Newsreader: mxrn 6.18-27 > I have an application where I want to generate accounting > records into the accounting file which look as if they are > true process deletion records. > > Unfortunately, the documented interface (via $sndjbc) only > allows one to stuff the accounting file with USER records. You didn't say why you wanted to create process deletion records, so this may not be appropriate but you can call the EXE$PRCPURMSG routine in kernel mode. This actually writes the accounting record for the current process into the accounting file. If you want to do this for any particular process, then you have to execute this routine in the context of that process. Note that if you aren't up on kernel mode code, you should get someone who is to help you with this (or decide you can crash-and-burn a machine until you get the bugs out). ---------------------------------+-------------------------------------- David M. Stone | Disclaimer: Nothing I say should be RAXCO Inc. (formerly UIS Inc.) | taken too seriously, nor does it Lexington MA. | reflect the opinions or position of | my employer. Use at your own risk! | Contents may settle during shipping. stone@uisinc.com | Standard disclaimers, etc... ---------------------------------+--------------------------------------