Author Topic: Win32 MessageBox() Function  (Read 2131 times)

0 Members and 1 Guest are viewing this topic.

Loggie

  • Guest
Win32 MessageBox() Function
« 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;
}

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re: Win32 MessageBox() Function
« Reply #1 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.