2.2.4.34.8 PageBase::GetPageSystemInfo

Description

Get page system information.

Syntax

BOOL GetPageSystemInfo( PageSystemInfo * pInfo )

Parameters

pInfo
[output]Pointer to a structure that receives system information defined as
typedef struct tagPageSystemInfo
{
double dCreated;
double dModified;
int nSize;
int nDependents;
} PageSystemInfo;

Return

Returns TRUE on success and FALSE on failure.

Examples

EX1

// Get page system information
void PageBase_GetPageSystemInfo_ex1()
{
    PageBase pb = Project.Pages();
    if( !pb )
        printf("none page in current project.\n");
 
    PageSystemInfo PgInfo;
    if( pb.GetPageSystemInfo(&PgInfo) )
    {
        printf("Create date is %s.\n", get_date_str(PgInfo.dCreated));
        printf("Modified data is %s.\n",get_date_str(PgInfo.dModified));
        printf("Page size is %d.\n", PgInfo.nSize);
        printf("This page dependents to %d other pages.\n", PgInfo.nDependents);
    }
    else
        printf("Fail to system info from this page.\n");
}

Remark

Get page system information such as page creation, last modified time, size, and number of dependents.

See Also

Header to Include

origin.h