Skip to content

Commit

Permalink
add dummy functions to avoid Wtsapi32.dll imports (Keeps it win2000 c…
Browse files Browse the repository at this point in the history
…ompatible)
  • Loading branch information
FunkyFr3sh committed Sep 30, 2024
1 parent 158b49e commit e80499a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/cnc-ddraw config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,15 @@ int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
}
return 0;
}

// dummy functions to avoid Wtsapi32.dll imports
EXTERN_C BOOL WINAPI WTSRegisterSessionNotification(HWND hWnd, DWORD dwFlags)
{
return TRUE;
}

EXTERN_C BOOL WINAPI WTSUnRegisterSessionNotification(HWND hWnd)
{
return TRUE;
}
//---------------------------------------------------------------------------

0 comments on commit e80499a

Please sign in to comment.