Jump to content

Help for structure in function

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")


Edited by Ontosy

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

  • Create New...