Sinisterly
Question about BIT Codes - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: Question about BIT Codes (/Thread-Question-about-BIT-Codes)



Question about BIT Codes - ReaperX - 11-22-2011

What do these do? Like BITand.


RE: Question about BIT Codes - 1234hotmaster - 11-23-2011

they will combine the binary of the codes. like you can have only 1 style as a form style, for ex $WS_MINIMIZED
but you also want another style for ex $WS_NORMAL so you do

Code:
BitOr($WS_MINIMIZED,$WS_NORMAL)

Btw i'm not 100% if my example is correct because I'm a bit sick today...


RE: Question about BIT Codes - ReaperX - 11-23-2011

(11-23-2011, 12:00 AM)[ntdll.dll]x[advapi32.dll] Wrote: they will combine the binary of the codes. like you can have only 1 style as a form style, for ex $WS_MINIMIZED
but you also want another style for ex $WS_NORMAL so you do

Code:
BitOr($WS_MINIMIZED,$WS_NORMAL)

Btw i'm not 100% if my example is correct because I'm a bit sick today...
That helps. I noticed you used it in your file pumper. Thsts what made me curious. Thanks.