-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBindView.h
62 lines (50 loc) · 1.76 KB
/
BindView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 2001.
//
// File: B I N D V I E W . H
//
// Contents: Function Prototypes
//
// Notes:
//
// Author: Alok Sinha 15-May-01
//
//----------------------------------------------------------------------------
//
//----------------------------------------------------------------------------
// NOTICE: This is a modified copy of the original bindview.h, see README.txt
//----------------------------------------------------------------------------
//
#ifndef __BINDVIEW_H__
#define __BINDVIEW_H__
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <windowsx.h>
#include <wchar.h>
#include <setupapi.h>
#include <devguid.h>
#include <netcfgx.h>
#include <netcfgn.h>
#include <strsafe.h>
#include "netcfgapi.h"
#define celems(_x) (sizeof(_x) / sizeof(_x[0]))
VOID ErrMsg (HRESULT hr,
LPCWSTR lpFmt,
...);
HRESULT InstallSelectedComponentType (__in UINT uiDeviceType,
__in_opt LPWSTR lpszInfFile);
HRESULT InstallSpecifiedComponent (__in LPWSTR lpszInfFile,
__in LPWSTR lpszPnpID,
const GUID *pguidClass);
HRESULT UninstallComponent (__in LPWSTR lpszInfId);
HRESULT GetPnpID (__in LPWSTR lpszInfFile,
__deref_out_opt LPWSTR *lppszPnpID);
HRESULT GetKeyValue (HINF hInf,
__in LPCWSTR lpszSection,
__in_opt LPCWSTR lpszKey,
DWORD dwIndex,
__deref_out_opt LPWSTR *lppszValue);
#endif // __BINDVIEW_H__