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.

64 lines
2.1 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*******************************************************************************
  3. *
  4. * helpers.h
  5. *
  6. * WINCFG helper function header file
  7. *
  8. * copyright notice: Copyright 1994, Citrix Systems Inc.
  9. *
  10. * $Author: thanhl $ Butch Davis
  11. *
  12. * $Log: N:\NT\PRIVATE\UTILS\CITRIX\WINUTILS\WINCFG\VCS\HELPERS.H $
  13. *
  14. * Rev 1.11 15 Jul 1997 17:14:06 thanhl
  15. * Add support for Required PDs
  16. *
  17. * Rev 1.10 27 Jun 1997 15:58:38 butchd
  18. * Registry changes for Wds/Tds/Pds/Cds
  19. *
  20. * Rev 1.9 19 Jun 1997 19:22:18 kurtp
  21. * update
  22. *
  23. * Rev 1.8 28 Feb 1997 17:59:40 butchd
  24. * update
  25. *
  26. * Rev 1.7 24 Sep 1996 16:21:44 butchd
  27. * update
  28. *
  29. *******************************************************************************/
  30. /*
  31. * WINCFG helper function prototypes
  32. */
  33. BOOL CommandLineHelper( LPTSTR pszCommandLine );
  34. void CommandLineUsage();
  35. long QueryLoggedOnCount(PWINSTATIONNAME pWSName);
  36. int LBInsertInstancedName( LPCTSTR pName, CListBox *pListBox );
  37. int CBInsertInstancedName( LPCTSTR pName, CComboBox *pComboBox );
  38. void ParseRootAndInstance( LPCTSTR pString, LPTSTR pRoot, long *pInstance );
  39. void GetPdConfig( CObList *pPdList,
  40. LPCTSTR pPdName,
  41. PWINSTATIONCONFIG2 pWSConfig,
  42. PPDCONFIG3 pPdConfig );
  43. /*
  44. * WINCFG helper function typedefs & defines
  45. */
  46. // NOTE: the _SWITCH strings must NOT have the ':' at the end; they are used
  47. // for ParseCommandLine() API as well as the 'options' dialog. The ':'
  48. // is placed at the beginning of the _VALUE define (for switches that
  49. // have values associated).
  50. #define HELP_SWITCH TEXT("/?")
  51. #define HELP_VALUE TEXT("")
  52. #define REGISTRYONLY_SWITCH TEXT("/regonly")
  53. #define REGISTRYONLY_VALUE TEXT("")
  54. #define ADD_SWITCH TEXT("/add")
  55. #define ADD_VALUE TEXT(":<type>")
  56. #define TRANSPORT_SWITCH TEXT("/transport")
  57. #define TRANSPORT_VALUE TEXT(":<transport>")
  58. #define COUNT_SWITCH TEXT("/count")
  59. #define COUNT_VALUE TEXT(":#")
  60. #define INSTALL_SWITCH TEXT("/install")
  61. #define INSTALL_VALUE TEXT("")