Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
561 B

  1. #include <stdlib.h>
  2. #include <mainwin.h>
  3. #define IEREMOTE_CMDLINE 1
  4. #define IEREMOTECLASS TEXT("IEFrame")
  5. BOOL ConnectRemoteIE(LPTSTR pszCmdLine, HINSTANCE hInstance);
  6. BOOL IsCommandSwitch(LPTSTR lpszCmdLine, LPTSTR pszSwitch);
  7. BOOL RemoteIENewWindow(LPTSTR pszCmdLine);
  8. #if defined(UNIX)
  9. #include <sys/time.h>
  10. #include <sys/resource.h>
  11. #define INCREASE_FILEHANDLE_LIMIT \
  12. struct rlimit rl; \
  13. if ( 0 == getrlimit(RLIMIT_NOFILE, &rl)) { \
  14. rl.rlim_cur = rl.rlim_max; \
  15. setrlimit(RLIMIT_NOFILE, &rl); \
  16. } \
  17. #endif