okutil_get_custom_path

 

Description

This function is to get current working directory.

Syntax

string okutil_get_custom_path( DWORD dwUpdate = 0 )

Parameters

dwUpdate
[input]if not zero then update map for ORIGIN_PATH_CUSTOM, otherwise not. Enum as GET_CUSTOM_PATH_UPDATE__*.

Return

Current working directory.

Examples

EX1

void okutil_get_custom_path_Ex1()
{
    string str = okutil_get_custom_path();
    out_str(str);// print out current working directory.
}

EX2

void okutil_get_custom_path_Ex2()
{
    string str = okutil_get_custom_path(GET_CUSTOM_PATH_UPDATE__ALL);
    out_str(str);// print out current working directory.
}

Remark

See Also

okutil_set_custom_path

header to Included

origin.h

Reference