/* Generated by genstub.  Do not edit. */
#include <gauche.h>
#if defined(GAUCHE_WINDOWS)

static ScmObj windows_sys_get_disk_free_space_ex(ScmObj*, int, void*);
static SCM_DEFINE_SUBRX(windows_sys_get_disk_free_space_ex__STUB, 1, 0,0, SCM_FALSE,SCM_SUBR_IMMEDIATE_ARG, windows_sys_get_disk_free_space_ex, NULL, NULL);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)

static ScmObj windows_sys_message_box(ScmObj*, int, void*);
static SCM_DEFINE_SUBR(windows_sys_message_box__STUB, 2, 3,SCM_FALSE,windows_sys_message_box, NULL, NULL);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(__CYGWIN__) || defined(GAUCHE_WINDOWS)
#define SCM_CGEN_CONST /*empty*/
#else
#define SCM_CGEN_CONST const
#endif
static SCM_CGEN_CONST struct scm__scRec {
#if defined(GAUCHE_WINDOWS)
  ScmString d1295[48];
#endif /*defined(GAUCHE_WINDOWS)*/
} scm__sc SCM_UNUSED = {
#if defined(GAUCHE_WINDOWS)
  {   /* ScmString d1295 */
      SCM_STRING_CONST_INITIALIZER("sys-get-disk-free-space-ex", 26, 26),
      SCM_STRING_CONST_INITIALIZER("path", 4, 4),
      SCM_STRING_CONST_INITIALIZER("source-info", 11, 11),
      SCM_STRING_CONST_INITIALIZER("windows.stub", 12, 12),
      SCM_STRING_CONST_INITIALIZER("MB_ABORTRETRYIGNORE", 19, 19),
      SCM_STRING_CONST_INITIALIZER("MB_CANCELTRYCONTINUE", 20, 20),
      SCM_STRING_CONST_INITIALIZER("MB_HELP", 7, 7),
      SCM_STRING_CONST_INITIALIZER("MB_OK", 5, 5),
      SCM_STRING_CONST_INITIALIZER("MB_OKCANCEL", 11, 11),
      SCM_STRING_CONST_INITIALIZER("MB_RETRYCANCEL", 14, 14),
      SCM_STRING_CONST_INITIALIZER("MB_YESNO", 8, 8),
      SCM_STRING_CONST_INITIALIZER("MB_YESNOCANCEL", 14, 14),
      SCM_STRING_CONST_INITIALIZER("MB_ICONEXCLAMATION", 18, 18),
      SCM_STRING_CONST_INITIALIZER("MB_ICONWARNING", 14, 14),
      SCM_STRING_CONST_INITIALIZER("MB_ICONINFORMATION", 18, 18),
      SCM_STRING_CONST_INITIALIZER("MB_ICONASTERISK", 15, 15),
      SCM_STRING_CONST_INITIALIZER("MB_ICONQUESTION", 15, 15),
      SCM_STRING_CONST_INITIALIZER("MB_ICONSTOP", 11, 11),
      SCM_STRING_CONST_INITIALIZER("MB_ICONERROR", 12, 12),
      SCM_STRING_CONST_INITIALIZER("MB_ICONHAND", 11, 11),
      SCM_STRING_CONST_INITIALIZER("MB_DEFBUTTON1", 13, 13),
      SCM_STRING_CONST_INITIALIZER("MB_DEFBUTTON2", 13, 13),
      SCM_STRING_CONST_INITIALIZER("MB_DEFBUTTON3", 13, 13),
      SCM_STRING_CONST_INITIALIZER("MB_DEFBUTTON4", 13, 13),
      SCM_STRING_CONST_INITIALIZER("MB_APPLMODAL", 12, 12),
      SCM_STRING_CONST_INITIALIZER("MB_SYSTEMMODAL", 14, 14),
      SCM_STRING_CONST_INITIALIZER("MB_TASKMODAL", 12, 12),
      SCM_STRING_CONST_INITIALIZER("MB_DEFAULT_DESKTOP_ONLY", 23, 23),
      SCM_STRING_CONST_INITIALIZER("MB_RIGHT", 8, 8),
      SCM_STRING_CONST_INITIALIZER("MB_RTLREADING", 13, 13),
      SCM_STRING_CONST_INITIALIZER("MB_SETFOREGROUND", 16, 16),
      SCM_STRING_CONST_INITIALIZER("MB_TOPMOST", 10, 10),
      SCM_STRING_CONST_INITIALIZER("MB_SERVICE_NOTIFICATION", 23, 23),
      SCM_STRING_CONST_INITIALIZER("IDABORT", 7, 7),
      SCM_STRING_CONST_INITIALIZER("IDCANCEL", 8, 8),
      SCM_STRING_CONST_INITIALIZER("IDCONTINUE", 10, 10),
      SCM_STRING_CONST_INITIALIZER("IDIGNORE", 8, 8),
      SCM_STRING_CONST_INITIALIZER("IDNO", 4, 4),
      SCM_STRING_CONST_INITIALIZER("IDOK", 4, 4),
      SCM_STRING_CONST_INITIALIZER("IDRETRY", 7, 7),
      SCM_STRING_CONST_INITIALIZER("IDTRYAGAIN", 10, 10),
      SCM_STRING_CONST_INITIALIZER("IDYES", 5, 5),
      SCM_STRING_CONST_INITIALIZER("sys-message-box", 15, 15),
      SCM_STRING_CONST_INITIALIZER("window", 6, 6),
      SCM_STRING_CONST_INITIALIZER("text", 4, 4),
      SCM_STRING_CONST_INITIALIZER("optional", 8, 8),
      SCM_STRING_CONST_INITIALIZER("caption", 7, 7),
      SCM_STRING_CONST_INITIALIZER("type", 4, 4),
  },
#endif /*defined(GAUCHE_WINDOWS)*/
};
static struct scm__rcRec {
#if defined(GAUCHE_WINDOWS)
  ScmPair d1306[15] SCM_ALIGN_PAIR;
#endif /*defined(GAUCHE_WINDOWS)*/
#if defined(GAUCHE_WINDOWS)
  ScmObj d1305[49];
#endif /*defined(GAUCHE_WINDOWS)*/
} scm__rc SCM_UNUSED = {
#if defined(GAUCHE_WINDOWS)
  {   /* ScmPair d1306 */
       { SCM_NIL, SCM_NIL },
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_MAKE_INT(46U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d1295[3]), SCM_OBJ(&scm__rc.d1306[2])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d1306[3])},
       { SCM_OBJ(&scm__rc.d1306[4]), SCM_NIL},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d1306[6])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d1306[7])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d1306[8])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d1306[9])},
       { SCM_MAKE_INT(111U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d1295[3]), SCM_OBJ(&scm__rc.d1306[11])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d1306[12])},
       { SCM_OBJ(&scm__rc.d1306[13]), SCM_NIL},
  },
#endif /*defined(GAUCHE_WINDOWS)*/
#if defined(GAUCHE_WINDOWS)
  {   /* ScmObj d1305 */
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
  },
#endif /*defined(GAUCHE_WINDOWS)*/
};
#if defined(GAUCHE_WINDOWS)
static ScmObj windows_sys_get_disk_free_space_ex(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj path_scm;
  const char * path;
  ScmObj SCM_SUBRARGS[1];
  SCM_ENTER_SUBR("sys-get-disk-free-space-ex");
  for (int SCM_i=0; SCM_i<1; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  path_scm = SCM_SUBRARGS[0];
  if (!SCM_STRINGP(path_scm)) Scm_Error("const C string required, but got %S", path_scm);
  path = SCM_STRING_CONST_CSTRING(path_scm);
  {
{
ScmObj SCM_RESULT;

#line 47 "windows.stub"
{LPTSTR wpath=SCM_MBS2WCS(path);ULARGE_INTEGER avail;ULARGE_INTEGER total;ULARGE_INTEGER tfree;BOOL r=
#line 51 "windows.stub"
GetDiskFreeSpaceEx(wpath,&(avail),&(total),&(tfree));
if ((r)==(0)){{Scm_SysError("GetDiskFreeSpaceEx failed on path %s",path);}}
{SCM_RESULT=(SCM_LIST3(Scm_OffsetToInteger((avail).QuadPart),
Scm_OffsetToInteger((total).QuadPart),
Scm_OffsetToInteger((tfree).QuadPart)));goto SCM_STUB_RETURN;}}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(SCM_OBJ_SAFE(SCM_RESULT));
}
  }
}

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
static ScmObj windows_sys_message_box(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj window_scm;
  ScmObj window;
  ScmObj text_scm;
  const char * text;
  ScmObj caption_scm;
  const char * caption;
  ScmObj type_scm;
  u_int type;
  ScmObj SCM_SUBRARGS[6];
  SCM_ENTER_SUBR("sys-message-box");
  if (SCM_ARGCNT >= 5
      && !SCM_NULLP(SCM_ARGREF(SCM_ARGCNT-1)))
    Scm_Error("too many arguments: up to 4 is expected, %d given.", SCM_ARGCNT + Scm_Length(SCM_ARGREF(SCM_ARGCNT-1)) - 1);
  for (int SCM_i=0; SCM_i<6; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  window_scm = SCM_SUBRARGS[0];
  window = (window_scm);
  text_scm = SCM_SUBRARGS[1];
  if (!SCM_MAYBE_P(SCM_STRINGP, text_scm)) Scm_Error("const C string or #f required, but got %S", text_scm);
  text = SCM_MAYBE(SCM_STRING_CONST_CSTRING, text_scm);
  if (SCM_ARGCNT > 2+1) {
    caption_scm = SCM_SUBRARGS[2];
  } else {
    caption_scm = SCM_FALSE;
  }
  if (!SCM_MAYBE_P(SCM_STRINGP, caption_scm)) Scm_Error("const C string or #f required, but got %S", caption_scm);
  caption = SCM_MAYBE(SCM_STRING_CONST_CSTRING, caption_scm);
  if (SCM_ARGCNT > 3+1) {
    type_scm = SCM_SUBRARGS[3];
  } else {
    type_scm = SCM_MAKE_INT(0);
  }
  if (!SCM_UINTEGERP(type_scm)) Scm_Error("C integer required, but got %S", type_scm);
  type = Scm_GetIntegerU(type_scm);
  {
{
int SCM_RESULT;

#line 116 "windows.stub"
{HANDLE h=NULL;const TCHAR* wtext=NULL;const TCHAR* wcaption=NULL;int r=0;
#line 120 "windows.stub"
if (SCM_FALSEP(window)){h=(NULL);}else if(
Scm_WinHandleP(window,SCM_FALSE)){h=(Scm_WinHandle(window,SCM_FALSE));} else {
SCM_TYPE_ERROR(window,"<win:handle> or #f");}
if (text){{wtext=(SCM_MBS2WCS(text));}}
if (caption){{wcaption=(SCM_MBS2WCS(caption));}}
r=(MessageBox(h,wtext,wcaption,type));
if ((r)==(0)){{Scm_SysError("MessageBox failed");}}
SCM_RESULT=(r);}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(Scm_MakeInteger(SCM_RESULT));
}
  }
}

#endif /* defined(GAUCHE_WINDOWS) */
void Scm_Init_windows(ScmModule *mod SCM_UNUSED){

#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[0] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[0])),TRUE); /* sys-get-disk-free-space-ex */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[1] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[1])),TRUE); /* path */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d1306[1]), scm__rc.d1305[1]);
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[2] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[2])),TRUE); /* source-info */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d1306[4]), scm__rc.d1305[2]);
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[3] = Scm_MakeExtendedPair(scm__rc.d1305[0], SCM_OBJ(&scm__rc.d1306[1]), SCM_OBJ(&scm__rc.d1306[5]));
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(SCM_INTERN("sys-get-disk-free-space-ex")), SCM_OBJ(&windows_sys_get_disk_free_space_ex__STUB), 0);
  windows_sys_get_disk_free_space_ex__STUB.common.info = scm__rc.d1305[3];
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[4] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[4])),TRUE); /* MB_ABORTRETRYIGNORE */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[4]), Scm_MakeInteger(MB_ABORTRETRYIGNORE), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[5] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[5])),TRUE); /* MB_CANCELTRYCONTINUE */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[5]), Scm_MakeInteger(MB_CANCELTRYCONTINUE), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[6] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[6])),TRUE); /* MB_HELP */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[6]), Scm_MakeInteger(MB_HELP), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[7] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[7])),TRUE); /* MB_OK */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[7]), Scm_MakeInteger(MB_OK), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[8] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[8])),TRUE); /* MB_OKCANCEL */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[8]), Scm_MakeInteger(MB_OKCANCEL), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[9] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[9])),TRUE); /* MB_RETRYCANCEL */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[9]), Scm_MakeInteger(MB_RETRYCANCEL), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[10] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[10])),TRUE); /* MB_YESNO */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[10]), Scm_MakeInteger(MB_YESNO), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[11] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[11])),TRUE); /* MB_YESNOCANCEL */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[11]), Scm_MakeInteger(MB_YESNOCANCEL), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[12] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[12])),TRUE); /* MB_ICONEXCLAMATION */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[12]), Scm_MakeInteger(MB_ICONEXCLAMATION), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[13] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[13])),TRUE); /* MB_ICONWARNING */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[13]), Scm_MakeInteger(MB_ICONWARNING), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[14] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[14])),TRUE); /* MB_ICONINFORMATION */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[14]), Scm_MakeInteger(MB_ICONINFORMATION), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[15] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[15])),TRUE); /* MB_ICONASTERISK */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[15]), Scm_MakeInteger(MB_ICONASTERISK), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[16] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[16])),TRUE); /* MB_ICONQUESTION */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[16]), Scm_MakeInteger(MB_ICONQUESTION), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[17] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[17])),TRUE); /* MB_ICONSTOP */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[17]), Scm_MakeInteger(MB_ICONSTOP), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[18] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[18])),TRUE); /* MB_ICONERROR */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[18]), Scm_MakeInteger(MB_ICONERROR), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[19] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[19])),TRUE); /* MB_ICONHAND */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[19]), Scm_MakeInteger(MB_ICONHAND), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[20] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[20])),TRUE); /* MB_DEFBUTTON1 */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[20]), Scm_MakeInteger(MB_DEFBUTTON1), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[21] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[21])),TRUE); /* MB_DEFBUTTON2 */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[21]), Scm_MakeInteger(MB_DEFBUTTON2), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[22] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[22])),TRUE); /* MB_DEFBUTTON3 */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[22]), Scm_MakeInteger(MB_DEFBUTTON3), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[23] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[23])),TRUE); /* MB_DEFBUTTON4 */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[23]), Scm_MakeInteger(MB_DEFBUTTON4), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[24] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[24])),TRUE); /* MB_APPLMODAL */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[24]), Scm_MakeInteger(MB_APPLMODAL), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[25] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[25])),TRUE); /* MB_SYSTEMMODAL */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[25]), Scm_MakeInteger(MB_SYSTEMMODAL), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[26] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[26])),TRUE); /* MB_TASKMODAL */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[26]), Scm_MakeInteger(MB_TASKMODAL), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[27] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[27])),TRUE); /* MB_DEFAULT_DESKTOP_ONLY */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[27]), Scm_MakeInteger(MB_DEFAULT_DESKTOP_ONLY), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[28] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[28])),TRUE); /* MB_RIGHT */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[28]), Scm_MakeInteger(MB_RIGHT), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[29] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[29])),TRUE); /* MB_RTLREADING */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[29]), Scm_MakeInteger(MB_RTLREADING), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[30] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[30])),TRUE); /* MB_SETFOREGROUND */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[30]), Scm_MakeInteger(MB_SETFOREGROUND), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[31] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[31])),TRUE); /* MB_TOPMOST */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[31]), Scm_MakeInteger(MB_TOPMOST), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[32] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[32])),TRUE); /* MB_SERVICE_NOTIFICATION */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[32]), Scm_MakeInteger(MB_SERVICE_NOTIFICATION), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[33] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[33])),TRUE); /* IDABORT */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[33]), Scm_MakeInteger(IDABORT), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[34] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[34])),TRUE); /* IDCANCEL */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[34]), Scm_MakeInteger(IDCANCEL), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[35] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[35])),TRUE); /* IDCONTINUE */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[35]), Scm_MakeInteger(IDCONTINUE), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[36] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[36])),TRUE); /* IDIGNORE */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[36]), Scm_MakeInteger(IDIGNORE), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[37] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[37])),TRUE); /* IDNO */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[37]), Scm_MakeInteger(IDNO), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[38] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[38])),TRUE); /* IDOK */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[38]), Scm_MakeInteger(IDOK), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[39] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[39])),TRUE); /* IDRETRY */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[39]), Scm_MakeInteger(IDRETRY), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[40] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[40])),TRUE); /* IDTRYAGAIN */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[40]), Scm_MakeInteger(IDTRYAGAIN), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[41] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[41])),TRUE); /* IDYES */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(scm__rc.d1305[41]), Scm_MakeInteger(IDYES), SCM_BINDING_CONST);

