don't use Windows BOOL type for internal processing, it should be used only for WIN API