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.

80 lines
2.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: N C F G V A L . H
  7. //
  8. // Contents: Validation on interfaces in the NetCfg project.
  9. //
  10. // Notes:
  11. //
  12. // Author: danielwe 19 Mar 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "ncvalid.h"
  17. #define Validate_INetCfgIdentification_Validate ;/##/
  18. #define Validate_INetCfgIdentification_Cancel ;/##/
  19. #define Validate_INetCfgIdentification_Apply ;/##/
  20. inline BOOL FBadArgs_INetCfgIdentification_GetWorkgroupName(PWSTR* a)
  21. {
  22. return FBadOutPtr(a);
  23. }
  24. #define Validate_INetCfgIdentification_GetWorkgroupName(a) \
  25. if (FBadArgs_INetCfgIdentification_GetWorkgroupName(a)) \
  26. { \
  27. TraceError("Validate_INetCfgIdentification_GetWorkgroupName", E_INVALIDARG); \
  28. return E_INVALIDARG; \
  29. }
  30. inline BOOL FBadArgs_INetCfgIdentification_GetDomainName(PWSTR* a)
  31. {
  32. return FBadOutPtr(a);
  33. }
  34. #define Validate_INetCfgIdentification_GetDomainName(a) \
  35. if (FBadArgs_INetCfgIdentification_GetDomainName(a)) \
  36. { \
  37. TraceError("Validate_INetCfgIdentification_GetDomainName", E_INVALIDARG); \
  38. return E_INVALIDARG; \
  39. }
  40. inline BOOL FBadArgs_INetCfgIdentification_JoinWorkgroup(PCWSTR a)
  41. {
  42. return FBadInPtr(a);
  43. }
  44. #define Validate_INetCfgIdentification_JoinWorkgroup(a) \
  45. if (FBadArgs_INetCfgIdentification_JoinWorkgroup(a)) \
  46. { \
  47. TraceError("Validate_INetCfgIdentification_JoinWorkgroup", E_INVALIDARG); \
  48. return E_INVALIDARG; \
  49. }
  50. inline BOOL FBadArgs_INetCfgIdentification_JoinDomain(PCWSTR a, PCWSTR b, PCWSTR c)
  51. {
  52. return FBadInPtr(a) ||
  53. FBadInPtr(b) ||
  54. FBadInPtr(c);
  55. }
  56. #define Validate_INetCfgIdentification_JoinDomain(a, b, c) \
  57. if (FBadArgs_INetCfgIdentification_JoinDomain(a, b, c)) \
  58. { \
  59. TraceError("Validate_INetCfgIdentification_JoinDomain", E_INVALIDARG); \
  60. return E_INVALIDARG; \
  61. }
  62. inline BOOL FBadArgs_INetCfgIdentification_GetComputerRole(DWORD* a)
  63. {
  64. return FBadOutPtr(a);
  65. }
  66. #define Validate_INetCfgIdentification_GetComputerRole(a) \
  67. if (FBadArgs_INetCfgIdentification_GetComputerRole(a)) \
  68. { \
  69. TraceError("Validate_INetCfgIdentification_GetComputerRole", E_INVALIDARG); \
  70. return E_INVALIDARG; \
  71. }