这个方法很彻底,unis大神的作品.NavBarKiller
http://rghost.net/6CwHQlRVB
unit Patcher;
interface
uses Windows, System.SysUtils;
implementation
var
PackageModule: HModule;
fp: FARPROC;
dw: DWORD;
initialization
//MessageBox(0, 'initialization', 'initialization', MB_OK);
PackageModule := LoadPackage('coreide230.bpl');
if PackageModule <> 0 then
begin
fp := GetProcAddress(PackageModule, '@Editornavbar@IDERegister$qqrv');
if fp <> nil then
begin
VirtualProtect(fp, 1, PAGE_EXECUTE_READWRITE, @dw);
PByte(fp)^ := $C3;
VirtualProtect(fp, 1, dw, @dw);
end;
end;
finalization
//MessageBox(0, 'finalization', 'finalization', MB_OK);
if PackageModule <> 0 then
UnloadPackage(PackageModule);
end.