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.

44 lines
1.1 KiB

  1. /****************************** Module Header ******************************\
  2. * Module Name: socode.c
  3. *
  4. * Copyright (c) 1985-96, Microsoft Corporation
  5. *
  6. * What a hack!
  7. * This should be provided as a library, DLL or as C file to be included
  8. * by anyone using this.
  9. *
  10. * 04/09/96 GerardoB Created
  11. \***************************************************************************/
  12. #include "structo.h"
  13. #define T1 "\t"
  14. #define T2 "\t\t"
  15. #define T3 "\t\t\t"
  16. #define L01(sz1) #sz1,
  17. #define L11(sz1) T1 #sz1,
  18. #define L21(sz1) T2 #sz1,
  19. #define L31(sz1) T3 #sz1,
  20. #define L02(sz1, sz2) #sz1 ", " #sz2,
  21. #define L12(sz1, sz2) T1 #sz1 ", " #sz2,
  22. char * gpszHeader [] = {
  23. L01(typedef struct tagSTRUCTUREOFFSETSTABLE {)
  24. L11( char * pszField;)
  25. L11( unsigned long dwOffset;)
  26. L02(} STRUCTUREOFFSETSTABLE, *PSTRUCTUREOFFSETSTABLE;\r\n)
  27. L01(typedef struct tagSTRUCTURESTABLE {)
  28. L11( char * pszName;)
  29. L11( unsigned long dwSize;)
  30. L11( PSTRUCTUREOFFSETSTABLE psot;)
  31. L02(} STRUCTURESTABLE, *PSTRUCTURESTABLE;\r\n)
  32. NULL
  33. } ;
  34. char * gpszTail [] = {
  35. L01(#include "dsocode.c")
  36. NULL
  37. } ;