This commit is contained in:
KG7x
2022-12-25 19:23:03 +03:00
parent 8c86a82422
commit 2d6075189d
14 changed files with 71 additions and 71 deletions

View File

@@ -221,7 +221,7 @@ BOOL DeviceCreate(PHSWDEVICE hSwDevice)
SW_DEVICE_CREATE_INFO createInfo = { 0 };
PCWSTR description = L"RustDesk Idd Driver";
// These match the Pnp id's in the inf file so OS will load the driver when the device is created
// These match the Pnp id's in the inf file so OS will load the driver when the device is created
PCWSTR instanceId = L"RustDeskIddDriver";
PCWSTR hardwareIds = L"RustDeskIddDriver\0\0";
PCWSTR compatibleIds = L"RustDeskIddDriver\0\0";

View File

@@ -14,7 +14,7 @@ extern "C" {
* @param rebootRequired [out] Indicates whether a restart is required.
*
* @return TRUE/FALSE. If FALSE returned, error message can be retrieved by GetLastMsg()
*
*
* @see GetLastMsg#GetLastMsg
*/
BOOL InstallUpdate(LPCTSTR fullInfPath, PBOOL rebootRequired);
@@ -34,11 +34,11 @@ BOOL Uninstall(LPCTSTR fullInfPath, PBOOL rebootRequired);
/**
* @brief Check if RustDeskIddDriver device is created before.
* The driver device(adapter) should be single instance.
*
*
* @param created [out] Indicates whether the device is created before.
*
* @return TRUE/FALSE. If FALSE returned, error message can be retrieved by GetLastMsg()
*
*
* @see GetLastMsg#GetLastMsg
*
*/
@@ -48,11 +48,11 @@ BOOL IsDeviceCreated(PBOOL created);
* @brief Create device.
* Only one device should be created.
* If device is installed ealier, this function returns FALSE.
*
*
* @param hSwDevice [out] Handler of software device, used by DeviceCreate(). Should be **NULL**.
*
* @return TRUE/FALSE. If FALSE returned, error message can be retrieved by GetLastMsg()
*
*
* @see GetLastMsg#GetLastMsg
*
*/
@@ -79,9 +79,9 @@ VOID DeviceClose(HSWDEVICE hSwDevice);
* 1 means doing once and retry one time...
*
* @return TRUE/FALSE. If FALSE returned, error message can be retrieved by GetLastMsg()
*
*
* @see GetLastMsg#GetLastMsg
*
*
* @remark Plug in monitor may fail if device is created in a very short time.
* System need some time to prepare the device.
*
@@ -94,7 +94,7 @@ BOOL MonitorPlugIn(UINT index, UINT edid, INT retries);
* @param index [in] Monitor index, should be 0, 1, 2.
*
* @return TRUE/FALSE. If FALSE returned, error message can be retrieved by GetLastMsg()
*
*
* @see GetLastMsg#GetLastMsg
*
*/
@@ -133,9 +133,9 @@ const char* GetLastMsg();
* @brief Set if print error message when debug.
*
* @param b [in] TRUE to enable printing message.
*
*
* @remark For now, no need to read evironment variable to check if should print.
*
*
*/
VOID SetPrintErrMsg(BOOL b);