Quick links:
BoxedApp Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
BoxedApp SDK Help >> Options DEF_BOXEDAPPSDK_OPTION__ALL_CHANGES_ARE_VIRTUAL
By default, this option is not set. If this option is set, all the changes, made in the file system or the registry, are stored in the virtual environment. For example:
[ C++ ]
... void main() { BoxedAppSDK_Init(); ... BoxedAppSDK_EnableOption(DEF_BOXEDAPPSDK_OPTION__ALL_CHANGES_ARE_VIRTUAL, TRUE); { // File 'virtual.txt' will be created as virtual HANDLE hFile = CreateFile( _T("virtual.txt"), GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_NEW, 0, NULL ); } BoxedAppSDK_EnableOption(DEF_BOXEDAPPSDK_OPTION__ALL_CHANGES_ARE_VIRTUAL, FALSE); ... }
[ Delphi ]
... var fs: TFileStream; begin BoxedAppSDK_Init(); BoxedAppSDK_EnableOption(DEF_BOXEDAPPSDK_OPTION__ALL_CHANGES_ARE_VIRTUAL, true); // File 'virtual.txt' will be created as virtual fs := TFileStream.Create('virtual.txt', fmCreate or fmOpenWrite); fs.Free(); BoxedAppSDK_EnableOption(DEF_BOXEDAPPSDK_OPTION__ALL_CHANGES_ARE_VIRTUAL, false); ... end;
Quick links:
BoxedApp Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
|