Can anyone help me with the following problem :
I'm just trying to have the API call LogonUserA run correctly.
Each run ends up with the following message :
"The instruction at 0x77.. referenced memory at 0xcccc. The memory
could not be written.
I'm using VC++ 6.0 on WIN200.
I've tried both way of linking with advapi32.dll, I mean at load time
and dynamically at run time, both crash.
A call to GetUserNameA just before works fine.
GetUserNameA ((LPTSTR)UserNa me, &lzSize);
Just after I have the following :
UserValid = LogonUserA((LPT STR)UserName,
lpszDomain,(LPT STR)UserPasswd, dwLogonType,dwL ogonProvider, phToken
);
Has anyone experienced a similar problem ? Any idea or suggestion
welcome
de******@misys. com