Kernel32GlobalGetAtomName Method
Retrieves a copy of the character string associated with the specified global atom.
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", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static uint GlobalGetAtomName(
ushort atom,
StringBuilder buffer,
int size
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function GlobalGetAtomName (
atom As UShort,
buffer As StringBuilder,
size As Integer
) As UInteger
Dim atom As UShort
Dim buffer As StringBuilder
Dim size As Integer
Dim returnValue As UInteger
returnValue = Kernel32.GlobalGetAtomName(atom,
buffer, size)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static unsigned int GlobalGetAtomName(
unsigned short atom,
StringBuilder^ buffer,
int size
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member GlobalGetAtomName :
atom : uint16 *
buffer : StringBuilder *
size : int -> uint32
No code example is currently available or this language may not be supported.
- atom UInt16
-
The global atom associated with the character string to be retrieved.
- buffer StringBuilder
-
The buffer for the character string.
- size Int32
-
The size, in characters, of the buffer.
UInt32
If the function succeeds, the return value is the length of the string copied to the buffer, in characters,
not including the terminating null character.
If the function fails, the return value is zero.
To get extended error information, call
GetLastWin32Error.