a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 hdwrench.library
  FindControllerID
  FindDefaults
  FindDiskName
  FindLastSector
  HDWCloseDevice
  HDWOpenDevice
  InMemMountfile
  InMemRDBStructs
  LowlevelFormat
  OutMemMountfile
  OutMemRDBStructs
  QueryCapacity
  QueryFindValid
  QueryInquiry
  QueryModeSense
  QueryReady
  RawRead
  RawWrite
  ReadMountfile
  ReadRDBStructs
  ReadRDBs
  VerifyDrive
  WriteBlock
  WriteMountfile
  WriteRDBStructs
  WriteRDBs
  ZZexample
  description
Include
GuruMeditation
Docs » Autodocs » hdwrench.library » OutMemMountfile

NAME

    OutMemMountFile

SYNOPSIS

    error = OutMemMountfile ( mfp, sizew, sizeb, unit )
D0 A0 A1 D0 D1
ULONG OutMemRDBStructs ( char *rdbp, ULONG *sizew, ULONG sizeb );

FUNCTION

    Convert internal RDB structures into RDBs in memory as if written to a
disk.

INPUTS

    mfp     Pointer to a character array to receive the mountfile string.
sizew Pointer to buffer to receive size of the data actually written.
sizeb Size of the buffer pointed to by memp.
unit Unit number being dealt with for a reality check.

RESULT

   error    ULONG containing an error code per E_ list in hdwrench.h.
If the mfp entry is NULL the error code will be E_NO_ERROR and sizew
will contain the size buffer required to hold the data irrespective
of the value of sizeb.
If the sizeb is insufficient to contain the entire data set an
E_INSUFFICIENT_MEMORY error code will be returned and sizew will contain
the required buffer size.
If a buffer was passed in and is of sufficient size the mountfile is
written to the memory image as if to a disk based mountfile.
nb. This call does not provide for saving any files to disk such as
filesystems or device init code. Use of WriteMountfile() is highly
recommended for capturing filesystem code and driveinit code from
the RDBs before writing to the RDBs.

BUGS

SEE ALSO

hdwrench.library/InMemMountfile(), hdwrench.library/InMemRDBStructs(), hdwrench.library/OutMemRDBStructs(), hdwrench.library/ReadMountFile, hdwrench.library/ReadRDBStructs(), hdwrench.library/ReadRDBs(), hdwrench.library/WriteRDBStructs(), hdwrench.library/WriteMountfile(), hdwrench.library/WriteRDBs()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Tristar & Red Sector Inc.

AOA
TRSI
PDX
SPB

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se