-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRpcHelpCmd.cpp
48 lines (40 loc) · 1.01 KB
/
RpcHelpCmd.cpp
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
#include "StdAfx.h"
#include "RpcHelpCmd.h"
const wchar_t * CRpcHelpCmd::EnglishCommandName()
{
return L"RPCHelp";
}
UUID CRpcHelpCmd::CommandUUID()
{
static const UUID uuid =
{
// {6EB9EF5B-3E7A-4D34-A82F-133E393831A1}
0x6eb9ef5b, 0x3e7a, 0x4d34, { 0xa8, 0x2f, 0x13, 0x3e, 0x39, 0x38, 0x31, 0xa1 }
};
return uuid;
}
CRhinoCommand::result CRpcHelpCmd::RunRpcCommand(const CRhinoCommandContext& context)
{
const TCHAR *arcHelp = _T("http://helpcenter.archvision.com");
ShellExecute(0, 0, arcHelp, 0, 0, SW_SHOW);
return success;
}
CRhinoCommand::result CRpcSiteCmd::RunRpcCommand(const CRhinoCommandContext & context)
{
const TCHAR *arcSite = _T("http://archvision.com/");
ShellExecute(0, 0, arcSite, 0, 0, SW_SHOW);
return success;
}
const wchar_t * CRpcSiteCmd::EnglishCommandName()
{
return L"RPCSite";
}
UUID CRpcSiteCmd::CommandUUID()
{
static const UUID uuid =
{
// {6EB9EF5B-4E7A-4D34-A82F-133E313831A1}
0x6eb9ef5b, 0x4e7a, 0x4d34, { 0xa8, 0x2f, 0x13, 0x3e, 0x31, 0x38, 0x31, 0xa1 }
};
return uuid;
}