Skip to content
New issue

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

Public Property ... End Function #10

Open
Cease opened this issue Oct 3, 2022 · 0 comments
Open

Public Property ... End Function #10

Cease opened this issue Oct 3, 2022 · 0 comments

Comments

@Cease
Copy link

Cease commented Oct 3, 2022

Several Property Get end win End Function instead of End Property.

This is one such example. VBA does not complain but VBA-addins that cormat code does get confused.

'Returns whether the process is critical or not
'@returns {Boolean} True if the process is critical, false otherwise
Public Property Get isCritical() As Boolean
'Note: IsProcessCritical can return a weird boolean where bool and Not bool both result in True, which is nonsense...
'for this reason we explicitely cast to a long here...
If CLng(IsProcessCritical(pQueryInfoHandle, isCritical)) = 0 Then
Err.Raise 1, "stdProcess.isCritical", "Cannot get critical status of process. Error code 0x" & Hex(Err.LastDllError)
End If
End Function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant