| 49 | } |
| 50 | |
| 51 | static inline TChar* StrAllocMem(size_t Bytes) { |
| 52 | #ifdef _NTDDK_ |
| 53 | #ifdef POOL_NX_OPTIN |
| 54 | return static_cast<TChar*>(ExAllocatePoolWithTag(ExDefaultNonPagedPoolType, Bytes, StrPoolTag)); |
| 55 | #else |
| 56 | return static_cast<TChar*>(ExAllocatePoolWithTag(NonPagedPool, Bytes, StrPoolTag)); |
| 57 | #endif |
| 58 | #else |
| 59 | return reinterpret_cast<TChar*>(new BYTE[Bytes]); |
| 60 | #endif |
| 61 | } |
| 62 | |
| 63 | static inline VOID StrFreeMem(TChar* Memory) { |
| 64 | #ifdef _NTDDK_ |
nothing calls this directly
no outgoing calls
no test coverage detected