KeyManager.h
资源名称:HookAPI [点击查看]
上传用户:nbcables
上传日期:2007-01-11
资源大小:1243k
文件大小:0k
源码类别:
钩子与API截获
开发平台:
Visual C++
- #pragma once
- typedef struct tag_KEY_INFO
- {
- int sd;
- unsigned char key[17];
- int key_len;
- tag_KEY_INFO *pnext;
- }KEY_INFO;
- class CKeyManager
- {
- public:
- CKeyManager(void);
- ~CKeyManager(void);
- CRITICAL_SECTION m_cs_key;
- KEY_INFO *m_pkey_info;
- int m_key_info_count;
- int AddKey(int sd, unsigned char *key, int key_len);
- int RemoveKey(int sd);
- void RemoveAllKey();
- int GenKey(unsigned char * key);
- KEY_INFO *GetKey(int sd);
- };