xf_find_file

 

Contents

Description

Find XF file for given category

Syntax

int xf_find_file( string & strFilePath, LPCSTR lpcszFunctionName, LPCSTR lpcszCategoryName = NULL, int nFolderLocation = -1 )

Parameters

strFilePath
[output] XF fullpath file name
lpcszFunctionName
[input] XF function name
lpcszCategoryName
[input] XF category name
nFolderLocation
[modify] XF path type, -1 to indicate search User/Group/System path

Return

actual folder location if file is found, -1 if not

Examples

EX1

void xf_find_file_ex1()
{
    string strFilePath = GetAppPath();
    string strFunctionName = "smooth";
    if(xf_find_file(strFilePath, strFunctionName) < 0)
        printf("Not found")
}

Remark

See Also

header to Include

origin.h

Reference