Hi guys, I'm not very good with other programming languages so am having a bit of difficulty converting this code:

Code:
//
// List all Storage Cards present on device
//
#include "stdafx.h"
 
int WINAPI WinMain(HINSTANCE hInstance,  HINSTANCE hPrevInstance, LPTSTR lpCmdLine,  int nCmdShow)
{
 
       #define CF_CARDS_FLAGS (FILE_ATTRIBUTE_DIRECTORY|FILE_ATTRIBUTE_TEMPORARY)
 
 
       WIN32_FIND_DATA fd;
       HANDLE hCF = FindFirstFile(L"\\*",&fd);
 
       if (INVALID_HANDLE_VALUE == hCF) return 0;
 
       do
       {
              if ((fd.dwFileAttributes & CF_CARDS_FLAGS) == CF_CARDS_FLAGS)
              {
                     MessageBox(NULL,fd.cFileName,fd.cFileName,MB_OK);
              }
       } while (FindNextFile(hCF,&fd));
 
       FindClose(hCF);
       
       return 0;
}
So could anybody help me out.

Thanks in advance for any help.