Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have a written a small test program in VC6 which reads a couple of records from a Microsoft access database (mdb or accdb) using ODBC every minute. The database is on the server.

My setup:
2 PCs running my Test program on Windows 7
1 PC running Windows Server 2008

After 10 hours (default Kerberos lifetime) both programs receive a network read error.

I know how to change the lifetime of the Kerberos ticket on the server, but this is a global change.

I want to programmatically renew (or change?) the lifetime of the security ticket from and for my VC6 test program?

I believe I need to use AcquireCredentialsHandle() and InitializeSecurityContext(), but, after many days of research and trials, I have not found any suitable examples.:confused:

Any links or code snippets would be very much appreciated.

Thanks
Posted
Updated 12-Oct-10 5:53am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900