Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/branches/num64/system/Basis/Implementation/Win32/win32-general.sml
ViewVC logotype

View of /sml/branches/num64/system/Basis/Implementation/Win32/win32-general.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5343 - (download) (annotate)
Fri Jun 7 16:58:24 2019 UTC (2 months, 1 week ago) by jhr
File size: 626 byte(s)
code layout
(* win32-general.sml
 *
 * COPYRIGHT (c) 2019 The Fellowship of SML/NJ (http://www.smlnj.org)
 * All rights reserved.
 *
 * General Win32 stuff.
 *)

structure Win32_General : WIN32_GENERAL =
  struct

    structure Word = Word32Imp
    type word = Word.word	(* DWORD *)

    type hndl = Handle.t

    val arcSepChar = #"\\"

    val cfun = CInterface.c_function

    val sayDebug : string -> unit = cfun "SMLNJ-RunT" "debug"

    val getConst' : (string * string) -> word = cfun "WIN32" "get_const"
    fun getConst kind name = getConst'(kind,name)

    val getLastError : unit -> word = cfun "WIN32" "get_last_error"

  end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0