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.

84 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Copyright (c) 1993 Micro Computer Systems, Inc.
  4. Module Name:
  5. net\inc\nwsap.h
  6. Abstract:
  7. This is the public include file for the Nw Sap Agent API.
  8. Author:
  9. Brian Walker (MCS) 06-30-1993
  10. Revision History:
  11. --*/
  12. #ifndef _NWSAP_
  13. #define _NWSAP_
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /** Return codes for Advertise API and BindLib API **/
  18. #define SAPRETURN_SUCCESS 0
  19. #define SAPRETURN_NOMEMORY 1
  20. #define SAPRETURN_EXISTS 2
  21. #define SAPRETURN_NOTEXIST 3
  22. #define SAPRETURN_NOTINIT 4
  23. #define SAPRETURN_INVALIDNAME 5
  24. #define SAPRETURN_DUPLICATE 6
  25. /** Function Prototypes **/
  26. INT
  27. SapAddAdvertise(
  28. IN PUCHAR ServerName,
  29. IN USHORT ServerType,
  30. IN PUCHAR ServerAddr,
  31. IN BOOL RespondNearest);
  32. INT
  33. SapRemoveAdvertise(
  34. IN PUCHAR ServerName,
  35. IN USHORT ServerType);
  36. DWORD
  37. SapLibInit(
  38. VOID);
  39. DWORD
  40. SapLibShutdown(
  41. VOID);
  42. INT
  43. SapGetObjectID(
  44. IN PUCHAR ObjectName,
  45. IN USHORT ObjectType,
  46. IN PULONG ObjectID);
  47. INT
  48. SapGetObjectName(
  49. IN ULONG ObjectID,
  50. IN PUCHAR ObjectName,
  51. IN PUSHORT ObjectType,
  52. IN PUCHAR ObjectAddr);
  53. INT
  54. SapScanObject(
  55. IN PULONG ObjectID,
  56. IN PUCHAR ObjectName,
  57. IN PUSHORT ObjectType,
  58. IN USHORT ScanType);
  59. #ifdef __cplusplus
  60. } /* extern "C" */
  61. #endif
  62. #endif