Click here to Skip to main content
11,637,176 members (70,617 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VC6 MFC VC10.0
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 | :confused:

Any links or code snippets would be very much appreciated.

Posted 12-Oct-10 5:28am
Edited 12-Oct-10 5:53am

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

  Print Answers RSS
0 stibee 313
1 295
2 OriginalGriff 295
3 himanshu agarwal 184
4 Sergey Alexandrovich Kryukov 154
0 OriginalGriff 9,031
1 Sergey Alexandrovich Kryukov 8,513
2 Mika Wendelius 6,922
3 F-ES Sitecore 2,388
4 Suvendu Shekhar Giri 2,320

Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 12 Oct 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100