Click here to Skip to main content
15,923,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to implement ad-hoc network via WiFi in pocket pc Pin
Anonymous5-Jun-05 7:47
Anonymous5-Jun-05 7:47 
GeneralOutput Dos Command to HTML from HTML Pin
Lordahdaring5-Jun-05 5:04
Lordahdaring5-Jun-05 5:04 
GeneralRe: Output Dos Command to HTML from HTML Pin
toxcct5-Jun-05 5:17
toxcct5-Jun-05 5:17 
GeneralNetSessionEnum API example in VB.NET Pin
enesaga1235-Jun-05 3:15
enesaga1235-Jun-05 3:15 
GeneralRe: NetSessionEnum API example in VB.NET Pin
Paul_Taylor8-Jun-05 16:47
Paul_Taylor8-Jun-05 16:47 
GeneralRe: NetSessionEnum API example in VB.NET Pin
Paul_Taylor9-Jun-05 19:58
Paul_Taylor9-Jun-05 19:58 
GeneralRe: NetSessionEnum API example in VB.NET Pin
enesaga12311-Jun-05 2:52
enesaga12311-Jun-05 2:52 
GeneralRe: NetSessionEnum API example in VB.NET Pin
Paul_Taylor13-Jun-05 13:00
Paul_Taylor13-Jun-05 13:00 
Enes,

The code I submitted does work for me. I have run it from a Win XP machine and received the correct details of a Win 2003 Server. Be careful of the level that you use because some older OS's won't run level 502, in this case you have to use level 50 which has a different structure. My apologies for not including the API declaration originally.

Private Declare Unicode Function NetSessionEnum Lib "netapi32.dll" (_
ByVal ServerName As String, _
ByVal ClientName As String, _
ByVal UserName As String, _
ByVal Level As Integer, _
ByRef Buffer As IntPtr, _
ByRef prefmaxlen As Integer, _
ByRef entriesread As Integer, _
ByRef totalentries As Integer, _
ByRef ResumeHandle As Integer) As Integer



Regards,
Paul T.

GeneralGetting text from picture Pin
Vertyg05-Jun-05 2:57
Vertyg05-Jun-05 2:57 
GeneralRe: Getting text from picture Pin
Dave Kreskowiak5-Jun-05 9:52
mveDave Kreskowiak5-Jun-05 9:52 
Generaldoing console operations through VB.NET windows application Pin
fayaz ahamed5-Jun-05 1:25
fayaz ahamed5-Jun-05 1:25 
GeneralRe: doing console operations through VB.NET windows application Pin
Dave Kreskowiak5-Jun-05 9:47
mveDave Kreskowiak5-Jun-05 9:47 
GeneralRe: doing console operations through VB.NET windows application Pin
fayaz ahamed5-Jun-05 18:51
fayaz ahamed5-Jun-05 18:51 
GeneralRe: doing console operations through VB.NET windows application Pin
Scott Serl5-Jun-05 11:11
Scott Serl5-Jun-05 11:11 
GeneralRe: doing console operations through VB.NET windows application Pin
albCode6-Jun-05 0:55
albCode6-Jun-05 0:55 
GeneralRe: doing console operations through VB.NET windows application Pin
fayaz ahamed7-Jun-05 18:14
fayaz ahamed7-Jun-05 18:14 
GeneralView Picture Pin
ksampatlall4-Jun-05 23:32
ksampatlall4-Jun-05 23:32 
GeneralRe: View Picture Pin
Christian Graus5-Jun-05 12:52
protectorChristian Graus5-Jun-05 12:52 
GeneralFlag Pin
lijocm4-Jun-05 21:09
lijocm4-Jun-05 21:09 
GeneralRe: Flag Pin
WillemM5-Jun-05 0:52
WillemM5-Jun-05 0:52 
GeneralRe: Flag Pin
toxcct5-Jun-05 3:56
toxcct5-Jun-05 3:56 
Generalhard code session cookie Pin
unclejoe4-Jun-05 15:34
unclejoe4-Jun-05 15:34 
GeneralA simple question about form Pin
Anonymous4-Jun-05 12:41
Anonymous4-Jun-05 12:41 
GeneralRe: A simple question about form Pin
MoustafaS4-Jun-05 13:30
MoustafaS4-Jun-05 13:30 
GeneralRe: A simple question about form Pin
Mekong River5-Jun-05 5:46
Mekong River5-Jun-05 5:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.