| Home
| Previous
| Next
| Up

GA_getSNAPConfigPath

Returns the currently active SNAP configuration file path

Declaration

const char * NAPI GA_getSNAPConfigPath(void)

Prototype In

snap/graphics.h

Return Value

Path to currently active SNAP configuration files

Description

This function returns the path to the currently active SNAP configuration files on the system. User applications that need to access the monitor database and other configuration files directly should use this function to find the location of those files, rather than the PM_getSNAPConfigPath function. The reason is that the PM library version always returns the current system global configuration path, while this versions returns the currently active versions. It is possible for SNAP to be located relative to the application directory, and this function will return the correct path if this is the case.

Note: The string is returned in a temporary buffer that is reused. Hence the calling application should copy the returned string to a different buffer immediately after calling this function and before calling any other SNAP functions.

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com