INF: Calling DeleteObject on a Stock Object Is Safe

ID Number: Q86260

3.00 3.10

WINDOWS

docerr

Summary:

In the "Microsoft Windows Software Development Kit Reference Volume 1"

for Microsoft Windows 3.0, the documentation for the DeleteObject

function on page 4-88 states that an application must not delete a

stock object. This statement is incorrect and is not present in the

"Microsoft Windows Software Development Kit: Programmer's Reference,

Volume 2: Functions" manual for Windows version 3.1.

The DeleteObject function determines if the handle it receives points

to a stock object. If so, the function returns successfully without

deleting the object. This behavior will not change in future versions

of Windows.

Additional reference words: 3.00 3.10 SDK