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.

56 lines
1.7 KiB

  1. extern "C"
  2. {
  3. #include <windows.h>
  4. #include <windowsx.h>
  5. #include <dbt.h>
  6. #include <commctrl.h>
  7. #include <stdio.h>
  8. #include <stdlib.h>
  9. #include <winnetwk.h>
  10. #include <mpr.h>
  11. #include <winnetp.h>
  12. }
  13. #include <tchar.h>
  14. #include "resource.h"
  15. #define ARRAYLEN(x) (sizeof(x) / sizeof((x)[0]))
  16. ULONG
  17. DoEnumeration(
  18. IN HWND hwnd
  19. );
  20. ////////////////////////////////////////////////////////////////////////////
  21. //
  22. // global variables
  23. //
  24. extern HINSTANCE g_hInstance;
  25. //////////////////////////////////////////////////////////////////////////////
  26. //////////////////////////////////////////////////////////////////////////////
  27. //
  28. // Debugging stuff
  29. //
  30. //////////////////////////////////////////////////////////////////////////////
  31. //////////////////////////////////////////////////////////////////////////////
  32. //
  33. // Fix the warning levels
  34. //
  35. #pragma warning(3:4092) // sizeof returns 'unsigned long'
  36. #pragma warning(3:4121) // structure is sensitive to alignment
  37. #pragma warning(3:4125) // decimal digit in octal sequence
  38. #pragma warning(3:4130) // logical operation on address of string constant
  39. #pragma warning(3:4132) // const object should be initialized
  40. #pragma warning(4:4200) // nonstandard zero-sized array extension
  41. #pragma warning(4:4206) // Source File is empty
  42. #pragma warning(3:4208) // delete[exp] - exp evaluated but ignored
  43. #pragma warning(3:4212) // function declaration used ellipsis
  44. #pragma warning(3:4220) // varargs matched remaining parameters
  45. #pragma warning(4:4509) // SEH used in function w/ _trycontext
  46. #pragma warning(error:4700) // Local used w/o being initialized
  47. #pragma warning(3:4706) // assignment w/i conditional expression
  48. #pragma warning(3:4709) // command operator w/o index expression