mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
Merge pull request #2647 from KG7x/master
Fix typo & Optimize images & Cleanup
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 43 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 42 KiB |
2
libs/enigo/.vscode/launch.json
vendored
2
libs/enigo/.vscode/launch.json
vendored
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
|
||||
|
||||
{
|
||||
"name": "Debug",
|
||||
"type": "gdb",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
//! Possible use cases could be for testing user interfaces on different
|
||||
//! plattforms,
|
||||
//! building remote control applications or just automating tasks for user
|
||||
//! interfaces unaccessible by a public API or scripting laguage.
|
||||
//! interfaces unaccessible by a public API or scripting language.
|
||||
//!
|
||||
//! For the keyboard there are currently two modes you can use. The first mode
|
||||
//! is represented by the [key_sequence]() function
|
||||
|
||||
@@ -68,7 +68,7 @@ extern "C" {
|
||||
) -> Boolean;
|
||||
|
||||
fn CGEventPost(tapLocation: CGEventTapLocation, event: *mut MyCGEvent);
|
||||
// Actually return CFDataRef which is const here, but for coding convienence, return *mut c_void
|
||||
// Actually return CFDataRef which is const here, but for coding convenience, return *mut c_void
|
||||
fn TISGetInputSourceProperty(source: TISInputSourceRef, property: *const c_void)
|
||||
-> *mut c_void;
|
||||
// not present in servo/core-graphics
|
||||
|
||||
@@ -578,7 +578,7 @@ impl TransferJob {
|
||||
///
|
||||
/// [`Note`]
|
||||
/// Conditions:
|
||||
/// 1. Files are not waiting for comfirmation by peers.
|
||||
/// 1. Files are not waiting for confirmation by peers.
|
||||
#[inline]
|
||||
pub fn job_completed(&self) -> bool {
|
||||
// has no error, Condition 2
|
||||
|
||||
@@ -339,7 +339,7 @@ impl CapturerMag {
|
||||
}
|
||||
|
||||
// Register the host window class. See the MSDN documentation of the
|
||||
// Magnification API for more infomation.
|
||||
// Magnification API for more information.
|
||||
let wcex = WNDCLASSEXA {
|
||||
cbSize: size_of::<WNDCLASSEXA>() as _,
|
||||
style: 0,
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
@@ -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";
|
||||
@@ -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 };
|
||||
|
||||
@@ -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
|
||||
*
|
||||
*/
|
||||
@@ -47,12 +47,12 @@ 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**.
|
||||
*
|
||||
* @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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user