Sign in to follow this  
Followers 0
Gogeta70

Dll Files

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



I made an export viewer too :o

It allows you to look up the function on msdn directly from the program too :D


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

Thanks, it helped a lot!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

That worked very well. Thanks, i understand how it works now :D

Share this post


Link to post
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
Sign in to follow this  
Followers 0