Leaked source code of windows server 2003
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.

41 lines
846 B

  1. ///////////////////////////////////////////////////////////////////
  2. // ThreadPub.h
  3. //
  4. #ifndef __THREADPUB_H__
  5. #define __THREADPUB_H__
  6. #include <list>
  7. using namespace std;
  8. typedef list<BSTR> BSTRLIST;
  9. #define DEFAULT_USER_TTL 3600
  10. // Information used when publishing the user on the ILS
  11. class CPublishUserInfo
  12. {
  13. // Construction
  14. public:
  15. CPublishUserInfo();
  16. virtual ~CPublishUserInfo();
  17. // Members:
  18. public:
  19. BSTRLIST m_lstServers;
  20. bool m_bCreateUser;
  21. // Operators
  22. public:
  23. CPublishUserInfo& operator=( const CPublishUserInfo &src );
  24. void EmptyList();
  25. };
  26. DWORD WINAPI ThreadPublishUserProc( LPVOID lpInfo );
  27. void LoadDefaultServers( CPublishUserInfo *pInfo );
  28. bool MyGetUserName( BSTR *pbstrName );
  29. void GetIPAddress( BSTR *pbstrText, BSTR *pbstrComputerName );
  30. #endif //__THREADPUB_H__