Rev 68 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
68 | daniel-mar | 1 | library ExecuteAlways; |
2 | |||
3 | uses |
||
4 | Windows, |
||
5 | SysUtils, |
||
6 | Classes, |
||
7 | UD2_PluginIntf in '..\UD2_PluginIntf.pas', |
||
8 | UD2_PluginUtils in '..\UD2_PluginUtils.pas'; |
||
9 | |||
10 | {$R *.res} |
||
11 | |||
12 | const |
||
13 | PLUGIN_GUID: TGUID = '{7A1189CD-8F68-4068-9477-C50B9DCCCECC}'; |
||
14 | |||
15 | function PluginIdentifier: TGUID; cdecl; |
||
16 | begin |
||
17 | result := PLUGIN_GUID; |
||
18 | end; |
||
19 | |||
69 | daniel-mar | 20 | function IdentificationStringW(lpIdentifier: LPWSTR; cchSize: DWORD): UD2_STATUS; cdecl; |
68 | daniel-mar | 21 | var |
22 | stIdentifier: WideString; |
||
23 | begin |
||
24 | stIdentifier := 'Always'; |
||
69 | daniel-mar | 25 | result := UD2_WritePascalStringToPointerW(lpIdentifier, cchSize, stIdentifier); |
68 | daniel-mar | 26 | end; |
27 | |||
69 | daniel-mar | 28 | function PluginNameW(lpPluginName: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUS; cdecl; |
68 | daniel-mar | 29 | var |
30 | stPluginName: WideString; |
||
31 | primaryLangID: Byte; |
||
32 | begin |
||
33 | primaryLangID := wLangID and $00FF; |
||
34 | if primaryLangID = LANG_GERMAN then |
||
35 | stPluginName := 'Immer ausführen' |
||
36 | else |
||
37 | stPluginName := 'Execute always'; |
||
69 | daniel-mar | 38 | result := UD2_WritePascalStringToPointerW(lpPluginName, cchSize, stPluginName); |
68 | daniel-mar | 39 | end; |
40 | |||
69 | daniel-mar | 41 | function PluginVendorW(lpPluginVendor: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUS; cdecl; |
68 | daniel-mar | 42 | begin |
69 | daniel-mar | 43 | result := UD2_WritePascalStringToPointerW(lpPluginVendor, cchSize, 'ViaThinkSoft'); |
68 | daniel-mar | 44 | end; |
45 | |||
69 | daniel-mar | 46 | function PluginVersionW(lpPluginVersion: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUS; cdecl; |
68 | daniel-mar | 47 | begin |
69 | daniel-mar | 48 | result := UD2_WritePascalStringToPointerW(lpPluginVersion, cchSize, '1.0'); |
68 | daniel-mar | 49 | end; |
50 | |||
69 | daniel-mar | 51 | function IdentificationMethodNameW(lpIdentificationMethodName: LPWSTR; cchSize: DWORD): UD2_STATUS; cdecl; |
68 | daniel-mar | 52 | var |
53 | stIdentificationMethodName: WideString; |
||
54 | begin |
||
55 | stIdentificationMethodName := 'Execute'; |
||
69 | daniel-mar | 56 | result := UD2_WritePascalStringToPointerW(lpIdentificationMethodName, cchSize, stIdentificationMethodName); |
68 | daniel-mar | 57 | end; |
58 | |||
69 | daniel-mar | 59 | function CheckLicense(lpReserved: LPVOID): UD2_STATUS; cdecl; |
68 | daniel-mar | 60 | begin |
69 | daniel-mar | 61 | result := UD2_STATUS_OK_LICENSED; |
68 | daniel-mar | 62 | end; |
63 | |||
64 | exports |
||
65 | PluginInterfaceID name mnPluginInterfaceID, |
||
66 | PluginIdentifier name mnPluginIdentifier, |
||
67 | PluginNameW name mnPluginNameW, |
||
68 | PluginVendorW name mnPluginVendorW, |
||
69 | PluginVersionW name mnPluginVersionW, |
||
70 | IdentificationMethodNameW name mnIdentificationMethodNameW, |
||
71 | IdentificationStringW name mnIdentificationStringW, |
||
72 | CheckLicense name mnCheckLicense; |
||
73 | |||
74 | end. |