Exp=a
@end
                                        
{
//ע⣺ڱܹʱҪеSoftKey.pas,yt.objӵҪܵĹڵĿ¼,øõԪ


var
KeyLastError: integer= 0;//ڴҪȫֱKeyLastErrorĴ,ֵGetYLastErrorȡ
KeyPath: AnsiString= '';//ڴҪȫֱ,豸ڵ豸·
}


//***ע***úʹȨŵķʽǷûúiniһͬʹá
//Ini_2:(ע⣺뱻ȵ)
//1ûȨŵĸ߰λ
//2ûȨŵĵͰλ
//ĿģʹȨŵķʽǷûдڣʾûûڳʼʱһҪʹδ
//磺ڳ򴴽ʱ͵Ini_2̣
procedure Ini_2(HKey: AnsiString; LKey: AnsiString);
var
  KeyInPath: array[0..Max_Path] of AnsiChar;
begin
  KeyLastError:= FindPort_4(PAnsiChar('@f'), @p, PAnsiChar(HKey), PAnsiChar(LKey), KeyInPath);
  if KeyLastError= 0 then
    KeyPath:= KeyInPath
  else
    begin
    if KeyLastError= -102 then
      Application.MessageBox('ҲָļļļǷڳĿ¼£','',0)
    else
      Application.MessageBox('ָļ','',0);
    end;
end;