ReactOS Fundraising Campaign 2012
 
€ 3,303 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

BOOL ExportBinaryHive ( IN PCSTR  FileName,
IN PCMHIVE  Hive 
)

Definition at line 33 of file binhive.c.

Referenced by main().

00036 {
00037     FILE *File;
00038     BOOL ret;
00039 
00040     printf ("  Creating binary hive: %s\n", FileName);
00041 
00042     /* Create new hive file */
00043     File = fopen (FileName, "w+b");
00044     if (File == NULL)
00045     {
00046         printf("    Error creating/opening file\n");
00047         return FALSE;
00048     }
00049 
00050     fseek (File, 0, SEEK_SET);
00051 
00052     Hive->FileHandles[HFILE_TYPE_PRIMARY] = (HANDLE)File;
00053     ret = HvWriteHive(&Hive->Hive);
00054     fclose (File);
00055     return ret;
00056 }


Generated on Tue May 15 05:11:56 2012 for ReactOS by doxygen 1.6.3

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.