Subversion Repositories userdetect2

Rev

Rev 73 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  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.  
  9. UD2_API UD2_STATUS PluginNameW(LPWSTR lpPluginName, DWORD cchSize, LANGID wLangID) {
  10.         LPCWSTR str = L"Test-Plugin in C++";
  11.         return UD2_WriteStrW(lpPluginName, cchSize, str);
  12. }
  13.  
  14. UD2_API UD2_STATUS PluginVersionW(LPWSTR lpPluginVersion, DWORD cchSize, LANGID wLangID) {
  15.         LPCWSTR str = L"1.0";
  16.         return UD2_WriteStrW(lpPluginVersion, cchSize, str);
  17. }
  18.  
  19. UD2_API UD2_STATUS PluginVendorW(LPWSTR lpPluginVendor, DWORD cchSize, LANGID wLangID) {
  20.         LPCWSTR str = L"ViaThinkSoft";
  21.         return UD2_WriteStrW(lpPluginVendor, cchSize, str);
  22. }
  23.  
  24. UD2_API UD2_STATUS CheckLicense(LPVOID lpReserved) {
  25.         return UD2_STATUS_OK_LICENSED;
  26. }
  27.  
  28. UD2_API UD2_STATUS IdentificationMethodNameW(LPWSTR lpIdentificationMethodName, DWORD cchSize) {
  29.          return UD2_WriteStrW(lpIdentificationMethodName, cchSize, L"TEST");
  30. }
  31.  
  32. UD2_API UD2_STATUS IdentificationStringW(LPWSTR lpIdentifier, DWORD cchSize) {
  33.          return UD2_WriteStrW(lpIdentifier, cchSize, L"Example");
  34. }
  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. }
  40.