winlogon notify problem

Forum Windows 2000/NT : Windows 2000/NT General Discussion - winlogon notify problem

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.win2000.security (More info?)

 

Hallo,

I’m writing a Winlogon/Notify packet. I have therefore written a dll and
made the necessaries registry entries. The communication between winlogon.exe
and my dll is ok.

I’m unfortunalty facing a curious problem trying to work with the member
variables from the PWLX_NOTIFICATION_INFO object passed from WinLogon.exe

Follow some code lines.

void __stdcall MyLogOn(PWLX_NOTIFICATION_INFO pInfo)
{
if((pInfo!=NULL)&&(pInfo->Domain != NULL))
{
size_t iSize;
char *cDomain = NULL;
iSize = wcstombs(0, pInfo->Domain,0); //I’m getting error here ...
cDomain = new char[iSize];
cDomain[iSize] = NULL;

wcstombs(cDomain, pInfo->Domain, iSize);
}
}


What is wrong with my code?


Thanks in advance for helping.


J.

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > winlogon notify problem
Go to:

There are 1217 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them