Huge Collections of Software Manuals and Knowledgebase

GreatManuals.com
Huge Collections of Software Manuals and Knowledgebase

 
Home Contact Us Request to publish your help manuals Request to remove your help manuals
Introduction
» Overview
» DF SDK™ Version 1.0.2.2
» DF SDK v1.0.2.2 Version History
» Binary Files Comparing
» Acknowledgments
Library LIBDF
» Introduction
» How it Works?
Getting Started
» File Comparing & Difference File Building
» df-file Applying (Reconstruction of New File)
Comparing & Diff
» dfOpenCmpByNames Function
» dfOpenCmpByHandles Function
» dfCompare Function
» dfTestCmpResult Function
» dfBuildN, dfBuildH Function
» dfCloseCmp Function
» TDfCmp Structure
» TDfCmpOptions Structure
» TDfCmpResult Structure
» TDfBldOptions Structure
Difference Applying
» dfOpenDfFile Function
» dfCloseDfFile Function
» dfGetDfInfo Function
» dfApplyN, dfApplyH Function
» dfTouch Function
» dfGetExtraDataSize Function
» dfGetExtraData Function
» TDfChangePhase Structure
» TDfInteract Structure
» TDfProgress Structure
Support Detail
» Error Codes
» Frequenlty Asked Questions
» How to Register DF SDK?
» DF SDK Update & Support
» Contact Information
 

dfOpenCmpByHandles Function

Summary

dfOpenCmpByNames creates new comparing context for two files, descriptors for these files are set in parameters hOldFile and hNewFile.

Syntax

int dfOpenCmpByHandles (

FD_T
hOldFile,

FD_T
hNewFile,

PTDfCmp *
ppCmp );

Arguments

hOldFile

deleted files recovery laptop recovery free password recovery
flash media data recovery compact flash recovery digital camera repair services
professional data recovery data recovery tools download file recovery program

[Input]

Descriptor of an old file, created by function CreateFile().

May be INVALID_FD_VALUE value, if old file is skipped.

hNewFile

[Input]

Descriptor of a new file, created by function CreateFile().

May be INVALID_FD_VALUE value, if new file is skipped.

ppCmp

[Output]

Pointer on variable of PTDfCmp type, which contains a pointer on the comparing context created in case of successful function termination.

Return Values

If the function succeeds, the return value is zero (EDF_SUCCESS).

If the function fails, the return value is one of the following:

  • EDF_BAD_PARAM
  • EDF_OUT_OF_MEMORY
  • EDF_SYSERROR
  • EDF_FATAL

Remarks

Filling of the context structure fields during the process of difference context creating is processed subject to values of attributes of the compared files (see TDfCmp structure description for details). Fields szOldFileName, szNewFileName, szOldVersionID and szNewVersionID are left empty. You can set values for these fields on your own.

Successfully created comparing context can be used later on when calling functions dfCompare, dfBuildN and dfBuildH.

One of files whether an old or a new one can be skipped (value of the descriptor INVALID_FD_VALUE), but not both concurrently.

NOTE: Use function dfCloseCmp to delete the context and to free associated resources.

Home | Contact Us | Request to publish your help manuals | Request to remove your help manuals