OutputDebugString function Null safety kernel32

void OutputDebugString (
  1. Pointer<Utf16> lpOutputString
)

Sends a string to the debugger for display.

void OutputDebugStringW(
  LPCWSTR lpOutputString
);

Implementation

void OutputDebugString(Pointer<Utf16> lpOutputString) {
  final _OutputDebugString = _kernel32.lookupFunction<
      Void Function(Pointer<Utf16> lpOutputString),
      void Function(Pointer<Utf16> lpOutputString)>('OutputDebugStringW');
  return _OutputDebugString(lpOutputString);
}