#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[42] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[42])),TRUE); /* sys-message-box */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[43] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[43])),TRUE); /* window */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[44] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[44])),TRUE); /* text */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[45] = Scm_MakeKeyword(SCM_STRING(SCM_OBJ(&scm__sc.d1295[45]))); /* :optional */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[46] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[46])),TRUE); /* caption */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[47] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d1295[47])),TRUE); /* type */
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d1306[6]), scm__rc.d1305[47]);
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d1306[7]), scm__rc.d1305[46]);
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d1306[8]), scm__rc.d1305[45]);
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d1306[9]), scm__rc.d1305[44]);
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d1306[10]), scm__rc.d1305[43]);
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d1306[13]), scm__rc.d1305[2]);
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  scm__rc.d1305[48] = Scm_MakeExtendedPair(scm__rc.d1305[42], SCM_OBJ(&scm__rc.d1306[10]), SCM_OBJ(&scm__rc.d1306[14]));
#endif /* defined(GAUCHE_WINDOWS) */
#if defined(GAUCHE_WINDOWS)
  Scm_MakeBinding(SCM_MODULE(mod), SCM_SYMBOL(SCM_INTERN("sys-message-box")), SCM_OBJ(&windows_sys_message_box__STUB), 0);
  windows_sys_message_box__STUB.common.info = scm__rc.d1305[48];
#endif /* defined(GAUCHE_WINDOWS) */
}
