Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SHFileOperation
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00701236
Message ID:
00701393
Views:
14
Hi George,

You're mistaken. The fFlags member size is 2 bytes. Here's correct definition of SHFILEOPSTRUCT structure
lcFileOpStruct  = NumToLONG(_screen.hWnd) + ;
                NumToLONG(FO_COPY) + ;
                NumToLONG(lnStringBase) + ;
                NumToLONG(lnStringBase + LEN(lcSourceString)) + ;
                NumToWORD(lnFlag) + ;
                NumToLONG(0) + ;
                NumToLONG(0) + ;
                NumToLONG(lnProgressTitle )
>>Ok, I understand, but how can I check the entire member?
>
>Assuming the BOOL is being mapped to a 4-byte integer, you'd have to convert the string representation (which is in low-byte to high byte order), to an integer. In short if any of the bytes begininning at 21 and ending at 24 is not 0, the return value is true.
>
>BTW, I believe Sergey may have erred in saying byte 19 was the beginning. The previous 5 members of the structure are 4 bytes each.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform