We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using NtFileOpen on named pipes, sometimes some fields are throwing an exception while others are not:
NtFileOpen
Is there a way to check if a field threw an exception without using try..catch for every field?
try..catch
For example, in the following code, we can get an object with fields that threw an exception:
namedPipeFileObject = (NtNamedPipeFileBase)NtFile.Open(obj_attributes, i_Access, i_ShareMode, i_Options); row.Cells[0].Value = namedPipeObject.NumberOfLinks; row.Cells[1].Value = namedPipeObject.DirectoryGrantedAccess; row.Cells[2].Value = namedPipeObject.GrantedAccess; row.Cells[3].Value = namedPipeObject.GrantedAccessGeneric;
But using try..catch for every field can be overkill, especially if we will go over all the fields. Any suggestion how to handle it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am using
NtFileOpen
on named pipes, sometimes some fields are throwing an exception while others are not:Is there a way to check if a field threw an exception without using
try..catch
for every field?For example, in the following code, we can get an object with fields that threw an exception:
But using
try..catch
for every field can be overkill, especially if we will go over all the fields.Any suggestion how to handle it?
The text was updated successfully, but these errors were encountered: