UINT PrestoChangoSelector(uSourceSelector, uDestSelector) | |||||
UINT uSourceSelector; | /* selector to convert | */ | |||
UINT uDestSelector; | /* converted selector (allocated by AllocSelector) | */ |
The PrestoChangoSelector function generates a code selector that corresponds to a given data selector, or it generates a data selector that corresponds to a given code selector.
An application should not use this function unless it is absolutely necessary, because its use violates preferred Windows programming practices.
uSourceSelector
Specifies the selector to be converted.
uDestSelector
Specifies a selector previously allocated by the AllocSelector function. This previously allocated selector receives the converted selector.
The return value is the copied and converted selector if the function is successful. Otherwise, it is zero.
Windows does not track changes to the source selector. Consequently, before any memory can be moved, the application should use the converted destination selector immediately after it is returned by this function.
The PrestoChangoSelector function modifies the destination selector to have the same properties as the source selector, but with the opposite code or data attribute. This function changes only the attributes of the selector, not the value of the selector.
This function was named ChangeSelector in the Windows 3.0 documentation.