Pascal Scripting: ApplyPathRedirRules

Prototype:

function ApplyPathRedirRules(const A64Bit: Boolean; const APath: String; const ATargetProcess: TPathRedirTargetProcess): String;

Description:

Applies system path redirection to the specified path and returns the rewritten path.

Before rewriting, the path is expanded using ExpandFileName and converted to an extended-length path (also known as a super path).

Path expansion and conversion to extended-length path always occurs, even if nothing is rewritten.

Remarks:

TPathRedirTargetProcess is defined as:

TPathRedirTargetProcess = (tpCurrent, tpNativeBit, tp32Bit, tp32BitPreferSystem32);

See also:

ApplyPathRedirRulesForCurrentProcess
PathConvertSuperToNormal