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.

56 lines
1.3 KiB

  1. //
  2. // Copyright (C) 1998 Microsoft Corporation
  3. //
  4. #define UNICODE
  5. #include <mm\mm.h>
  6. #include <mm\array.h>
  7. #include <mm\opt.h>
  8. #include <mm\optl.h>
  9. #include <mm\optdefl.h>
  10. #include <mm\optclass.h>
  11. #include <mm\classdefl.h>
  12. #include <mm\bitmask.h>
  13. #include <mm\reserve.h>
  14. #include <mm\range.h>
  15. #include <mm\subnet.h>
  16. #include <mm\sscope.h>
  17. #include <mm\oclassdl.h>
  18. #include <mm\server.h>
  19. #include <mm\address.h>
  20. #include <mm\server2.h>
  21. #include <mm\memfree.h>
  22. #include <winsock2.h>
  23. #include <stdlib.h>
  24. #include <regutil.h>
  25. #include <regread.h>
  26. #include <regsave.h>
  27. #include <stdio.h>
  28. CRITICAL_SECTION DhcpGlobalInProgressCritSect;
  29. PM_SERVER
  30. DhcpGetCurrentServer(
  31. VOID
  32. )
  33. {
  34. return NULL;
  35. }
  36. void _cdecl main(void) {
  37. DWORD RetVal;
  38. PM_SERVER ThisServer;
  39. RetVal = DhcpRegReadThisServer(&ThisServer);
  40. if( ERROR_SUCCESS != RetVal ) {
  41. printf("DhcpRegReadThisServer: %ld 0x%lx\n", RetVal, RetVal);
  42. }
  43. InitializeCriticalSection(&DhcpGlobalInProgressCritSect);
  44. DhcpRegServerFlush(ThisServer, TRUE);
  45. DeleteCriticalSection(&DhcpGlobalInProgressCritSect);
  46. MemServerFree(ThisServer);
  47. }