Subversion Repositories userdetect2

Rev

Rev 71 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71 Rev 82
Line 22... Line 22...
22
function IdentificationStringW(lpIdentifier: LPWSTR; cchSize: DWORD): UD2_STATUS; cdecl;
22
function IdentificationStringW(lpIdentifier: LPWSTR; cchSize: DWORD): UD2_STATUS; cdecl;
23
var
23
var
24
  sl: TStringList;
24
  sl: TStringList;
25
  ec: DWORD;
25
  ec: DWORD;
26
begin
26
begin
-
 
27
  try
27
  sl := TStringList.Create;
28
    sl := TStringList.Create;
28
  try
29
    try
29
    ec := GetDHCPIPAddressList(sl);
30
      ec := GetDHCPIPAddressList(sl);
30
    if ec = ERROR_NOT_SUPPORTED then
31
      if ec = ERROR_NOT_SUPPORTED then
31
    begin
32
      begin
Line 39... Line 40...
39
    end;
40
      end;
40
    result := UD2_WriteStringListToPointerW(lpIdentifier, cchSize, sl);
41
      result := UD2_WriteStringListToPointerW(lpIdentifier, cchSize, sl);
41
  finally
42
    finally
42
    sl.Free;
43
      sl.Free;
43
  end;
44
    end;
-
 
45
  except
-
 
46
    on E: Exception do result := UD2_STATUS_HandleException(E);
-
 
47
  end;
44
end;
48
end;
45
 
49
 
46
function PluginNameW(lpPluginName: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUS; cdecl;
50
function PluginNameW(lpPluginName: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUS; cdecl;
47
var
51
var
48
  stPluginName: WideString;
52
  stPluginName: WideString;