((((b4 * 256)+b3)*256)+b2)*256)+b1 * or w/o parenthesis b4*256^3 + b3*256^2 +b2*256 + b1>Typo. I mean the multiplier be increasing by 2**8, or more precisely, value of multiplier should be 256**n such that third byte should be multiplied by 256**2 and forth byte should be multiplied by 256**3
>>PROCEDURE parseprocessinfostruc >>LPARAMETER cProcessInfoStructure >>WITH This >> .inProcessHandle = .ExtractDWORD(cProcessInfoStructure) >> .inThreadHandle = .ExtractDWORD(SUBST(cProcessInfoStructure,5)) >>ENDWITH >> >>ENDPROC >> >> >>PROCEDURE extractdword >>LPARAMETER cStringToExtractFrom >>IF TYPE('cStringToExtractFrom')='C' AND LEN(cStringToExtractFrom) >= 4 >> RETURN (((ASC(SUBST(cStringToExtractFrom,4,1))*256) + ; >> ASC(SUBST(cStringToExtractFrom,3,1)))*256 + ; >> ASC(SUBST(cStringToExtractFrom,2,1)))*256 + ; >> ASC(LEFT(cStringToExtractFrom,1)) >>ELSE >> this.icErrorMessage = 'Invalid DWORD string passed for conversion' >> RETURN NULL >>ENDIF >>ENDPROC >>>>