Main Page
    Cookbook/Overview     ImageMeister     the jcprops file     Licensing
    Binary Installation & Configuration [ Win · Mac · Nix · OSX ]     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 · OSX ]     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 iGetShortPathName( const CStr *inFileName, CStr *outFileName );
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 iGetShortPathName( const CStr *inFileName, CStr *outFileName );

Returns the short file name of a file or directory. I.e., "c:\program files" becomes "c:\progra~1"

in inFileName
The name of the volume.
out outFileName
The display name.

	static	ErrCode iGetShortPathName( const CStr *inFileName, CStr *outFileName );

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 iGetShortPathName( const CStr *inFileName, CStr *outFileName );
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 Fri Aug 23 12:34:07 2002 .

Report problems to jkotula@stratasys.com


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


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