RasSetCustomAuthData is writting corrupted data in rasphone.pbk
-
Hi, I am using RasSetCustomAuthData API to set my custom auth info before calling RasDial API. here is the code piece: int nError = ::RasSetCustomAuthData( myphonebook, myphonebookentry, (BYTE *)&myCustomAuthData, myCustomAuthData.dwSize ); Here value of myCustomAuthData.dwSize is 2708 . and the size of myCustomAuthData stracture is also 2708. but after calling this function is writting around 5k of data in the .pbk file. After calling this RasSetCustomAuthdata() api the .pbk file is having entry some thing like this. CustomAuthData=31444243FFFFFFFF940A0000940A000007000000A800000008000000430054000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 CustomAuthData=0000000000000000000000000000000000000000000000000000000000000