Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: Loggie on May 13, 2010, 02:21:56 AM

Title: Win32 MessageBox() Function
Post by: Loggie on May 13, 2010, 02:21:56 AM
I wasn't sure where to post this, yes it's a false alarm.. But I consider it to be an issue..

I was looking at Win32 programming and when I try to compile the following code I get a warning saying a virus has been found.
Clearly the code is simply showing a message box saying "Hello World!", without this it's fine.

Malware name: Win32:Malware-gen
Malware type: Virus/Worm
VPS version: 100512-1, 12/05/2010

Code: [Select]
#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL,
 (LPCWSTR)"Hello World!",
 (LPCWSTR)"Hello!",
 MB_OK);
 
return 0;
}
Title: Re: Win32 MessageBox() Function
Post by: igor on May 13, 2010, 09:07:06 AM
You're skipped the main piece of information - what compiler you compiled it with.

Anyway, we'd need that file - so either move it to Chest and then submit it from there, or pack the executable into a password-protected archive (ZIP, RAR, ...) and send it to virus@avast.com, together with the password and the explanation you sent here.
Thanks.