Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1470

VB6 - User SID/Path

$
0
0
I needed a value that was unique to the current logged in user, so what is more unique than the User SID (User Security ID). Using the attached code, I found the SID:
Buffer:
70 70 27 00 00 00 00 00 01 05 00 00 00 00 00 05
15 00 00 00 27 E9 C3 D8 E9 4C AB 9A D3 BA 44 5F
E9 03 00 00
Of the 36 bytes provided, the first 4 are the memory location, the next 16 are common to all User SID's, and the last 16 are 4 long values that are unique to each user when combined.

J.A. Coutts
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1470

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>