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.

108 lines
2.3 KiB

  1. //============================================================================
  2. // Copyright (c) Microsoft Corporation
  3. //
  4. // File: rasscrpt.h
  5. //
  6. // History:
  7. // Abolade-Gbadegesin Mar-29-96 Created.
  8. //
  9. // Contains declarations for the exported scripting API functions.
  10. //============================================================================
  11. #ifndef _RASSCRPT_H_
  12. #define _RASSCRPT_H_
  13. //
  14. // Flags passed to RasScriptInit:
  15. //
  16. // RASSCRIPT_NotifyOnInput Caller requires input-notification
  17. // RASSCRIPT_HwndNotify 'hNotifier' is an HWND (defaults to event)
  18. //
  19. #define RASSCRIPT_NotifyOnInput 0x00000001
  20. #define RASSCRIPT_HwndNotify 0x00000002
  21. //
  22. // event codes retrieved using RasScriptGetEventCode
  23. //
  24. #define SCRIPTCODE_Done 0
  25. #define SCRIPTCODE_Halted 1
  26. #define SCRIPTCODE_InputNotify 2
  27. #define SCRIPTCODE_KeyboardEnable 3
  28. #define SCRIPTCODE_KeyboardDisable 4
  29. #define SCRIPTCODE_IpAddressSet 5
  30. #define SCRIPTCODE_HaltedOnError 6
  31. //
  32. // path to log-file containing syntax errors, if any
  33. //
  34. #define RASSCRIPT_LOG "%windir%\\system32\\ras\\script.log"
  35. DWORD
  36. APIENTRY
  37. RasScriptExecute(
  38. IN HRASCONN hrasconn,
  39. IN PBENTRY* pEntry,
  40. IN CHAR* pszUserName,
  41. IN CHAR* pszPassword,
  42. OUT CHAR* pszIpAddress
  43. );
  44. DWORD
  45. RasScriptGetEventCode(
  46. IN HANDLE hscript
  47. );
  48. DWORD
  49. RasScriptGetIpAddress(
  50. IN HANDLE hscript,
  51. OUT CHAR* pszIpAddress
  52. );
  53. DWORD
  54. APIENTRY
  55. RasScriptInit(
  56. IN HRASCONN hrasconn,
  57. IN PBENTRY* pEntry,
  58. IN CHAR* pszUserName,
  59. IN CHAR* pszPassword,
  60. IN DWORD dwFlags,
  61. IN HANDLE hNotifier,
  62. OUT HANDLE* phscript
  63. );
  64. DWORD
  65. APIENTRY
  66. RasScriptReceive(
  67. IN HANDLE hscript,
  68. IN BYTE* pBuffer,
  69. IN OUT DWORD* pdwBufferSize
  70. );
  71. DWORD
  72. APIENTRY
  73. RasScriptSend(
  74. IN HANDLE hscript,
  75. IN BYTE* pBuffer,
  76. IN DWORD dwBufferSize
  77. );
  78. DWORD
  79. APIENTRY
  80. RasScriptTerm(
  81. IN HANDLE hscript
  82. );
  83. #endif // _RASSCRPT_H_