IpcfLogicalFileRangeToRawFileRange function

Gets the raw file range for the given logical file range of the protected file content.

Syntax

EXTERN_C HRESULT WINAPI IpcfLogicalFileRangeToRawFileRange(
  _In_  IPCF_FILE_HANDLE     hFile,
  _In_  PCIPCF_FILE_RANGE    inRange,
  _Out_ PIPCF_RAW_FILE_RANGE outRange
);

Parameters

hFile [in]

Handle to the protected file obtained from IpcfOpenFileOnILockBytes or IpcfOpenFileOnHandle.

inRange [in]

Pointer to the structure IPCF_FILE_RANGE indicating the logical range of data in the pfile represented by hFile.

outRange [out]

Pointer to the structure IPCF_RAW_FILE_RANGE indicating the raw range corresponding to the logical range represented by inRange.

Return value

If the function succeeds, the return value is S_OK. If the function fails, it returns an HRESULT value that indicates the error.

For more information, see Error codes for a description of all RMS SDK 2.1 return values.

Requirements

Minimum supported client
Windows Vista with SP2
Minimum supported server
Windows Server 2008
Header
Ipcfile.h (include Msipc.h)
Library
Msipc.lib
DLL
Msipc.dll