Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

enhancement for GetSystemInfo


6 replies to this topic

scorpio

scorpio
  • Members
  • 2 posts

Posted 02 July 2001 - 18:39

Hallo,
is there any enhancement for the limit 2GB in the returned value for TotalDiskSpace in the function
GetSystemInfo like GetDiskSpaceEx? I'm looking forward
to seeing the answers. Thank's a lot!

Best regards

Jürgen Bulitta


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 02 July 2001 - 22:11

DISK_TOTALSPACE_EX

(at least in 5.53, not sure about earlier versions)


Perotin

Perotin
  • Full Members
  • 407 posts

Posted 03 July 2001 - 11:18

Hello Stefan!

GetSystemInfo( DISK_TOTALSPACE_EX, lSize, svDir );
works, but the maximum value for LONG or NUMBER is still
2^31 ... how do you do the trick?


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 03 July 2001 - 17:12

Pass BYTES, KBYTES, MBYTES or GBYTES in the nvResult parameter. With GBYTES this should return 10 on a 19 GB drive.

Perotin

Perotin
  • Full Members
  • 407 posts

Posted 04 July 2001 - 11:31

Ok ... strange that you have nvResult as input for KB, MB, GB *and* as output for size of the hard disk drive ...

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 04 July 2001 - 22:22

Historical reasons...