ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 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

PNTFS_FCB NtfsCreateFCB ( PCWSTR  FileName,
PNTFS_VCB  Vcb 
)

Definition at line 71 of file fcb.c.

Referenced by NtfsMakeRootFCB(), and NtfsMountVolume().

{
  PNTFS_FCB Fcb;

  ASSERT(Vcb);
  ASSERT(Vcb->Identifier.Type == NTFS_TYPE_VCB);

  Fcb = ExAllocatePoolWithTag(NonPagedPool, sizeof(NTFS_FCB), TAG_FCB);
  RtlZeroMemory(Fcb, sizeof(NTFS_FCB));

  Fcb->Identifier.Type = NTFS_TYPE_FCB;
  Fcb->Identifier.Size = sizeof(NTFS_TYPE_FCB);
  
  Fcb->Vcb = Vcb;

  if (FileName)
  {
    wcscpy(Fcb->PathName, FileName);
    if (wcsrchr(Fcb->PathName, '\\') != 0)
    {
      Fcb->ObjectName = wcsrchr(Fcb->PathName, '\\');
    }
    else
    {
      Fcb->ObjectName = Fcb->PathName;
    }
  }

  ExInitializeResourceLite(&Fcb->MainResource);
  
  Fcb->RFCB.Resource = &(Fcb->MainResource);

  return(Fcb);
}

Generated on Sat May 26 2012 05:22:22 for ReactOS by doxygen 1.7.6.1

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