Article View: borland.public.cppbuilder.nativeapi
Article #13022Windows Profiles
From: Charles Page
Date: Thu, 30 Oct 2003 00:02
Date: Thu, 30 Oct 2003 00:02
16 lines
1633 bytes
1633 bytes
I am try to programmatically create the default profile and manage profiles. I have run into some problems. GetUserProfileDirectory function requires a token that somehow needs the user to logon. What if the user is disabled, etc? Windows still allows one to delete the profile of disabled user. Does anyone know who to get a token for a user without logging the user on or starting a process as the user? Also, where is the registry are the values one copies to create a profile? I look under HKEY_USERS and there are definitely not as many SIDs listed are there are local users that have logged in and have current accounts on the computer. Thanks, Charlie
Technical Details
Message-ID:
<3fa0551d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f0f40fd7b506c3d0,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-29 16:09:25 PST Date: Wed, 29 Oct 2003 19:02:43 -0500 From: Charles Page <lissom@snet.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Windows Profiles Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 64.252.106.212 Message-ID: <3fa0551d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067472157 64.252.106.212 (29 Oct 2003 16:02:37 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail