Partager via


Application Registry Foundation Class

This class provides a set of registry functions that return application-specific information such as version and location.

Category

System Utilities

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Utilities

Class

_filereg

Base Class

Custom

Class Library

_registry.vcx

Parent Class

registry

Sample

...\Samples\Solution\WinAPI\regfile.scx

Remarks

To use, drop the class on a project or form or, from the Component Gallery Item shortcut menu, select Add to Project or Add to Form. When you add the class to a form, Visual FoxPro places the class on the form. You can then specify the appropriate values and provide any necessary input and output objects. When you drop the class on a project, you can choose between adding the class or creating a subclass.

See Guidelines for Using Visual FoxPro Foundation Classesfor more information on using foundation classes.

Properties, Events, Methods

Description

GetAppPath method

Checks and returns path of the application associated with a particular extension.

Syntax: GetAppPath(cExtension, cExtnKey, cAppKey, lServer)

Return: GetApplication(cExtnKey, @cAppKey, lServer)

Arguments: cExtension specifies the extension of the application.cExtnKey specifies the registry key of the application.cAppKey specifies the application path.lServer specifies whether the extension is a server application.

GetLatestVersion method

Returns latest version for a specified application.

Syntax: Getlatestversion(cClass, cExtnKey, cAppKey, lServer)

Return: cExtnKey, @cAppKey, lServer

Arguments: cClass specifies the class key of the application.cExtension specifies the extension of the application.cExtnKey specifies the registry key of the application.cAppKey specifies the application path.lServer specifies whether this is a server application.

GetApplication method

Retrieves the application key.

Syntax: Getapplication(cExtnKey, cAppKey, lServer)

Return: @cAppKey

Arguments: cExtension specifies the extension of the application.cExtnKey specifies the registry key of the application.cAppKey specifies the application path.lServer specifies whether the extension is not a full application.

See Also

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Foundation Class Samples