` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Getting user name in Windows
1998-02-05 -- Troy Sorzano
 
MODULE('Windows API') GetUserNameA(*Cstring,*Long),BOOL,PASCAL,RAW END Loc:Login_Buffer CSTRING(256) Loc:Login_Buffer_Size LONG Loc:Login_Buffer_Size = 255 IF NOT GetUserNameA(Loc:Login_Buffer,Loc:Login_Buffer_Size) MESSAGE('Error GetUserNameA','Windows API Error',ICON:HAND) ELSE MESSAGE('Name: '&Loc:Login_Buffer) END This works for us in CW 2.003 32bit. I think this only gets the windows network loging. It might not get a Novell login.


Today is May 11, 2024, 3:19 pm
This article has been viewed 35115 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: