(flags)
| 241 | |
| 242 | @staticmethod |
| 243 | def _get_required_buffer_size(flags): |
| 244 | res = gdef.DWORD() |
| 245 | try: |
| 246 | windows.winproxy.AlpcInitializeMessageAttribute(flags, None, 0, res) |
| 247 | except windows.generated_def.ntstatus.NtStatusException as e: |
| 248 | # Buffer too small: osef |
| 249 | return res.value |
| 250 | return res.value |
| 251 | |
| 252 | def is_allocated(self, attribute): |
| 253 | """Return ``True`` if ``attribute`` is allocated""" |