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.

98 lines
1.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: tclhelp.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include <tcl.h>
  11. // #include "tcldllUtil.h"
  12. #if 15 != _ANSI_ARGS_(15)
  13. #error Missing argument definitions
  14. #endif
  15. typedef enum {
  16. format_undefined,
  17. format_text,
  18. format_hexidecimal,
  19. format_file,
  20. format_octal,
  21. format_binary,
  22. format_decimal,
  23. format_empty
  24. } formatType;
  25. extern int
  26. commonParams(
  27. Tcl_Interp *interp,
  28. int argc,
  29. char *argv[],
  30. DWORD *cmdIndex,
  31. formatType *inFormat,
  32. formatType *outFormat);
  33. extern int
  34. inParam(
  35. Tcl_Interp *interp,
  36. BYTE **output,
  37. BYTE *length,
  38. char *input,
  39. formatType format);
  40. extern int
  41. setResult(
  42. Tcl_Interp *interp,
  43. BYTE *aResult,
  44. BYTE aResultLen,
  45. formatType outFormat);
  46. extern BOOL
  47. ParamCount(
  48. Tcl_Interp *interp,
  49. DWORD argc,
  50. DWORD cmdIndex,
  51. DWORD dwCount);
  52. extern void
  53. badSyntax(
  54. Tcl_Interp *interp,
  55. char *argv[],
  56. DWORD cmdIndex);
  57. extern void
  58. cardError(
  59. Tcl_Interp *interp,
  60. DWORD sc_status,
  61. BYTE classId);
  62. extern void
  63. SetMultiResult(
  64. Tcl_Interp *interp,
  65. LPTSTR mszResult);
  66. extern LPWSTR
  67. Unicode(
  68. LPCSTR sz);
  69. extern char
  70. outfile[FILENAME_MAX];
  71. static const DWORD dwUndefined = (DWORD)(-1);
  72. extern char *
  73. ErrorString(
  74. long theError);
  75. extern void
  76. FreeErrorString(
  77. void);
  78. extern int
  79. poption(
  80. const char *opt,
  81. ...);