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.

96 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. install.c
  5. Abstract:
  6. auto install code for clusrpc
  7. Author:
  8. Charlie Wickham (charlwi) 14-Sep-1999
  9. Revision History:
  10. --*/
  11. #include "precomp.h"
  12. #pragma hdrstop
  13. #include <stdio.h>
  14. PPF_PARSERDLLINFO WINAPI
  15. ParserAutoInstallInfo(
  16. VOID
  17. )
  18. /*++
  19. Routine Description:
  20. routine called by netmon to auto-install this parser
  21. Arguments:
  22. None
  23. Return Value:
  24. pointer to data block
  25. --*/
  26. {
  27. PPF_PARSERDLLINFO parserDLLInfo;
  28. PPF_PARSERINFO parserInfo;
  29. // Allocate memory for parser info:
  30. parserDLLInfo = (PPF_PARSERDLLINFO)LocalAlloc(LMEM_FIXED | LMEM_ZEROINIT,
  31. sizeof(PF_PARSERDLLINFO) +
  32. 4 * sizeof(PF_PARSERINFO));
  33. if (parserDLLInfo == NULL) {
  34. #ifdef DEBUG
  35. dprintf("Mem alloc failed..");
  36. #endif
  37. return NULL;
  38. }
  39. parserDLLInfo->nParsers = 4;
  40. parserInfo = &parserDLLInfo->ParserInfo[0];
  41. //
  42. // set intracluster data
  43. //
  44. strncpy( parserInfo->szProtocolName, "R_INTRACLUSTER", sizeof(parserInfo->szProtocolName));
  45. strncpy( parserInfo->szComment, "IntraCluster RPC Interface", sizeof(parserInfo->szComment));
  46. //
  47. // set extrocluster data
  48. //
  49. ++parserInfo;
  50. strncpy( parserInfo->szProtocolName, "R_EXTROCLUSTER", sizeof(parserInfo->szProtocolName));
  51. strncpy( parserInfo->szComment, "ExtroCluster RPC Interface", sizeof(parserInfo->szComment));
  52. //
  53. // set clusapi data
  54. //
  55. ++parserInfo;
  56. strncpy( parserInfo->szProtocolName, "R_CLUSAPI", sizeof(parserInfo->szProtocolName));
  57. strncpy( parserInfo->szComment, "Cluster API RPC Interface", sizeof(parserInfo->szComment));
  58. //
  59. // set RGP data
  60. //
  61. ++parserInfo;
  62. strncpy( parserInfo->szProtocolName, "R_JOINVERSION", sizeof(parserInfo->szProtocolName));
  63. strncpy( parserInfo->szComment, "Cluster Join/Versioning RPC Interface", sizeof(parserInfo->szComment));
  64. return parserDLLInfo;
  65. }
  66. /* end install.c */