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.

63 lines
1.1 KiB

  1. /*
  2. Telnet Command Definitions.
  3. Copyright (c) Microsoft Corporation. All rights reserved.
  4. commands.h
  5. */
  6. #ifndef __COMMANDS_H__
  7. #define __COMMANDS_H__
  8. typedef BOOL (*LPTELNET_COMMAND)(
  9. LPTSTR lpCommand
  10. );
  11. typedef struct _tagTelnetCommand
  12. {
  13. TCHAR* sName;
  14. LPTELNET_COMMAND pCmdHandler;
  15. } TelnetCommand;
  16. // These functions return FALSE to continue processing.
  17. // Returning TRUE means quit - we are done with the processing.
  18. BOOL CloseTelnetSession(LPTSTR);
  19. BOOL DisplayParameters(LPTSTR);
  20. BOOL OpenTelnetSession(LPTSTR);
  21. BOOL QuitTelnet(LPTSTR);
  22. BOOL PrintStatus(LPTSTR);
  23. BOOL PrintHelpStr(LPTSTR);
  24. BOOL SendOptions(LPTSTR);
  25. BOOL SetOptions(LPTSTR);
  26. BOOL UnsetOptions(LPTSTR);
  27. BOOL EnableIMEOptions(LPTSTR);
  28. BOOL DisableIMEOptions(LPTSTR);
  29. void Write(LPTSTR lpszFmtStr, ...);
  30. void ClearInitScreen();
  31. BOOL PromptUser();
  32. BOOL FileIsConsole( HANDLE fp );
  33. void MyWriteConsole( HANDLE fp, LPWSTR lpBuffer, DWORD cchBuffer);
  34. #ifdef __cplusplus
  35. extern "C"
  36. {
  37. #endif
  38. extern void *SfuZeroMemory(
  39. void *ptr,
  40. unsigned int cnt
  41. );
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif