GlobalHandleToSel

3.1

  #include <toolhelp.h>    

  WORD GlobalHandleToSel(hglb)    
  HGLOBAL hglb;    

The GlobalHandleToSel function converts the given handle to a selector.

Parameters

hglb

Identifies the global memory object to be converted.

Return Value

The return value is the selector of the given object if the function is successful. Otherwise, it is zero.

Comments

The GlobalHandleToSel function converts a global handle to a selector appropriate for Windows, version 3.0 or 3.1, depending on which version is running. A debugging application might use this selector to access a global memory object if the object is not discardable or if the object's attributes are irrelevant.

See Also

GlobalAlloc