Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Please Vote! Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

# SFileInfo

  Used to get information on files.

[ Windows | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

## Quick Index

  DESCRIPTION

## Class Summary

class SFileInfo
{
public:

  static ErrCode iGetFileDates( const CStr *fullPath, CDateBundle *dateBundle );
  static ErrCode iGetFileAttributes( const CStr *fullPath, unsigned long *val );
  static ErrCode iGetFileAttributesReadMask( const CStr *fullPath, unsigned long *val );
  static ErrCode iSetFileAttributes( const CStr *fullPath, unsigned long flagMask, unsigned long newFlags );
  static ErrCode iGetFileAttributesWriteMask( const CStr *fullPath, unsigned long *val );
  static ErrCode iGetExecutableType( const CStr *fullPath, unsigned long *val );
  enum eExecutableType;

protected:

}; // SFileInfo

Back to the top of SFileInfo

### DESCRIPTION

Used to get information on files.

Back to the top of SFileInfo

### ErrCode iGetFileDates( const CStr *fullPath, CDateBundle *dateBundle );

Retrieves the three dates associated with a file, and puts them in the given CDateBundle

in fullPath
  The file name.
out dateBundle
  On exit, contains the three dates for the file.

    	static	ErrCode iGetFileDates( const CStr *fullPath, CDateBundle *dateBundle );

Back to the top of SFileInfo

### ErrCode iGetFileAttributes( const CStr *fullPath, unsigned long *val );

Returns the attributes associated with a file

in fullPath
  The file name.
out val
  On exit, contains the file attributes, one of the eFileAttributes constants.

    	static	ErrCode iGetFileAttributes( const CStr *fullPath, unsigned long *val );

Back to the top of SFileInfo

### ErrCode iGetFileAttributesReadMask( const CStr *fullPath, unsigned long *val );

Indicates which bits returned from iGetFileAttributes are valid.

in fullPath
  The file name.
out val
  On exit, contains the mask.

    	static	ErrCode iGetFileAttributesReadMask( const CStr *fullPath, unsigned long *val );

Back to the top of SFileInfo

### ErrCode iSetFileAttributes( const CStr *fullPath, unsigned long flagMask, unsigned long newFlags );

Sets the attributes associated with a file

in fullPath
  The file name.
out flagMask
  Indicates which bits in newFlags are significant
out newFlags
  Contains the new values of each bit. (if that bit is set in flagMask.)

    	static	ErrCode	iSetFileAttributes( const CStr *fullPath, unsigned long flagMask, unsigned long newFlags );

Back to the top of SFileInfo

### ErrCode iGetFileAttributesWriteMask( const CStr *fullPath, unsigned long *val );

Indicates which bits can be set by iSetFileAttributes.

in fullPath
  The file name.
out val
  On exit, contains the mask.

    	static	ErrCode	iGetFileAttributesWriteMask( const CStr *fullPath, unsigned long *val );

Back to the top of SFileInfo

### ErrCode iGetExecutableType( const CStr *fullPath, unsigned long *val );

Wraps GetExecutableType()

in fullPath
  The file name.
out val
  On exit, contains the executable type, one of the eExecutableType constants.

    	static	ErrCode iGetExecutableType( const CStr *fullPath, unsigned long *val );

Back to the top of SFileInfo

### enum eExecutableType;

Returned by iGetExecutableType.

    	enum {
    		kExecutableTypeWin32Exe = 0,
    		kExecutableTypeDOSExe = 1,
    		kExecutableTypeWOWExe = 2,
    		kExecutableTypePIFExe = 3,
    		kExecutableTypePOSIXExe = 4,
    		kExecutableTypeOS216Exe = 5,
    		kExecutableTypeUnknown = 9
    	} eExecutableType;

Back to the top of SFileInfo

## All Members

public:
  static ErrCode iGetFileDates( const CStr *fullPath, CDateBundle *dateBundle );
  static ErrCode iGetFileAttributes( const CStr *fullPath, unsigned long *val );
  static ErrCode iGetFileAttributesReadMask( const CStr *fullPath, unsigned long *val );
  static ErrCode iSetFileAttributes( const CStr *fullPath, unsigned long flagMask, unsigned long newFlags );
  static ErrCode iGetFileAttributesWriteMask( const CStr *fullPath, unsigned long *val );
  static ErrCode iGetExecutableType( const CStr *fullPath, unsigned long *val );
  enum eExecutableType;
protected:

Back to the top of SFileInfo

## Ancestors

Class does not inherit from any other class.

Back to the top of SFileInfo

## Descendants

Class is not inherited by any others.

Back to the top of SFileInfo

Generated from source by the Cocoon utilities on Mon May 28 10:10:58 2001 .

Main Page · JConfig · ImageMeister · System Properties Repository · WordMeister · Free Samples · Java Freeware · Contact Us · FAQ · Links

Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.
WarpMovie, TileMovie, JConfig, ImageMeister and MovieShredder are Trademarks of Samizdat Productions.