Declaration :

DECLARE INTEGER GetUserName IN advapi32;
STRINGĀ  @ lpBuffer,;
INTEGER @ nSize

Usage :

nSize = 250
cBuffer = REPLICATE(Chr(0), nSize)
= GetUserName(@cBuffer, @nSize)
cBuffer = STRTRAN(cBuffer, CHR(0), “”)
? cBuffer
? GETENV(”USERNAME”)

Related posts:

  1. Reduce Memory Usage in VFP
  2. Create INI file with VFP
Leave a Reply







Trek Pay - Terbukti sudah membayar 5 Dollar

Usaha modal kecil!

Modern Bedroom Furniture

Click Here to Advertise on My Blog

Add to Technorati Favorites

blogarama - the blog directory