On Sunday, 1 February 2015 at 11:44:12 UTC, ketmar wrote:
yep, without properly compiled libraries there are constant
complains
about missing structure initalizers. i got rid of that with
simple
template, and wrote "auto pi = zeroed!PROCESS_INFORMATION;" and
alikes
instead. i'm not using batch compilation, so that was easier
than
building all the libs. ;-)
This should work too:
PROCESS_INFORMATION pi = void;
Or, if you actually need it initialized:
PROCESS_INFORMATION pi = {};
I did not expect the above to work, but it does.
(N.B.: PROCESS_INFORMATION is all-zero so it doesn't actually
have a .init, test with a structure which has non-zero defaults
for fields.)