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.

85 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. util.h
  5. Abstract:
  6. Author:
  7. Vlad Sadovsky (vlads) 10-Jan-1997
  8. Environment:
  9. User Mode - Win32
  10. Revision History:
  11. 26-Jan-1997 VladS created
  12. --*/
  13. #include <stistr.h>
  14. #include <dbt.h>
  15. typedef struct _DEV_BROADCAST_HEADER DEV_BROADCAST_HEADER,*PDEV_BROADCAST_HEADER;
  16. //
  17. // PnP support utilities
  18. //
  19. BOOL
  20. IsStillImageDevNode(
  21. DEVNODE dnDevNode
  22. );
  23. BOOL
  24. GetDeviceNameFromDevBroadcast(
  25. DEV_BROADCAST_HEADER *psDevBroadcast,
  26. DEVICE_BROADCAST_INFO *psDevInfo
  27. );
  28. BOOL
  29. ConvertDevInterfaceToDevInstance(
  30. const GUID *pClassGUID,
  31. const TCHAR *pszDeviceInterface,
  32. TCHAR **ppszDeviceInstance
  33. );
  34. BOOL
  35. GetDeviceNameFromDevNode(
  36. DEVNODE dnDevNode,
  37. StiCString& strDeviceName
  38. );
  39. BOOL
  40. ParseGUID(
  41. LPGUID pguid,
  42. LPCTSTR ptsz
  43. );
  44. //
  45. // Misc. utility functions
  46. //
  47. BOOL WINAPI
  48. AuxFormatStringV(
  49. IN LPTSTR lpszStr,
  50. ...
  51. );
  52. BOOL WINAPI
  53. IsPlatformNT(
  54. VOID
  55. );
  56. BOOL
  57. IsSetupInProgressMode(
  58. BOOL *pUpgradeFlag = NULL
  59. );