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.

86 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. Spnetupg.h
  5. Abstract:
  6. Configuration routines for the disabling the nework services
  7. Author:
  8. Terry Kwan (terryk) 23-Nov-1993, provided code
  9. Sunil Pai (sunilp) 23-Nov-1993, merged and modified code
  10. Revision History:
  11. --*/
  12. #ifndef _SPNETUPG_H_
  13. #define _SPNETUPG_H_
  14. //
  15. // Public functions
  16. //
  17. NTSTATUS SpDisableNetwork(
  18. IN PVOID SifHandle,
  19. IN HANDLE hKeySoftwareHive,
  20. IN HANDLE hKeyControlSet
  21. );
  22. //
  23. // Private data structures and routines
  24. //
  25. typedef struct _NODE *PNODE;
  26. typedef struct _NODE {
  27. PWSTR pszService;
  28. PNODE Next;
  29. } NODE, *PNODE;
  30. NTSTATUS
  31. SppNetAddItem(
  32. PNODE *head,
  33. PWSTR psz
  34. );
  35. NTSTATUS
  36. SppNetAddList(
  37. PNODE *head,
  38. PWSTR psz
  39. );
  40. VOID
  41. SppNetClearList(
  42. PNODE *head
  43. );
  44. NTSTATUS
  45. SppNetAddToDisabledList(
  46. PWSTR pszService,
  47. HANDLE hKeySoftware
  48. );
  49. NTSTATUS
  50. SppNetGetAllNetServices(
  51. PVOID SifHandle,
  52. PNODE *head,
  53. HANDLE hKeySoftware,
  54. HANDLE hKeyCCSet
  55. );
  56. NTSTATUS
  57. SppNetDisableServices(
  58. PNODE ServiceList,
  59. HANDLE hKeySoftware,
  60. HANDLE hKeyCCSet
  61. );
  62. #endif // for _SPNETUPG_H_