<html style="direction: ltr;">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;"
    bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF"
    text="#000000">
    Hello,<br>
    I use the JAVA API. <br>
    <br>
    In order to create a harddisk I use vbox.createHardDisk and then
    IMedium::createBaseStorage method.<br>
    <br>
    First, the method createBaseStorage requires two long values. the
    second value seems to be a value which comes from the enumaration
    MediumVariant. Is there a way to extract the long value of a medium
    variant from the enumeration? I used fixed values from the source
    code...<br>
    <br>
    Is there a way to know ( using the API ), before trying to create a
    disk file on the host that there is enough space to generate the
    disk on that partition ? (e.g.  when specifying full location, r/o
    location, fixed disk which is larger than the actual space left on
    that partition etc... )?<br>
    <br>
    Thanks,<br>
    Gal.<br>
    <br>
  </body>
</html>