![]() |
| |||||||
| Notices |
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| There is a problem between SID and user's name. When you change the user name in the 'User and User Group' console panel, if not logoff or restart, the OS will make mistakes. For example, examine the property of 'My Computer', it would prompt that pidl errors. I want to get the user's SID by LookupAccountName(), it prompt that no mapping between the user' name and SID. I try to use OpenProcessToken and GetTokenInformation get the current user's SID, and successfully. But if the process run as by administrator, this operation would get the SID of administrator but not the current user's. Is there another function that get the SID of the current user in this condition? Thank you. | Guest
Posts: n/a
|
|
![]() |
| Tags |
| None |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VISTA SECURITY | R. A. Pazderski | Windows Vista Security | 32 | 02-02-2008 12:57 PM |
| Why doesn't this mapping script work in Vista? | mark1210 | Windows Vista Networking & Sharing | 5 | 04-05-2007 06:21 PM |
| Mapping a netowrk drive with Vista Home | Christine | Windows Vista Networking & Sharing | 2 | 03-13-2007 09:15 PM |
| Difficulty Mapping Drives under Vista | Neil P | Windows Vista Networking & Sharing | 1 | 03-04-2007 02:00 AM |
| security in windows vista | Dragoncraft | Windows Vista Security | 2 | 07-10-2006 03:07 AM |