Kernel32GlobalDeleteAtom Method

Decrements the reference count of a global string atom.

If the atom's reference count reaches zero, GlobalDeleteAtom(UInt16) removes the string associated with the atom from the global atom table.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", SetLastError = true)]
public static ushort GlobalDeleteAtom(
	ushort atom
)

Parameters

atom  UInt16
The atom and character string to be deleted.

Return Value

UInt16
The function always returns (ATOM) 0.

To determine whether the function has failed, call SetLastError(Win32ErrorCode) with ERROR_SUCCESS before calling GlobalDeleteAtom(UInt16), then call GetLastWin32Error. If the last error code is still ERROR_SUCCESS, then GlobalDeleteAtom(UInt16) has succeeded.

To get extended error information, call GetLastWin32Error.

Remarks

See Also