-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #419 from GoSecure/file-io-fixes
Improvements to DeviceRedirection handling
- Loading branch information
Showing
8 changed files
with
76 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# This file is part of the PyRDP project. | ||
# Copyright (C) 2022 GoSecure Inc. | ||
# Licensed under the GPLv3 or later. | ||
# | ||
|
||
# Disable line-too-long lints. | ||
# flake8: noqa | ||
|
||
from enum import IntEnum | ||
|
||
|
||
class NtStatusSeverity(IntEnum): | ||
""" | ||
[MS-ERREF]: Windows Error Codes | ||
https://msdn.microsoft.com/en-us/library/cc231199.aspx | ||
[MS-ERREF]: NTSTATUS | ||
https://msdn.microsoft.com/en-us/library/cc231200.aspx | ||
""" | ||
STATUS_SEVERITY_SUCCESS = 0x0 | ||
STATUS_SEVERITY_INFORMATIONAL = 0x1 | ||
STATUS_SEVERITY_WARNING = 0x2 | ||
STATUS_SEVERITY_ERROR = 0x3 | ||
|
||
|
||
class NTSTATUS(IntEnum): | ||
""" | ||
[MS-ERREF]: Windows Error Codes | ||
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/87fba13e-bf06-450e-83b1-9241dc81e781 | ||
""" | ||
STATUS_SUCCESS = 0x00000000 | ||
STATUS_NO_MORE_FILES = 0x80000006 | ||
STATUS_NO_SUCH_FILE = 0xC000000F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters