Rev 69 | Rev 71 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
68 | daniel-mar | 1 | #define BUILDING_DLL |
2 | |||
3 | #include "ud2_api.h" |
||
4 | |||
5 | UD2_API GUID PluginIdentifier() { |
||
6 | return __GUID("{7576BD8F-A0C4-436F-B953-B137CBFD9FC7}"); |
||
7 | } |
||
8 | |||
69 | daniel-mar | 9 | UD2_API UD2_STATUS PluginNameW(LPWSTR lpPluginName, DWORD cchSize, LANGID wLangID) { |
68 | daniel-mar | 10 | LPCWSTR str = L"Test-Plugin in C++"; |
69 | daniel-mar | 11 | return UD2_WriteStrW(lpPluginName, cchSize, str); |
68 | daniel-mar | 12 | } |
13 | |||
69 | daniel-mar | 14 | UD2_API UD2_STATUS PluginVersionW(LPWSTR lpPluginVersion, DWORD cchSize, LANGID wLangID) { |
68 | daniel-mar | 15 | LPCWSTR str = L"1.0"; |
69 | daniel-mar | 16 | return UD2_WriteStrW(lpPluginVersion, cchSize, str); |
68 | daniel-mar | 17 | } |
18 | |||
69 | daniel-mar | 19 | UD2_API UD2_STATUS PluginVendorW(LPWSTR lpPluginVendor, DWORD cchSize, LANGID wLangID) { |
68 | daniel-mar | 20 | LPCWSTR str = L"ViaThinkSoft"; |
69 | daniel-mar | 21 | return UD2_WriteStrW(lpPluginVendor, cchSize, str); |
68 | daniel-mar | 22 | } |
23 | |||
69 | daniel-mar | 24 | UD2_API UD2_STATUS CheckLicense(LPVOID lpReserved) { |
25 | return UD2_STATUS_OK_LICENSED; |
||
68 | daniel-mar | 26 | } |
27 | |||
69 | daniel-mar | 28 | UD2_API UD2_STATUS IdentificationMethodNameW(LPWSTR lpIdentificationMethodName, DWORD cchSize) { |
29 | return UD2_WriteStrW(lpIdentificationMethodName, cchSize, L"TEST"); |
||
68 | daniel-mar | 30 | } |
31 | |||
69 | daniel-mar | 32 | UD2_API UD2_STATUS IdentificationStringW(LPWSTR lpIdentifier, DWORD cchSize) { |
33 | return UD2_WriteStrW(lpIdentifier, cchSize, L"Example"); |
||
68 | daniel-mar | 34 | } |
70 | daniel-mar | 35 | |
36 | UD2_API BOOL DescribeOwnStatusCodeW(LPWSTR lpErrorDescription, DWORD cchSize, UD2_STATUS statusCode, LANGID wLangID) { |
||
37 | // This function does not use non-generic status codes |
||
38 | return FALSE; |
||
39 | } |