Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
728 B

  1. #include "master.h"
  2. #include "keytab.h"
  3. #define CHECK( what, fieldname ) { \
  4. printf( "\n" #what " " #fieldname ".\n" ); \
  5. printf( "sizeof " #what " is %d.\n", sizeof( what ) ); \
  6. printf( "sizeof k." #fieldname " is %d.\n", sizeof( k.fieldname ) ); \
  7. printf( "sizeof pk->" #fieldname " is %d.\n", sizeof( pk->fieldname ) );\
  8. }
  9. int __cdecl
  10. main( int argc, PCHAR argv[] ) {
  11. KTENT k;
  12. PKTENT pk;
  13. pk = &k;
  14. CHECK( K5_INT32, keySize );
  15. CHECK( K5_INT16, cEntries );
  16. CHECK( K5_INT16, szRealm );
  17. CHECK( K5_INT32, PrincType );
  18. CHECK( K5_TIMESTAMP, TimeStamp );
  19. CHECK( K5_INT16, KeyType );
  20. CHECK( K5_INT16, KeyLength );
  21. return 0;
  22. }