5,388
社区成员
发帖
与我相关
我的任务
分享
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
Function EnumResName(hModule: HMODULE; lpType, lpName: PChar;lParam: Longint):BOOL;stdcall;
implementation
{$R *.dfm}
Function EnumResName(hModule: HMODULE; lpType, lpName: PChar;lParam: Longint):BOOL;
var
str:String;
Begin
str:=UpperCase(lpName);
if (pos('DVCLAL',str)=0)and(pos('PACKAGEINFO',str)=0)then
begin
str:=copy(str,2,length(str));
Form1.Memo1.Lines.Append(str);
end;
result:=true;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
flag: integer;
begin
flag:=1; StrToFloat(
EnumResourceNames(GetModuleHandle(nil),RT_RCDATA,@EnumResName,flag);
end;
end.