You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
andNot bool
both result inTrue
, 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
The text was updated successfully, but these errors were encountered: