Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2001, 02:00 AM
PoseFant PoseFant is offline
Senior Member
 
Join Date: Jan 2001
Posts: 1,002
Default lmshare.h with include files ...

Hi all ...

Does anyonw know if the lmxxx.h files are translated to Delphi ?

I'm having serious trouble dealing with the size of the returning buffers ...

Example :

Type
SESSION_INFO_0 = Record
Client_Name : Array[0..255] Of lpWStr;
End;

Function NetSessionEnum(ServerName, ClientName, UserName : lpWStr; Level : DWord; Var Buffer : Pointer; PrefMaxLen : DWord; EntriesRead, TotalEntries, ResumeHandle : lpDWord) : LongInt; StdCall; External 'NETAPI32.DLL';

Var
NSE_STRUCT : SESSION_INFO_0;
UserName : lpWStr;
Buffer : Pointer;
Result : LongInt;
EntriesRead,
TotalEntries,
ResumeHandle : DWord;
Begin
StringToWideChar(PChar('PrefuserNameToEnum'),@User Name,256);
Result := NetSeesionEnum(NiL,NiL,UserName,0,Buffer,SizeOf(SE SSION_INFO_0),@EntriesRead,@TotalEntries,@ResumeHa ndle);

If Result = 0 Then NSE_STRUCT := SESSION_INFO_0(Buffer^);

End;


What is wrong ?

thx in advance ...

/Filip
Reply With Quote
  #2  
Old 02-07-2001, 04:30 AM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default RE: lmshare.h with include files ...

www.delphi-jedi.org has the Lan Manager headers translated
on their APILibrary page.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:22 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.