Jump to content

Recommended Posts

Posted

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.

Posted

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

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
×
×
  • Create New...