Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
995 B

  1. // This was a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) Microsoft Corporation, 1992 - 1999
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. #ifndef __MMCPLEX_H__
  11. #define __MMCPLEX_H__
  12. struct CPlex // warning variable length structure
  13. {
  14. CPlex* pNext;
  15. #if (_AFX_PACKING >= 8)
  16. DWORD dwReserved[1]; // align on 8 byte boundary
  17. #endif
  18. // BYTE data[maxNum*elementSize];
  19. void* data() { return this+1; }
  20. static CPlex* PASCAL Create(CPlex*& head, UINT nMax, UINT cbElement);
  21. // like 'calloc' but no zero fill
  22. // may throw memory exceptions
  23. void FreeDataChain(); // free this one and links
  24. };
  25. #endif //__MMCPLEX_H__
  26. /////////////////////////////////////////////////////////////////////////////