windows-nt/Source/XPSP1/NT/shell/iexplore/unixstuff.h
2020-09-26 16:20:57 +08:00

24 lines
561 B
C

#include <stdlib.h>
#include <mainwin.h>
#define IEREMOTE_CMDLINE 1
#define IEREMOTECLASS TEXT("IEFrame")
BOOL ConnectRemoteIE(LPTSTR pszCmdLine, HINSTANCE hInstance);
BOOL IsCommandSwitch(LPTSTR lpszCmdLine, LPTSTR pszSwitch);
BOOL RemoteIENewWindow(LPTSTR pszCmdLine);
#if defined(UNIX)
#include <sys/time.h>
#include <sys/resource.h>
#define INCREASE_FILEHANDLE_LIMIT \
struct rlimit rl; \
if ( 0 == getrlimit(RLIMIT_NOFILE, &rl)) { \
rl.rlim_cur = rl.rlim_max; \
setrlimit(RLIMIT_NOFILE, &rl); \
} \
#endif