Subversion Repositories userdetect2

Rev

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

Rev 81 Rev 82
Line 21... Line 21...
21
 
21
 
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
  stIdentifier: WideString;
24
  stIdentifier: WideString;
25
begin
25
begin
-
 
26
  try
26
  stIdentifier := GetUserName;
27
    stIdentifier := GetUserName;
27
  result := UD2_WritePascalStringToPointerW(lpIdentifier, cchSize, stIdentifier);
28
    result := UD2_WritePascalStringToPointerW(lpIdentifier, cchSize, stIdentifier);
-
 
29
  except
-
 
30
    on E: Exception do result := UD2_STATUS_HandleException(E);
-
 
31
  end;
28
end;
32
end;
29
 
33
 
30
function PluginNameW(lpPluginName: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUS; cdecl;
34
function PluginNameW(lpPluginName: LPWSTR; cchSize: DWORD; wLangID: LANGID): UD2_STATUS; cdecl;
31
var
35
var
32
  stPluginName: WideString;
36
  stPluginName: WideString;