/*
  Windows Registry functions
  Version: v1.0a
  Update:  05/10/18
  Author:  A.Fombaron / Bob Le Gob - http://www.kyrien.com
*/


#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <windows.h>

#include <winuser.h>
#include <mmsystem.h>

#include "../kernel/include/kernel.h"
#include "../kernel/listlab.h"
#include "../kernel/include/common.h"

#include "winscol.h"

/*
#include "../kernel/scol.h"
#include "../kernel/scolsys.h"

#include "../kernel/3d/display.h"
#include "../kernel/3d/register.h"

#include "winscol.h"
#include "listlab.h"
#include "macros.h"
#include "scolobj.h"
#include "objbitmap.h"
*/

// ****************************************************************************

int SCWINREG_CreateKey (mmachine m)
{
	//return foo(m, "Debug: SCWINREG_CreateKey\n");
	return 0;
}


// ****************************************************************************


#define NSCOL_WINREG 1

char* scol_winreg_name[NSCOL_WINREG]=
{
	"_winreg_createkey"
};


int (*scol_winreg_fun[NSCOL_WINREG])(mmachine m)=
{
	SCWINREG_CreateKey
};


int scol_winreg_narg[NSCOL_WINREG]=
{
	1
};


char* scol_winreg_type[NSCOL_WINREG]=
{
	"fun [S] I"
};


// ****************************************************************************


//Note: This function is called in SCinitsyspack() : kernel45/src/win/hardload.c
int SCOLloadWinReg(mmachine m)
{
  int k;
	
	k=PKhardpak(m, "scol_winreg.pkg", NSCOL_WINREG, scol_winreg_name, scol_winreg_fun, scol_winreg_narg, scol_winreg_type);
  
  return k;
}