Variable SystemErrorCode.code

You should technically cast it back to DWORD if it is a win32 code

struct SystemErrorCode
{
  // ...
  const(int) code;
  // ...
}