-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcplugin.h
63 lines (50 loc) · 1.39 KB
/
cplugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* csaori.h
*
* written by Ukiya http://ukiya.sakura.ne.jp/
* based by えびさわ様 "gethwnd.dll"
*/
#pragma once
#include <map>
#include "csaori_base.h"
class CGhostInfo {
public:
void* hwnd;
string_t name;
string_t id;
string_t path;
string_t shell_name;
string_t shell_path;
};
typedef std::map<string_t,CGhostInfo> ghost_map_type;
class CPLUGIN : public CSAORIBase {
protected:
string_t script;
string_t script_option;
string_t event;
string_t event_option;
string_t target;
string_t marker;
string_t language;
string_t security_level;
string_t sender;
ghost_map_type ghost_map;
SAORI_FUNC::CCriticalSection sstp_thread_lock;
//インターフェース固有文字列群
virtual const string_t& s_saori_version(void) const;
virtual const string_t& s_saori_def(void) const;
virtual const string_t& s_saori_argument(void) const;
virtual const string_t& s_saori_value(void) const;
virtual const string_t& s_saori_result(void) const;
//Prologue / Epilogue
virtual void exec_before(const CSAORIInput& in,CSAORIOutput& out);
virtual void exec_after(const CSAORIInput& in,CSAORIOutput& out);
void send_sstp(const std::string &str,void* hwnd = NULL);
public:
CPLUGIN(){}
virtual ~CPLUGIN(){}
//以下が実装すべき関数
virtual void exec(const CSAORIInput& in,CSAORIOutput& out);
virtual bool unload();
virtual bool load();
};