Leaked source code of windows server 2003
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.

53 lines
1.3 KiB

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  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 __AFXPLEX_H__
  11. #define __AFXPLEX_H__
  12. #ifndef __AFX_H__
  13. #include <afx.h>
  14. #endif
  15. #ifdef _AFX_PACKING
  16. #pragma pack(push, _AFX_PACKING)
  17. #endif
  18. #ifdef AFX_COLL_SEG
  19. #pragma code_seg(AFX_COLL_SEG)
  20. #endif
  21. struct CPlex // warning variable length structure
  22. {
  23. CPlex* pNext;
  24. #if (_AFX_PACKING >= 8)
  25. DWORD dwReserved[1]; // align on 8 byte boundary
  26. #endif
  27. // BYTE data[maxNum*elementSize];
  28. void* data() { return this+1; }
  29. static CPlex* PASCAL Create(CPlex*& head, UINT nMax, UINT cbElement);
  30. // like 'calloc' but no zero fill
  31. // may throw memory exceptions
  32. void FreeDataChain(); // free this one and links
  33. };
  34. #ifdef AFX_COLL_SEG
  35. #pragma code_seg()
  36. #endif
  37. #ifdef _AFX_PACKING
  38. #pragma pack(pop)
  39. #endif
  40. #endif //__AFXPLEX_H__
  41. /////////////////////////////////////////////////////////////////////////////