CASA/LoginCapture/windows/lcredmgr.h
2005-10-11 19:51:00 +00:00

94 lines
2.2 KiB
C

/***********************************************************************
* File: lcredmgr.h
* Author: Todd Throne (tthrone@novell.com)
*
* Abstract: Implements the credential manager.
*
* Copyright (C) 2004 Novell, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
***********************************************************************/
// Insert your headers here
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#define UNICODE
#define _UNICODE
#include <windows.h>
#ifdef _DEBUG
#include <stdio.h>
#include <stdarg.h>
#endif
//#include <initguid.h>
//#include <commctrl.h>
//#include <objbase.h>
#include <ntsecapi.h>
#include <winwlx.h>
#include "micasa.h"
#include "micasa_mgmd.h"
#include "npapi.h"
//===[ Function prototypes ]===============================================
typedef
int
(STDAPICALLTYPE *PSETCREDENTIAL)(
unsigned long ssFlags, // IN
SSCS_SECRET_ID_T * appSecretID, // IN
SSCS_SECRET_ID_T * sharedSecretID, // Optional IN
int credentialType, // IN
void * credential, // IN
SSCS_EXT_T * ext // Reserved
);
typedef
void *
(STDAPICALLTYPE *POPENCACHE)(
SSCS_SECRETSTORE_T * ssid,
unsigned long ssFlags,
SSCS_EXT_T * ext
);
typedef
int
(STDAPICALLTYPE *PCLOSECACHE)(
void * context,
unsigned long ssFlags,
SSCS_EXT_T * ext
);
void
InitLoginExtension(
);
BOOLEAN
InitCASALibrary (
);
void
DebugPrint
(
char *format,
...
);