English
Source / code snippets

Datentr

 
From Andreas Miethe ex XProfan12:
CompileMarkSeparation
 $H Windows.ph
CLS

Proc DriveSize1WNT

    'gibt die Groesse von CD,DVD,FLOPPY,Partition oder Festplatte zurueck (NT,XP,W2K)
    DEF &IOCTL_DISK_GET_LENGTH_INFO $7405C
    Parameters Drive$
    Declare Result!,H&,C&
    Declare INT64 Res
    H& = ~CreateFile("\\\\.\\"+Drive$,~GENERIC_READ,~FILE_SHARE_WRITE | ~FILE_SHARE_READ, 0,~OPEN_EXISTING,0,0)
    ~DeviceIoControl(H&,&IOCTL_DISK_GET_LENGTH_INFO,0,0,Addr(Res),SizeOf(Res),Addr(C&),0)
    ~CloseHandle(h&)
    Return Res

EndProc

Decimals 2
'Grösse der 1. Festplatte
Print Format$("%6.2f GB",DriveSize1WNT("Physicaldrive0")/1024^3)
Print Format$("%6.2f GB",DriveSize1WNT("Physicaldrive1")/1024^3)
'Grösse der CD -> Pfad anpassen
Print Format$("%6.2f GB",DriveSize1WNT("C:")/1024^3)
Print Format$("%6.2f GB",DriveSize1WNT("D:")/1024^3)
Print Format$("%6.2f GB",DriveSize1WNT("G:")/1024^3)
Print Format$("%6.2f GB",DriveSize1WNT("E:")/1024^3)
Waitinput
End
 
10/25/10  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.208 Views

Untitledvor 0 min.
Uwe Lang11/21/21
AndreasS11/27/18
Member 389165709/22/18
Mende-daniel201407/22/18
More...

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie