We help IT Professionals succeed at work.
Get Started

PROBLEM with antivirus and function

boycoder
boycoder asked
on
565 Views
Last Modified: 2012-05-11
Hi, my antivirus does not allow my project to run. It finds the following line..


i dont weant to cryot or pack it
REXDUES      := SWET.ExecQuery('SELECT * FROM AntiVirusProduct','WQL',0);


the word it find is "virus"

can i use another word that points to that, so it cant stop me working? below is the function

   Function AVSV:String;
var
 SWET : OLEVariant;
 REXDUES      : OLEVariant;
 VITEL      : OLEVariant;
 WHATSGV        : IEnumvariant;
 NHFCZ        : LongWord;
begin;
 SWET := GetSDX('winmgmts:\\localhost\root\SecurityCenter2');
 REXDUES      := SWET.ExecQuery('SELECT * FROM AntiVirusProduct','WQL',0);
 WHATSGV          := IUnknown(REXDUES._NewEnum) as IEnumVariant;
 Result:='';
 while WHATSGV .Next(1, VITEL  , NHFCZ ) = 0 do
  begin
   Result:=Result+Format('%s',[fggvc(VITEL  .displayName)])+#13#10; // add ret line

   Result:=Result+#13#10; // add an empty line at end of each block
  end;
end;

Comment
Watch Question
Freelance Project Manager
CERTIFIED EXPERT
Top Expert 2010
Commented:
This problem has been solved!
Unlock 2 Answers and 8 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE