Windows NT 4.0 source code leak
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.

88 lines
1.2 KiB

4 years ago
  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. init.c
  5. Abstract:
  6. This is the main routine for testing the driver for the net detection driver
  7. Author:
  8. Sean Selitrennikoff (SeanSe) October 1992
  9. Revision History:
  10. --*/
  11. #include <nt.h>
  12. #include <ntrtl.h>
  13. #include <nturtl.h>
  14. #include <windows.h>
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. #include <string.h>
  18. #include "netdtect.h"
  19. //
  20. // the MAIN routine
  21. //
  22. extern
  23. DWORD
  24. NetDTectRun(
  25. VOID
  26. );
  27. int _cdecl
  28. main(
  29. IN WORD argc,
  30. IN LPSTR argv[]
  31. )
  32. /*++
  33. Routine Description:
  34. This routine initializes the control structures, opens the
  35. driver, and send it a wakeup ioctl. Once this has completed
  36. the user is presented with the test prompt to enter commands.
  37. Arguments:
  38. IN WORD argc - Supplies the number of parameters
  39. IN LPSTR argv[] - Supplies the parameter list.
  40. Return Value:
  41. None.
  42. --*/
  43. {
  44. DWORD Status;
  45. //
  46. // Start the actual tests, this prompts for the commands.
  47. //
  48. Status = NetDTectRun();
  49. if ( Status != NO_ERROR ) {
  50. printf("Exiting with error 0x%x from NetDTectRun\n", Status);
  51. ExitProcess((DWORD)Status);
  52. }
  53. ExitProcess((DWORD)NO_ERROR);
  54. }