-
Notifications
You must be signed in to change notification settings - Fork 0
/
WDMSetup.h
42 lines (42 loc) · 914 Bytes
/
WDMSetup.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
#ifndef __ICE_SETUPLIB_H
#define __ICE_SETUPLIB_H
//
#pragma once
//
#ifdef __cplusplus
extern "C" {
#endif
//
#include <windows.h>
#include <newdev.h>
#include <setupapi.h>
#include <tchar.h>
#include <stdio.h>
#include "util.h"
//
#pragma comment(lib, "setupapi.lib")
#pragma comment(lib, "newdev.lib")
//
#ifndef MAX_DEVICE_ID_LEN
#define MAX_DEVICE_ID_LEN 200
#define MAX_DEVNODE_ID_LEN MAX_DEVICE_ID_LEN
#define MAX_GUID_STRING_LEN 39 // 38 chars + terminator null
#define MAX_CLASS_NAME_LEN 32
#endif
//
void InitialGlobalVar();
//
char FindSectionName(FILE *, const char *);
char IsInstalled();
char GetSectionData(FILE *, const char *, const char);
char GetINFData(FILE *);
char StartInstallWDMDriver(const char *);
char InstallClassDriver(const char *);
void UninstallWDMDriver(const int, const char *);
//int FindInstalledIndex(GUID, int*);
//
#ifdef __cplusplus
}
#endif
//
#endif