function GetSkin(ASkinName: PChar; var Stream: TMemoryStream): Boolean;stdcall; var F: TResourceStream; begin try F := TResourceStream.Create(HInstance, ASkinName, 'Skin'); try Stream.CopyFrom(F, F.Size); finally F.Free; F := nil; end; Result := True; except Result := False; end; end;
function GetSkinsName(var Strs: TStrings): Boolean;stdcall; var F: TResourceStream; F1: TStringStream; begin try F := TResourceStream.Create(HInstance, 'SkinsName', 'TEXT'); F1 := TStringStream.Create('); try F1.CopyFrom(F, F.Size); Strs.Text := F1.DataString; finally F.Free; F := nil; F1.Free; F1 := nil; end; Result := True; except Result := False; end; end;