| Option | Value | Description |
| PatchNoOptions | 0x00000000 | No options specified. |
| PatchSaveFileName | 0x00000001 | Save file's name for later verification. |
| PatchCalculateHash | 0x00000002 | Calculate and save file's hash. |
| PatchRemoveReferences | 0x00000004 | Remove external references (currently not implemented). |
| PatchExecutable | 0x00000008 | Create a self-installing patch. PathToStubFile parameter is required if this option is used. |
Creating patch
// fdoc is initialized elsewhere
// Perform a modification to the file
fdoc.FillByte(0,100,20);
fdoc.CreatePatch(@"c:\patch.hexpatch",FileDocumentLib.PatchOptions.PatchCalculateHash | FileDocumentLib.PatchOptions.PatchSaveFileName,null);