summaryrefslogtreecommitdiff
path: root/libusb/os/driver_install.h
blob: 5aebbef4c9c196c06b9686fb3a834ebac5ff3944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <windows.h>
#define MAX_DESC_LENGTH 128

struct driver_info {
	struct driver_info *next;
	char* device_id;
	char desc[MAX_DESC_LENGTH];
	char vid[9];
	char pid[9];
	char mi[6];
};

struct driver_info *list_driverless(void);
char* guid_to_string(const GUID guid);
int create_inf(struct driver_info* drv_info, char* path);
int run_installer(char *path, char *dev_inst);
int update_drivers(void);