Thank you so very much Majkinetor.
I am wondering, if NumPut is InsertInteger, .. is NumGet -> ExtractInteger?
You see, I need NumGet also. When I put ExtractInteger in place of NumGet, I am getting a "Caller must pass a variable to this ByRef parameter"
I am using this as NumGet
Code:
ExtractInteger(ByRef pSource, pOffset = 0, pIsSigned = false, pSize = 4) ; See DllCall for details.
{
Loop %pSize% ; Build the integer by adding up its bytes.
result += *(&pSource + pOffset + A_Index-1) << 8*(A_Index-1)
if (!pIsSigned OR pSize > 4 OR result < 0x80000000)
return result ; Signed vs. unsigned doesn't matter in these cases.
return -(0xFFFFFFFF - result + 1)
}
specifically for
Code:
DllCall(NumGet(NumGet(1*pStream)+8),"UInt",pStream)
Any idea what may be up there?
