unixstuff.h
上传用户:xhy777
上传日期:2007-02-14
资源大小:24088k
文件大小:1k
源码类别:

系统编程

开发平台:

Visual C++

  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