Jump to content

Dll Files


Recommended Posts

Hey everyone. I've been googling around but i can't find anything that answers my question. What i'm looking for is a list of all the functions that reside in the basic windows DLL files (user32.dll for example). How are you supposed to know the functions and what they do? Thanks.

Link to comment
Share on other sites

Ok, so i've been playing around with DLL functions a bit now, but i ran into some trouble... The code doesn't work :D

Here's what i've got:

$disk = DllCall("shell32.dll", "int", "SHGetDiskFreeSpaceA", "str", "C:\", "uint64", "", "uint64", "", "uint64", "")

MsgBox(0, "Disk Space", "Drive: " & $disk[1] & @CRLF & "Total Space: " & $disk[3] & @CRLF & "Free Space: " & $disk[4])

Compiler error:

>Running:(3.3.0.0):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Administrator\My Documents\autoit\drive.au3" 
!>06:54:04 AutoIT3.exe ended.rc:-1073741819
+>06:54:05 AutoIt3Wrapper Finished
>Exit code: -1073741819 Time: 1.402

Dll function info:

http://msdn.microsoft.com/en-us/library/bb762176(VS.85).aspx

Link to comment
Share on other sites

Dim $aRet = DllCall('shell32.dll', 'int', 'SHGetDiskFreeSpace', 'str', 'C:\', 'uint64*', '', 'uint64*', '', 'uint64*', '')
If Not @error And $aRet[0] Then
    For $i = 0 To 4
        ConsoleWrite($aRet[$i] & @LF)
    Next
EndIfoÝ÷ Ù±ßÛjëh×6ConsoleWrite(($aRet[$i]/(2^20)) & ' MB' & @LF)

;]

Edited by Authenticity
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...