ReOpenFile function kernel32

int ReOpenFile(
  1. int hOriginalFile,
  2. int dwDesiredAccess,
  3. int dwShareMode,
  4. int dwFlagsAndAttributes

Reopens the specified file system object with different access rights, sharing mode, and flags.

HANDLE ReOpenFile(
  HANDLE hOriginalFile,
  DWORD  dwDesiredAccess,
  DWORD  dwShareMode,
  DWORD  dwFlagsAndAttributes);


int ReOpenFile(int hOriginalFile, int dwDesiredAccess, int dwShareMode,
        int dwFlagsAndAttributes) =>
        hOriginalFile, dwDesiredAccess, dwShareMode, dwFlagsAndAttributes);