I need to create a DLL that has the following 2 functions so I can interface my program with another program. Can anyone help me to make the code equivalent of the code below in VB?

VB Code:
  1. 'Required dll functions
  2. int WINAPI getmove(int board[8][8], int color, double maxtime, char str[1024], int *playnow, int info, int moreinfo, struct CBmove *move);
  3. int WINAPI enginecommand(char command[256], char reply[1024]);

where struct CBmove is defined as follows:

VB Code:
  1. struct CBmove
  2. {
  3. int ismove;
  4. int newpiece;
  5. int oldpiece;
  6. struct coor from,to;
  7. struct coor path[12];
  8. struct coor del[12];
  9. int delpiece[12];
  10. }
  11.  
  12. struct coor
  13. {
  14. int x;
  15. int y;
  16. }