Mercurial > minori
comparison dep/animia/src/fd/win32.cc @ 156:cdf79282d647
dep/animia: add VERY early x11 window stuff
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 15 Nov 2023 18:04:04 -0500 |
| parents | 8700806c2cc2 |
| children | e44b7c428d7c |
comparison
equal
deleted
inserted
replaced
| 155:d2bbb5773616 | 156:cdf79282d647 |
|---|---|
| 83 static std::vector<SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX> GetSystemHandleInformation() { | 83 static std::vector<SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX> GetSystemHandleInformation() { |
| 84 std::vector<SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX> res; | 84 std::vector<SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX> res; |
| 85 /* we should really put a cap on this */ | 85 /* we should really put a cap on this */ |
| 86 ULONG cb = 1 << 19; | 86 ULONG cb = 1 << 19; |
| 87 | 87 |
| 88 for (NTSTATUS status = STATUS_INFO_LENGTH_MISMATCH; status == STATUS_INFO_LENGTH_MISMATCH; ) { | 88 for (NTSTATUS status = STATUS_INFO_LENGTH_MISMATCH; status == STATUS_INFO_LENGTH_MISMATCH;) { |
| 89 /* why are we doing this? */ | 89 /* why are we doing this? */ |
| 90 status = STATUS_NO_MEMORY; | 90 status = STATUS_NO_MEMORY; |
| 91 | 91 |
| 92 SYSTEM_HANDLE_INFORMATION_EX* info = (SYSTEM_HANDLE_INFORMATION_EX*)malloc(cb *= 2); | 92 SYSTEM_HANDLE_INFORMATION_EX* info = (SYSTEM_HANDLE_INFORMATION_EX*)malloc(cb *= 2); |
| 93 if (!info) | 93 if (!info) |
