The BackupReadFile method reads the database file and loads the contents into the buffer that is provided. The file MUST be initialized by a prior call to BackupOpenFile.

 HRESULT BackupReadFile(
   [ref, out, size_is(cbBuffer)] BYTE* pbBuffer,
   [in] LONG cbBuffer,
   [out] LONG* pcbRead
 );

pbBuffer: A pointer to the buffer that receives the read data.

cbBuffer: The size, in bytes, of the preceding buffer. This parameter MUST be a multiple of the page size of the operating system.

pcbRead: A pointer to an integer that receives the actual number of bytes read.

The CA server MUST enforce the sequencing rules for the BackupReadFile, as specified in section 3.1.4.1.18.<56>

The CA server MUST apply the following processing rules: