Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GINA Replacement Help

1 view
Skip to first unread message

Charles Taylor

unread,
Jun 8, 2001, 8:16:01 PM6/8/01
to
I'm trying to write a gina stub that disables profiles, but my understanding
of C/C++/VC++ is weak. Could someone PLEASE explain to me just exactly how I
am supposed to hard code a value into the pszProfile variable in the
pProfile structure???

Here's the code, right off the GINASTUB example...

int WINAPI WlxLoggedOutSAS(
PVOID pWlxContext,
DWORD dwSasType,
PLUID pAuthenticationId,
PSID pLogonSid,
PDWORD pdwOptions,
PHANDLE phToken,
PWLX_MPR_NOTIFY_INFO pNprNotifyInfo,
PVOID *pProfile) {

int returnValue;

returnValue = GWlxLoggedOutSAS(
pWlxContext,
dwSasType,
pAuthenticationId,
pLogonSid,
pdwOptions,
phToken,
pNprNotifyInfo,
pProfile);

return returnValue;
}

Every time this is called I want to replace the path pointed to by the PWSTR
pszProfile (stored in (???) pProfile) by a hard-coded path (e.g.
"C:\\PROFILE"). Or even better, to read it out of a registry key...

How would I go about doing all this? Usually I can handle such little
things, but I can't seem to wrap my brain around all these pointers...

Thanks in advance for the help!

Charles Taylor
sirct...@ufl.edu

(Don't forget to drop NOSPAM from my e-mail address if you need to contact
me that way)

0 new messages