home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / programacao / cwin / c.exe / $INSTDIR / include / ddk / newdev.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-12-15  |  1.6 KB  |  71 lines

  1. /*
  2.  * newdev.h
  3.  *
  4.  * Driver installation DLL interface
  5.  *
  6.  * This file is part of the w32api package.
  7.  *
  8.  * Contributors:
  9.  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
  10.  *
  11.  * THIS SOFTWARE IS NOT COPYRIGHTED
  12.  *
  13.  * This source code is offered for use in the public domain. You may
  14.  * use, modify or distribute it freely.
  15.  *
  16.  * This code is distributed in the hope that it will be useful but
  17.  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  18.  * DISCLAIMED. This includes but is not limited to warranties of
  19.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20.  *
  21.  */
  22.  
  23. #ifndef __NEWDEV_H
  24. #define __NEWDEV_H
  25.  
  26. #if __GNUC__ >=3
  27. #pragma GCC system_header
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #pragma pack(push,4)
  35.  
  36. /* UpdateDriverForPlugAndPlayDevices.InstallFlags constants */
  37. #define INSTALLFLAG_FORCE                 0x00000001
  38. #define INSTALLFLAG_READONLY              0x00000002
  39. #define INSTALLFLAG_NONINTERACTIVE        0x00000004
  40. #define INSTALLFLAG_BITS                  0x00000007
  41.  
  42. BOOL WINAPI
  43. UpdateDriverForPlugAndPlayDevicesA(
  44.   HWND  hwndParent,
  45.   LPCSTR  HardwareId,
  46.   LPCSTR  FullInfPath,
  47.   DWORD  InstallFlags,
  48.   PBOOL  bRebootRequired  OPTIONAL);
  49.  
  50. BOOL WINAPI
  51. UpdateDriverForPlugAndPlayDevicesW(
  52.   HWND  hwndParent,
  53.   LPCWSTR  HardwareId,
  54.   LPCWSTR  FullInfPath,
  55.   DWORD  InstallFlags,
  56.   PBOOL  bRebootRequired  OPTIONAL);
  57.  
  58. #ifdef UNICODE
  59. #define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesW
  60. #else
  61. #define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesA
  62. #endif /* UNICODE */
  63.  
  64. #pragma pack(pop)
  65.  
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69.  
  70. #endif /* __NEWDEV_H */
  71.