[DllImport("kernel32.dll", SetLastError=true, CharSet=CharSet.Auto)]
static extern uint GlobalGetAtomName(ushort nAtom,
[Out] StringBuilder lpBuffer, int nSize);
None.
None.
Please add some!
// Using Char[] instead of StringBuilder
[DllImport( "kernel32.dll", SetLastError = true, CharSet = CharSet.Auto )]
static extern uint GlobalGetAtomName( ushort nAtom, Out Char[] lpBuffer, int nSize );
Char[] AtomCharArray = new Char[nSize];
GlobalGetAtomName( AtomID, AtomCharArray , nSize );
Do you know one? Please contribute it!