NWPeekFileData

Enables the developer to look at data in a migrated file

Local Servers:blocking
Remote Servers:N/A
Classification:4.x, 5.x, 6.x
Service:Server-Based Data Migration

Syntax

   #include <\nlm\nit\nwdatamg.h>  
    
   LONG NWPeekFileData (  
      char   *path,  
      LONG    nameSpace,  
      LONG    dataStreamNumber,  
      LONG    startingSector,  
      LONG    sectorsToRead,  
      BYTE   *buffer,  
      LONG   *sectorsRead,  
      LONG   *bytesRead); 
   

Parameters

path

(IN) Specifies the path of the file from which to read data.

nameSpace

(IN) Specifies the name space of the file (see Section 20.5, Name Space Flag Values.

dataStreamNumber

(IN) Specifies the data stream for the data.

startingSector

(IN) Specifies the sector to start reading from.

sectorsToRead

(IN) Specifies the number of sectors to read.

buffer

(OUT) Points to the buffer containing the data that was read.

sectorsRead

(OUT) Receives the number of sectors read.

bytesRead

(OUT) Receives the total number of bytes read.

Return Values

0

Successful.

Remarks

NOTE:This function does not have a cross-platform counterpart.

This function allows the developer to read from a migrated file.

The nameSpace parameter can have the following values: