18,7 → 18,7 |
result := PLUGIN_GUID; |
end; |
|
function IdentificationStringW(lpIdentifier: LPWSTR; cchSize: DWORD): UD2_STATUSCODE; cdecl; |
function IdentificationStringW(lpIdentifier: LPWSTR; cchSize: DWORD): UD2_STATUS; cdecl; |
var |
sl, sl2: TStringList; |
i: integer; |
29,7 → 29,7 |
try |
if GetLocalMACAddressList(sl2) <> NO_ERROR then |
begin |
result := UD2_STATUS_OK; // we assume that we just don't have any data |
result := UD2_STATUS_NOTAVAIL_API_CALL_FAILURE; |
Exit; |
end; |
|
45,7 → 45,7 |
sl2.add(mac); |
end; |
end; |
result := WriteStringListToPointerW(lpIdentifier, cchSize, sl2); |
result := UD2_WriteStringListToPointerW(lpIdentifier, cchSize, sl2); |
finally |
sl.Free; |
sl2.Free; |
52,7 → 52,7 |
end; |
end; |
|
function PluginNameW(lpPluginName: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUSCODE; cdecl; |
function PluginNameW(lpPluginName: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUS; cdecl; |
var |
stPluginName: WideString; |
primaryLangID: Byte; |
62,30 → 62,30 |
stPluginName := 'MAC-Adressen' |
else |
stPluginName := 'MAC addresses'; |
result := WritePascalStringToPointerW(lpPluginName, cchSize, stPluginName); |
result := UD2_WritePascalStringToPointerW(lpPluginName, cchSize, stPluginName); |
end; |
|
function PluginVendorW(lpPluginVendor: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUSCODE; cdecl; |
function PluginVendorW(lpPluginVendor: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUS; cdecl; |
begin |
result := WritePascalStringToPointerW(lpPluginVendor, cchSize, 'ViaThinkSoft'); |
result := UD2_WritePascalStringToPointerW(lpPluginVendor, cchSize, 'ViaThinkSoft'); |
end; |
|
function PluginVersionW(lpPluginVersion: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUSCODE; cdecl; |
function PluginVersionW(lpPluginVersion: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUS; cdecl; |
begin |
result := WritePascalStringToPointerW(lpPluginVersion, cchSize, '1.0'); |
result := UD2_WritePascalStringToPointerW(lpPluginVersion, cchSize, '1.0'); |
end; |
|
function IdentificationMethodNameW(lpIdentificationMethodName: LPWSTR; cchSize: DWORD): UD2_STATUSCODE; cdecl; |
function IdentificationMethodNameW(lpIdentificationMethodName: LPWSTR; cchSize: DWORD): UD2_STATUS; cdecl; |
var |
stIdentificationMethodName: WideString; |
begin |
stIdentificationMethodName := 'LAN_MAC'; |
result := WritePascalStringToPointerW(lpIdentificationMethodName, cchSize, stIdentificationMethodName); |
result := UD2_WritePascalStringToPointerW(lpIdentificationMethodName, cchSize, stIdentificationMethodName); |
end; |
|
function CheckLicense(lpReserved: LPVOID): UD2_STATUSCODE; cdecl; |
function CheckLicense(lpReserved: LPVOID): UD2_STATUS; cdecl; |
begin |
result := UD2_STATUS_OK; |
result := UD2_STATUS_OK_LICENSED; |
end; |
|
exports |