Jump to content

Help for structure in function


 Share

Recommended Posts

I try to transpose this function with this structure.
But it not work. it return a "2". Ho to do?

Func FbwfFindNext($log=false)
    local $size=68, $FbwfCacheDetail
    $FbwfCacheDetail=DllStructCreate("ULONG cacheSize; ULONG openHandleCount; ULONG fileNameLength; WCHAR fileName[1];")
    local $Ret=DllCall("fbwflib.dll", "ULONG", "FbwfFindFirst", "wstr", "C:", "ptr", DllStructGetPtr($FbwfCacheDetail), "ULONG*", $size)
    local $fn=DllStructGetData($FbwfCacheDetail, "fileName")
    msgbox(0,$ret[2],$fn)
EndFunc

 

Edited by Ontosy
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...