#include <stdio.h>
#include <stdlib.h>

#include "def.h"
#include "syslogif.h"
#include "windows.h"

void MessageBox(void *ptr,char *message,char *windowTitle,int flags)
{
	xsyslogf(SYSLOG_FILE,LOG_ERROR,"%s:%s\n",windowTitle,message);
}

/*void fatalbox(char *message)
{
     xf(stderr,"%s\n",message);
     exit(4);
} */

int RegCreateKey(int section, char *keyName, HKEY *key)
{
  char buf[256];

  sprintf(buf,"Set %s %s\0",keyName,key);
  xsyslogf(SYSLOG_FILE,LOG_ERROR,buf);
  /*system(buf);*/

  return ERROR_SUCCESS;
}
