>>> Is NULL necessary? Won't 0 work just as well in C++ code with proper
>>> prototypes?
>>
>> It's a pointer, so reinterpret_cast(0) or
>> (LPSECURITY_ATTRIBUTES)0 should be OK. I just found NULL easier
>> to write. I forgot it had to avoided in C++.
>
> I don't think you need a cast here. Just using 0 should be fine. If
> it is not, then what error does it produce?
I forgot to address this issue in the last patch I sent. However, replacing
NULL with 0 just compiles OK. So you can safely s/NULL/0/g in the
patch I sent.