GetModuleUsage

2.x

  int GetModuleUsage(hinst)    
  HINSTANCE hinst; /* handle of module, */  

The GetModuleUsage function retrieves the reference count of a specified module.

Parameters

hinst

Identifies the module or an instance of the module.

Return Value

The return value specifies the reference count of the module if the function is successful.

Comments

Windows increments (increases by one) a module's reference count each time an application calls the LoadModule function. The count is decremented (decreased by one) when an application calls the FreeModule function.

See Also

FreeModule, LoadModule