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

NTSTATUS NTAPI Ext2GetFullNameInformation ( PtrExt2FCB  PtrFCB,
PtrExt2CCB  PtrCCB,
PFILE_NAME_INFORMATION  PtrNameInformation,
long PtrReturnedLength 
)

Definition at line 750 of file fileinfo.c.

Referenced by Ext2CommonFileInfo().

{

    NTSTATUS            RC = STATUS_SUCCESS;

    try 
    {
        if (*PtrReturnedLength < 
            (long)( sizeof(FILE_NAME_INFORMATION) + PtrCCB->AbsolutePathName.Length) ) 
        {
            try_return(RC = STATUS_BUFFER_OVERFLOW);
        }

        // Zero out the supplied buffer.
        RtlZeroMemory(PtrNameInformation, sizeof( FILE_NAME_INFORMATION ) );
        
        if( PtrCCB->AbsolutePathName.Length )
        {
            RtlCopyMemory(
                PtrNameInformation->FileName,       //  Destination,
                PtrCCB->AbsolutePathName.Buffer,    //  Source,
                PtrCCB->AbsolutePathName.Length );  //  Length

            PtrNameInformation->FileNameLength = PtrCCB->AbsolutePathName.Length;
            try_return(RC = STATUS_SUCCESS);
        }
        else
        {
            try_return(RC = STATUS_INVALID_PARAMETER);
        }
        
        try_exit: NOTHING;
    } 
    finally 
    {
        if (NT_SUCCESS(RC)) 
        {
            // Return the amount of information filled in.
            *PtrReturnedLength =
                sizeof( FILE_NAME_INFORMATION ) +
                PtrCCB->AbsolutePathName.Length;
        }
    }
    return(RC);
}

Generated on Sat May 26 2012 05:10:00 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.