RegisterWindowMessage function Null safety user32

int RegisterWindowMessage (
  1. Pointer<Utf16> lpString
)

Defines a new window message that is guaranteed to be unique throughout the system. The message value can be used when sending or posting messages.

UINT RegisterWindowMessageW(
  LPCWSTR lpString
);

Implementation

int RegisterWindowMessage(Pointer<Utf16> lpString) {
  final _RegisterWindowMessage = _user32.lookupFunction<
      Uint32 Function(Pointer<Utf16> lpString),
      int Function(Pointer<Utf16> lpString)>('RegisterWindowMessageW');
  return _RegisterWindowMessage(lpString);
}