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.

154 lines
6.4 KiB

  1. // Dump structs of lpdstruc.h
  2. // Generated by g:\mosh\perl\pdbg.bat.
  3. #include "lpd.h"
  4. #include "lpdstruc-x.h"
  5. // ==================================================
  6. // lpdstruc.h:22
  7. void
  8. print__controlfile_info( char* message, struct _controlfile_info * s )
  9. {
  10. if( message ){
  11. logit( "%s\n", message );
  12. }
  13. if( s == NULL ){
  14. logit( "struct _controlfile_info is NULL.\n");
  15. return;
  16. }
  17. logit("struct _controlfile_info = {\n" );
  18. logit(" pchClass = %s\n", (s->pchClass)? (s->pchClass):"NONE" );
  19. logit(" pchHost = %s\n", (s->pchHost)? (s->pchHost):"NONE" );
  20. logit(" dwCount = %d\n", s->dwCount );
  21. logit(" pchJobName = %s\n", (s->pchJobName)? (s->pchJobName):"NONE" );
  22. logit(" pchBannerName = %s\n", (s->pchBannerName)? (s->pchBannerName):"NONE" );
  23. logit(" pchMailName = %s\n", (s->pchMailName)? (s->pchMailName):"NONE" );
  24. logit(" pchSrcFile = %s\n", (s->pchSrcFile)? (s->pchSrcFile):"NONE" );
  25. logit(" pchUserName = %s\n", (s->pchUserName)? (s->pchUserName):"NONE" );
  26. logit(" pchSymLink = %s\n", (s->pchSymLink)? (s->pchSymLink):"NONE" );
  27. logit(" pchTitle = %s\n", (s->pchTitle)? (s->pchTitle):"NONE" );
  28. logit(" pchUnlink = %s\n", (s->pchUnlink)? (s->pchUnlink):"NONE" );
  29. logit(" dwWidth = %d\n", s->dwWidth );
  30. logit(" pchTrfRFile = %s\n", (s->pchTrfRFile)? (s->pchTrfRFile):"NONE" );
  31. logit(" pchTrfIFile = %s\n", (s->pchTrfIFile)? (s->pchTrfIFile):"NONE" );
  32. logit(" pchTrfBFile = %s\n", (s->pchTrfBFile)? (s->pchTrfBFile):"NONE" );
  33. logit(" pchTrfSFile = %s\n", (s->pchTrfSFile)? (s->pchTrfSFile):"NONE" );
  34. logit(" pchCIFFile = %s\n", (s->pchCIFFile)? (s->pchCIFFile):"NONE" );
  35. logit(" pchDVIFile = %s\n", (s->pchDVIFile)? (s->pchDVIFile):"NONE" );
  36. logit(" pchFrmtdFile = %s\n", (s->pchFrmtdFile)? (s->pchFrmtdFile):"NONE" );
  37. logit(" pchPlotFile = %s\n", (s->pchPlotFile)? (s->pchPlotFile):"NONE" );
  38. logit(" pchUnfrmtdFile = %s\n", (s->pchUnfrmtdFile)? (s->pchUnfrmtdFile):"NONE" );
  39. logit(" pchDitroffFile = %s\n", (s->pchDitroffFile)? (s->pchDitroffFile):"NONE" );
  40. logit(" pchPscrptFile = %s\n", (s->pchPscrptFile)? (s->pchPscrptFile):"NONE" );
  41. logit(" pchPRFrmtFile = %s\n", (s->pchPRFrmtFile)? (s->pchPRFrmtFile):"NONE" );
  42. logit(" pchFortranFile = %s\n", (s->pchFortranFile)? (s->pchFortranFile):"NONE" );
  43. logit(" pchTroffFile = %s\n", (s->pchTroffFile)? (s->pchTroffFile):"NONE" );
  44. logit(" pchRasterFile = %s\n", (s->pchRasterFile)? (s->pchRasterFile):"NONE" );
  45. logit(" szPrintFormat = %s\n", (s->szPrintFormat)? (s->szPrintFormat):"NONE" );
  46. logit(" usNumCopies = %d\n", s->usNumCopies );
  47. logit( "}; // struct _controlfile_info.\n");
  48. return;
  49. } /* print__controlfile_info */
  50. // ==================================================
  51. // lpdstruc.h:69
  52. void
  53. print__qstatus( char* message, struct _qstatus * s )
  54. {
  55. if( message ){
  56. logit( "%s\n", message );
  57. }
  58. if( s == NULL ){
  59. logit( "struct _qstatus is NULL.\n");
  60. return;
  61. }
  62. logit("struct _qstatus = {\n" );
  63. logit(" pchUserName = %s\n", (s->pchUserName)? (s->pchUserName):"NONE" );
  64. logit(" cbActualUsers = %d\n", s->cbActualUsers );
  65. logit(" cbActualJobIds = %d\n", s->cbActualJobIds );
  66. logit( "}; // struct _qstatus.\n");
  67. return;
  68. } /* print__qstatus */
  69. // ==================================================
  70. // lpdstruc.h:81
  71. void
  72. print__cfile_entry( char* message, struct _cfile_entry * s )
  73. {
  74. if( message ){
  75. logit( "%s\n", message );
  76. }
  77. if( s == NULL ){
  78. logit( "struct _cfile_entry is NULL.\n");
  79. return;
  80. }
  81. logit("struct _cfile_entry = {\n" );
  82. logit(" Link = 0x%08x\n", s->Link );
  83. logit(" pchCFileName = %s\n", (s->pchCFileName)? (s->pchCFileName):"NONE" );
  84. logit(" pchCFile = %s\n", (s->pchCFile)? (s->pchCFile):"NONE" );
  85. logit(" cbCFileLen = %d\n", s->cbCFileLen );
  86. logit( "}; // struct _cfile_entry.\n");
  87. return;
  88. } /* print__cfile_entry */
  89. // ==================================================
  90. // lpdstruc.h:92
  91. void
  92. print__dfile_entry( char* message, struct _dfile_entry * s )
  93. {
  94. if( message ){
  95. logit( "%s\n", message );
  96. }
  97. if( s == NULL ){
  98. logit( "struct _dfile_entry is NULL.\n");
  99. return;
  100. }
  101. logit("struct _dfile_entry = {\n" );
  102. logit(" Link = 0x%08x\n", s->Link );
  103. logit(" pchDFileName = %s\n", (s->pchDFileName)? (s->pchDFileName):"NONE" );
  104. logit(" cbDFileLen = %d\n", s->cbDFileLen );
  105. logit(" hDataFile = 0x%08x\n", s->hDataFile );
  106. logit( "}; // struct _dfile_entry.\n");
  107. return;
  108. } /* print__dfile_entry */
  109. // ==================================================
  110. // lpdstruc.h:103
  111. void
  112. print__sockconn( char* message, struct _sockconn * s )
  113. {
  114. if( message ){
  115. logit( "%s\n", message );
  116. }
  117. if( s == NULL ){
  118. logit( "struct _sockconn is NULL.\n");
  119. return;
  120. }
  121. logit("struct _sockconn = {\n" );
  122. logit(" pNext = 0x%08x\n", s->pNext );
  123. // logit(" cbClients = %d\n", s->cbClients ));
  124. logit(" sSock = 0x%08x\n", s->sSock );
  125. logit(" dwThread = 0x%08x\n", s->dwThread );
  126. logit(" wState = %d\n", s->wState );
  127. logit(" fLogGenericEvent = 0x%08x\n", s->fLogGenericEvent );
  128. logit(" pchCommand = %s\n", (s->pchCommand)? (s->pchCommand):"NONE" );
  129. logit(" cbCommandLen = %d\n", s->cbCommandLen );
  130. logit(" CFile_List = 0x%08x\n", s->CFile_List );
  131. logit(" DFile_List = 0x%08x\n", s->DFile_List );
  132. logit(" pchUserName = %s\n", (s->pchUserName)? (s->pchUserName):"NONE" );
  133. logit(" pchPrinterName = %s\n", (s->pchPrinterName)? (s->pchPrinterName):"NONE" );
  134. logit(" hPrinter = 0x%08x\n", s->hPrinter );
  135. logit(" dwJobId = %d\n", s->dwJobId );
  136. logit(" LicenseHandle = 0x%08x\n", s->LicenseHandle );
  137. logit(" fMustFreeLicense = 0x%08x\n", s->fMustFreeLicense );
  138. logit(" pqStatus = 0x%08x\n",(s->pqStatus? (s-> pqStatus):0) );
  139. logit(" bDataTypeOverride = 0x%08x\n", s->bDataTypeOverride );
  140. logit( "}; // struct _sockconn.\n");
  141. return;
  142. } /* print__sockconn */