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.

85 lines
2.0 KiB

  1. //============================================================================
  2. // Copyright (c) 1995, Microsoft Corporation
  3. //
  4. // File: status.c
  5. //
  6. // History:
  7. // Abolade Gbadegesin Nov-02-1995 Created.
  8. //
  9. // Code for the RAS Monitor property sheet.
  10. //============================================================================
  11. #include "rasdlgp.h"
  12. #define RASMONITORDLG struct tagRASMONITORDLG
  13. RASMONITORDLG
  14. {
  15. IN DWORD dwSize;
  16. IN HWND hwndOwner;
  17. IN DWORD dwFlags;
  18. IN DWORD dwStartPage;
  19. IN LONG xDlg;
  20. IN LONG yDlg;
  21. OUT DWORD dwError;
  22. IN ULONG_PTR reserved;
  23. IN ULONG_PTR reserved2;
  24. };
  25. //----------------------------------------------------------------------------
  26. // Function: RasMonitorDlgW
  27. //
  28. //
  29. // Entry point for RAS status dialog.
  30. //----------------------------------------------------------------------------
  31. BOOL
  32. APIENTRY
  33. RasMonitorDlgW(
  34. IN LPWSTR lpszDeviceName,
  35. IN OUT RASMONITORDLG *lpApiArgs
  36. ) {
  37. //
  38. // 352118 Remove broken/legacy public RAS API - RasMonitorDlg
  39. //
  40. DbgPrint( "Unsupported Interface - RasMonitorDlg" );
  41. do
  42. {
  43. if (lpApiArgs == NULL) {
  44. SetLastError(ERROR_INVALID_PARAMETER);
  45. break;
  46. }
  47. if (lpApiArgs->dwSize != sizeof(RASMONITORDLG)) {
  48. lpApiArgs->dwError = ERROR_INVALID_SIZE;
  49. break;
  50. }
  51. lpApiArgs->dwError = ERROR_CALL_NOT_IMPLEMENTED;
  52. } while (FALSE);
  53. return FALSE;
  54. }
  55. //----------------------------------------------------------------------------
  56. // Function: RasMonitorDlgA
  57. //
  58. //
  59. // ANSI entry-point for RAS Monitor Dialog.
  60. // This version invokes the Unicode entry-point
  61. //----------------------------------------------------------------------------
  62. BOOL
  63. APIENTRY
  64. RasMonitorDlgA(
  65. IN LPSTR lpszDeviceName,
  66. IN OUT RASMONITORDLG *lpApiArgs
  67. ) {
  68. //
  69. // 352118 Remove broken/legacy public RAS API - RasMonitorDlg
  70. //
  71. return RasMonitorDlgW(NULL, lpApiArgs);
  72. }