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

  1. Home
  2. Community
  3. Development
  4. myReactOS

  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

static OSType get_file_type_from_path ( const UInt8 *  pathname  )  [static]

Definition at line 297 of file ftmac.c.

Referenced by FT_New_Face_From_Resource().

00298   {
00299     FSRef          ref;
00300     FSCatalogInfo  info;
00301 
00302 
00303     if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) )
00304       return ( OSType ) 0;
00305 
00306     if ( noErr != FSGetCatalogInfo( &ref, kFSCatInfoFinderInfo, &info,
00307                                     NULL, NULL, NULL ) )
00308       return ( OSType ) 0;
00309 
00310     return ((FInfo *)(info.finderInfo))->fdType;
00311   }


Generated on Thu Feb 9 06:09:58 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.