mirror of https://github.com/tongzx/nt5src
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.
66 lines
1.3 KiB
66 lines
1.3 KiB
/*++
|
|
|
|
Copyright (c) 1999 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
newdev.h
|
|
|
|
Abstract:
|
|
|
|
Public header file for Windows NT Driver Installation DLL.
|
|
|
|
--*/
|
|
|
|
#ifndef _INC_NEWDEV
|
|
#define _INC_NEWDEV
|
|
|
|
#include <pshpack1.h> // Assume byte packing throughout
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
#define INSTALLFLAG_FORCE 0x00000001 // Force the installation of the specified driver
|
|
#define INSTALLFLAG_READONLY 0x00000002 // Do a read-only install (no file copy)
|
|
#define INSTALLFLAG_NONINTERACTIVE 0x00000004 // No UI shown at all. API will fail if any UI must be shown.
|
|
#define INSTALLFLAG_BITS 0x00000007
|
|
|
|
|
|
BOOL
|
|
WINAPI
|
|
UpdateDriverForPlugAndPlayDevicesA(
|
|
HWND hwndParent,
|
|
LPCSTR HardwareId,
|
|
LPCSTR FullInfPath,
|
|
DWORD InstallFlags,
|
|
PBOOL bRebootRequired OPTIONAL
|
|
);
|
|
|
|
BOOL
|
|
WINAPI
|
|
UpdateDriverForPlugAndPlayDevicesW(
|
|
HWND hwndParent,
|
|
LPCWSTR HardwareId,
|
|
LPCWSTR FullInfPath,
|
|
DWORD InstallFlags,
|
|
PBOOL bRebootRequired OPTIONAL
|
|
);
|
|
|
|
#ifdef UNICODE
|
|
#define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesW
|
|
#else
|
|
#define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesA
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#include <poppack.h>
|
|
|
|
#endif // _INC_NEWDEV
|
|
|