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.

90 lines
2.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: nsiclt.idl
  8. //
  9. //--------------------------------------------------------------------------
  10. [
  11. uuid (d3fbb514-0e3b-11cb-8fad-08002b1d29c3),
  12. version (1.0),
  13. pointer_default (unique)
  14. ]
  15. interface NsiC
  16. {
  17. import"nsicom.idl";
  18. cpp_quote("//")
  19. cpp_quote("// The maximum size, in bytes, of incoming data for methods in the interface.")
  20. cpp_quote("//")
  21. cpp_quote("#define NsiC_MaxRpcSize (4*1024)")
  22. const long BINDING_MAX_COUNT = 100;
  23. /*
  24. * N S I _ B I N D I N G _ L O O K U P _ B E G I N
  25. *
  26. * Create an import context for an interface and optionally an object.
  27. */
  28. void nsi_binding_lookup_begin
  29. (
  30. #ifdef __CLIENT__ // workaround for midl bug.
  31. [in] handle_t function_explicit_handle,
  32. #endif
  33. [in] UNSIGNED32 entry_name_syntax,
  34. [in] STRING_T entry_name,
  35. [in] NSI_INTERFACE_ID_T *if_spec,
  36. [in] NSI_UUID_P_T obj_uuid,
  37. [in,range(0,BINDING_MAX_COUNT)]
  38. UNSIGNED32 binding_max_count,
  39. [in] UNSIGNED32 ignore,
  40. [out] NSI_NS_HANDLE_T *import_context,
  41. [out] UNSIGNED16 *status
  42. );
  43. /*
  44. * N S I _ B I N D I N G _ L O O K U P _ D O N E
  45. *
  46. * Delete an import context.
  47. */
  48. void nsi_binding_lookup_done
  49. (
  50. [in,out] NSI_NS_HANDLE_T *import_context,
  51. [out] UNSIGNED16 *status
  52. );
  53. /*
  54. * N S I _ B I N D I N G _ L O O K U P _ N E X T
  55. *
  56. * Look up an interface and optionally an object from a name-service
  57. * database and return a binding of a compatible server (if found).
  58. */
  59. void nsi_binding_lookup_next
  60. (
  61. [in] NSI_NS_HANDLE_T import_context,
  62. [in,out] NSI_BINDING_VECTOR_P_T *binding_vector,
  63. [out] UNSIGNED16 *status
  64. );
  65. /*
  66. * N S I _ M G M T _ H A N D L E _ E N T R Y _ S E T _ E X P _ A G E
  67. *
  68. * Set the maxium age that a cached entry can be returned through a lookup
  69. * context.
  70. */
  71. void nsi_mgmt_handle_set_exp_age
  72. (
  73. [in] NSI_NS_HANDLE_T inq_context,
  74. [in] UNSIGNED32 expiration_age,
  75. [out] UNSIGNED16 * status
  76. );
  77. }
  78.