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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function GlobalDeleteAtom (
atom As UShort
) As UShort
Dim atom As UShort
Dim returnValue As UShort
returnValue = Kernel32.GlobalDeleteAtom(atom)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static unsigned short GlobalDeleteAtom(
unsigned short atom
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member GlobalDeleteAtom :
atom : uint16 -> uint16
No code example is currently available or this language may not be supported.
- atom UInt16
-
The atom and character string to be deleted.
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.