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.

118 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. regconn.h
  5. Abstract:
  6. This module is the header file for the regconn library
  7. Author:
  8. Dragos C. Sambotin (dragoss) 21-May-1999
  9. --*/
  10. //
  11. // Common helper routine used by RegConnectRegistry and InitiateSystemShutdown
  12. //
  13. #ifndef __REG_CONN_H__
  14. #define __REG_CONN_H__
  15. typedef LONG (*PBIND_CALLBACK)(
  16. IN RPC_BINDING_HANDLE *pbinding,
  17. IN PVOID Context1,
  18. IN PVOID Context2
  19. );
  20. typedef struct _SHUTDOWN_CONTEXT {
  21. DWORD dwTimeout;
  22. BOOLEAN bForceAppsClosed;
  23. BOOLEAN bRebootAfterShutdown;
  24. } SHUTDOWN_CONTEXT, *PSHUTDOWN_CONTEXT;
  25. //
  26. // SHUTDOWN_CONTEXTEX contains an additional
  27. // parameter indicating the reason for the shutdown
  28. //
  29. typedef struct _SHUTDOWN_CONTEXTEX {
  30. DWORD dwTimeout;
  31. BOOLEAN bForceAppsClosed;
  32. BOOLEAN bRebootAfterShutdown;
  33. DWORD dwReason;
  34. } SHUTDOWN_CONTEXTEX, *PSHUTDOWN_CONTEXTEX;
  35. LONG
  36. BaseBindToMachineShutdownInterface(
  37. IN LPCWSTR lpMachineName,
  38. IN PBIND_CALLBACK BindCallback,
  39. IN PVOID Context1,
  40. IN PVOID Context2
  41. );
  42. DWORD
  43. RegConn_nb_nb(
  44. IN LPCWSTR ServerName,
  45. OUT RPC_BINDING_HANDLE * pBindingHandle
  46. );
  47. DWORD
  48. RegConn_nb_tcp(
  49. IN LPCWSTR ServerName,
  50. OUT RPC_BINDING_HANDLE * pBindingHandle
  51. );
  52. DWORD
  53. RegConn_nb_ipx(
  54. IN LPCWSTR ServerName,
  55. OUT RPC_BINDING_HANDLE * pBindingHandle
  56. );
  57. DWORD
  58. RegConn_np(
  59. IN LPCWSTR ServerName,
  60. OUT RPC_BINDING_HANDLE * pBindingHandle
  61. );
  62. DWORD
  63. RegConn_spx(
  64. IN LPCWSTR ServerName,
  65. OUT RPC_BINDING_HANDLE * pBindingHandle
  66. );
  67. DWORD RegConn_ip_tcp(
  68. IN LPCWSTR ServerName,
  69. OUT RPC_BINDING_HANDLE * pBindingHandle
  70. );
  71. LONG
  72. NewShutdownCallback(
  73. IN RPC_BINDING_HANDLE *pbinding,
  74. IN PREG_UNICODE_STRING Message,
  75. IN PVOID Context2
  76. );
  77. LONG
  78. NewShutdownCallbackEx(
  79. IN RPC_BINDING_HANDLE *pbinding,
  80. IN PREG_UNICODE_STRING Message,
  81. IN PVOID Context2
  82. );
  83. LONG
  84. NewAbortShutdownCallback(
  85. IN RPC_BINDING_HANDLE *pbinding,
  86. IN PVOID Context1,
  87. IN PVOID Context2
  88. );
  89. #endif //__REG_CONN_H__