###User Defined Function###
_WinAPI_DestroyCaret

###Description###
Destroys the caret's current shape, frees the caret from the window, and removes the caret from the screen.

###Syntax###
#include <WinAPIRes.au3>
_WinAPI_DestroyCaret (  )


###Parameters###
None

###ReturnValue###
@@ReturnTable@@
Success 	True.
Failure 	False, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information.
@@End@@


###Remarks###
<a href="_WinAPI_DestroyCaret.htm">_WinAPI_DestroyCaret()</a> destroys the caret only if a window in the current task owns the caret.
If a window that is not in the current task owns the caret, <a href="_WinAPI_DestroyCaret.htm">_WinAPI_DestroyCaret()</a> does nothing and returns 0.

The window should destroy the caret before losing the keyboard focus or becoming inactive.


###Related###


###See Also###
@@MsdnLink@@ DestroyCaret
