⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 awarenet.h

📁 Many programs today suffer from the fact that their users have to connect using IP addresses. This i
💻 H
字号:
#ifndef AWARENET_INCLUDE
#define AWARENET_INCLUDE

/*
--------------------------AwareNet Library--------------------------

Copyright(C) 1999 Tenebril Incorporated

  Extensive documentation is provided online at the
  Tenebril Incorporated web site.  It is accessible from,

  http://www.tenebril.com

  Please refer to this documentation to learn how to use
  AwareNet.

---------------------------------------------------------------------
*/

/* The DLL exports:

        UINT AwareNet_UpdateContactsMsg;
		UINT AwareNet_UpdateIdentityMsg;
		class CAwareNet;

*/

#ifdef IN_MCSPNET_DLL
#define DLL_EXPORT_STR __declspec(dllexport)
#else
#define DLL_EXPORT_STR

__declspec(dllimport) UINT AwareNet_UpdateContactsMsg;
__declspec(dllimport) UINT AwareNet_UpdateIdentityMsg;

#endif

typedef struct
{
	char Name[256];
	char EMail[128];
	char Password[128];
} PersonalInfo;

class DLL_EXPORT_STR CAwareNet
{
public:                   /* Public functions are available for general use */
	CAwareNet();
	~CAwareNet();

	bool Initialize(HWND ParentWindow, int Service);
	bool Deallocate(int Service);

	void SetParentWindow(HWND Parent);
	
	bool GetMyProfile(PersonalInfo *PInfo);
	bool SetMyProfile(PersonalInfo *PInfo);
	int  GetMyID();

	bool ChangeIdentity();

	int  GetFriend(int num);
	int  GetAcquaintance(int num);
	bool Add();
	bool Delete(int ID);

	bool GetProfile(int ID, PersonalInfo *PInfo);
	bool GetIP(int ID, char *IP);
	bool IsOnline(int ID, int service, bool forcelookup = false);

	int  LookupID(char *EMail);
	bool LookupProfile(int ID, PersonalInfo *PInfo);

	bool FlushData();
	bool UpdateTOS(int service, bool up);
	int  NumActiveTOS();
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -