caption := ParamStr(0);
var buff : array[0..256] of char; begin GetModuleFileName(HInstance, @buff, 256); Caption := buff;