09-24-2015, 12:44 PM
Is this the correct way to get the handle count of the current process?
Function GetHandleCount
I'm unsure if it's OK to have the dll declaration in the function code body or if I should put this somewhere else? Thanks.
Function GetHandleCount
function#
;Returns handle count of current process
int handleCount
dll kernel32 #GetProcessHandleCount hProcess *pdwHandleCount
if GetProcessHandleCount(GetCurrentProcess &handleCount)
,ret handleCount
I'm unsure if it's OK to have the dll declaration in the function code body or if I should put this somewhere else? Thanks.