Delphi - Como importar dll

 
Vista:

Como importar dll

Publicado por Vladimir Varona Tellez (1 intervención) el 16/05/2006 15:52:27
Nesecito Importar el fichero netapi32.dll para usar la funcion NetServerEnum
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Como importar dll

Publicado por Edgar Rodriguez (172 intervenciones) el 01/09/2006 08:31:31
type
TFuncion = function( <<los parámetros>> ): <<tipo>>

var
H1 : THandle;
MiFuncion : TFuncion;
begin
H1 := LoadLibrary(PChar('NETAPI32.DLL')); // Puedes probar sin el PChar
if H1 > 32 then begin
@MiFuncion := GetProcAddress(H1, 'NetServerEnum');
if Assigned(MiFuncion) then
MiFuncion(<<tus parámetros>>); // lo puedes asignar auna var de <<tipo>>
end;
FreeLibrary(H1);
end;
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar