AllocSelector

3.0

  UINT AllocSelector(uSelector)    
  UINT uSelector; /* selector to copy or zero */

The AllocSelector function allocates a new selector.

Do not use this function in an application unless it is absolutely necessary, since its use violates preferred Windows programming practices.

Parameters

uSelector

Specifies the selector to return. If this parameter specifies a valid selector, the function returns a new selector that is an exact copy of the one specified here. If this parameter is zero, the function returns a new, uninitialized sector.

Return Value

The return value is a selector that is either a copy of an existing selector, or a new, uninitialized selector. Otherwise, the return value is zero.

Comments

The application must free the new selector by calling the FreeSelector function.

An application can call AllocSelector to allocate a selector that it can pass to the PrestoChangoSelector function.

See Also

PrestoChangoSelector