package uwt

  1. Overview
  2. Docs
type os =
  1. | Windows
  2. | Android
  3. | Linux
  4. | Mac
  5. | Freebsd
  6. | Openbsd
  7. | Cygwin
  8. | Netbsd
  9. | Sun
  10. | Hp
  11. | Dragonfly
  12. | Aix
  13. | Minix
  14. | Bsd
  15. | Unknown
val os : os

os is determined at compile time (by the c compiler) and might differ from the later OS

type win_version = {
  1. major_version : int;
  2. minor_version : int;
  3. build_number : int;
  4. platform_id : int;
  5. csd_version : string;
}
val win_version : unit -> win_version result

Wrapper around GetVersionEx. It will always return Error UWT_EUNAVAIL on non windows systems. Your application must be manifested, otherwise you will get wrong informations on windows 8.1 and newer

OCaml

Innovation. Community. Security.