Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Authentication
Message
From
27/02/2003 04:55:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00757860
Message ID:
00758639
Views:
19
>Is there an easy way to get the WSID from Windows?
Bill,
GetComputerName API function returns the name. sys(0) wraps that and one another to also return the username.
If your intention is to add this to a connectionstring like SQL server connection you could do w/o it too :
lnHandle = SQLStringConnect('Driver=SQL server;Server=servername;'+;
'Trusted_Connection=Yes;')

or:
lnHandle = SQLStringConnect('Driver=SQL server;Server=servername;'+;
'Integrated Security=SSPI;')
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform