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

Re: Auto-Login

0 views
Skip to first unread message

Jim Langston

unread,
Mar 30, 2007, 3:10:04 AM3/30/07
to
"calvin" <xay...@msn.com> wrote in message
news:4FEBC5E8-84D8-4800...@microsoft.com...
> do any one know how can do that programmatically ?
>
> i was current using modified GINA,
> but one of the obstacles is that,
>
> i could get the address of pContext (where the current GINA implemented
> stub is there)
> but i was not able to cast back to PVOID which is used to passed it to
> another program to set the password,
>
> any one have any ideas? ^^

reinterpret_cast<PVOID>( whatever );


Ben Voigt

unread,
Mar 30, 2007, 11:03:58 AM3/30/07
to

"calvin" <xay...@msn.com> wrote in message
news:4FEBC5E8-84D8-4800...@microsoft.com...
> do any one know how can do that programmatically ?
>
> i was current using modified GINA,
> but one of the obstacles is that,
>
> i could get the address of pContext (where the current GINA implemented
> stub is there)
> but i was not able to cast back to PVOID which is used to passed it to
> another program to set the password,

A pointer is only valid in the memory space of one process. If you pass it
to another program it is meaningless. Use a proper IPC method, like named
pipes or sockets, to communcate between your programs and pass the string
through. Never send pointers through.

>
> any one have any ideas? ^^
>

> Thank you
>
> calvin


0 new messages