Absolutizepath

void Absolutizepath(wchar_t *path);

Converts path (file or directory) relative to OllyDbg location to absolute path. If conversion is not possible (for example, different drives), path remains unchanged.

OllyDbg keeps file locations in the initialization file in the relative form and restores them on access. This allows user to install OllyDbg on the flash drive. No matter which letter will be assigned to the drive, all files and directories remain accessible on any computer.


Parameters:

path
File or directory path. The buffer must be at least MAXPATH UNICODE characters long


Return values:

None


Example:

OllyDbg location: "c:\ollydbg"

Path before call: ".\log.txt"
Path after call: "c:\ollydbg\log.txt"

Path before call: "e:\examples\test1.exe"
Path after call: "e:\examples\test1.exe"


See also:
Relativizepath()