This commit is contained in:
KG7x
2022-12-25 20:21:13 +03:00
parent 4e7568dec1
commit 71103886e6
20 changed files with 32 additions and 32 deletions

View File

@@ -66,7 +66,7 @@ const char* GetLastMsg()
BOOL InstallUpdate(LPCWSTR fullInfPath, PBOOL rebootRequired)
{
SetLastMsg("Sucess");
SetLastMsg("Success");
// UpdateDriverForPlugAndPlayDevicesW may return FALSE while driver was successfully installed...
if (FALSE == UpdateDriverForPlugAndPlayDevicesW(
@@ -96,7 +96,7 @@ BOOL InstallUpdate(LPCWSTR fullInfPath, PBOOL rebootRequired)
BOOL Uninstall(LPCWSTR fullInfPath, PBOOL rebootRequired)
{
SetLastMsg("Sucess");
SetLastMsg("Success");
if (FALSE == DiUninstallDriverW(
NULL,
@@ -122,7 +122,7 @@ BOOL Uninstall(LPCWSTR fullInfPath, PBOOL rebootRequired)
BOOL IsDeviceCreated(PBOOL created)
{
SetLastMsg("Sucess");
SetLastMsg("Success");
HDEVINFO hardwareDeviceInfo = SetupDiGetClassDevs(
&GUID_DEVINTERFACE_IDD_DRIVER_DEVICE,
@@ -181,7 +181,7 @@ BOOL IsDeviceCreated(PBOOL created)
BOOL DeviceCreate(PHSWDEVICE hSwDevice)
{
SetLastMsg("Sucess");
SetLastMsg("Success");
if (*hSwDevice != NULL)
{
@@ -274,7 +274,7 @@ BOOL DeviceCreate(PHSWDEVICE hSwDevice)
VOID DeviceClose(HSWDEVICE hSwDevice)
{
SetLastMsg("Sucess");
SetLastMsg("Success");
if (hSwDevice != INVALID_HANDLE_VALUE && hSwDevice != NULL)
{
@@ -284,7 +284,7 @@ VOID DeviceClose(HSWDEVICE hSwDevice)
BOOL MonitorPlugIn(UINT index, UINT edid, INT retries)
{
SetLastMsg("Sucess");
SetLastMsg("Success");
if (retries < 0)
{
@@ -359,7 +359,7 @@ BOOL MonitorPlugIn(UINT index, UINT edid, INT retries)
BOOL MonitorPlugOut(UINT index)
{
SetLastMsg("Sucess");
SetLastMsg("Success");
HANDLE hDevice = DeviceOpenHandle();
if (hDevice == INVALID_HANDLE_VALUE || hDevice == NULL)
@@ -400,7 +400,7 @@ BOOL MonitorPlugOut(UINT index)
BOOL MonitorModesUpdate(UINT index, UINT modeCount, PMonitorMode modes)
{
SetLastMsg("Sucess");
SetLastMsg("Success");
HANDLE hDevice = DeviceOpenHandle();
if (hDevice == INVALID_HANDLE_VALUE || hDevice == NULL)
@@ -721,7 +721,7 @@ Clean0:
// https://stackoverflow.com/questions/67164846/createfile-fails-unless-i-disable-enable-my-device
HANDLE DeviceOpenHandle()
{
SetLastMsg("Sucess");
SetLastMsg("Success");
// const int maxDevPathLen = 256;
TCHAR devicePath[256] = { 0 };

View File

@@ -47,7 +47,7 @@ BOOL IsDeviceCreated(PBOOL created);
/**
* @brief Create device.
* Only one device should be created.
* If device is installed ealier, this function returns FALSE.
* If device is installed earlier, this function returns FALSE.
*
* @param hSwDevice [out] Handler of software device, used by DeviceCreate(). Should be **NULL**.
*