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.
|
|
//Copyright (c) 1998 - 1999 Microsoft Corporation
#ifndef __LRWIZAPI_H__
#define __LRWIZAPI_H__
#include "windows.h"
#define LRWIZ_ERROR_BASE 6000
//Return codes for LRWIZAPI
#define LRWIZ_SUCCESS ERROR_SUCCESS
#define LRWIZ_OPERATION_CANCELLED (LRWIZ_ERROR_BASE + 1)
#define LRWIZ_OPERATION_EXIT (LRWIZ_ERROR_BASE + 2)
#define LRWIZ_ERROR_INITIALIZE (LRWIZ_ERROR_BASE + 3)
#define LRWIZ_ERROR_PREREG (LRWIZ_ERROR_BASE + 4)
#define LRWIZ_ERROR_AUTHENTICATE (LRWIZ_ERROR_BASE + 5)
#define LRWIZ_INVALID_REQUEST_TYPE (LRWIZ_ERROR_BASE + 6)
#define LRWIZ_ERROR_ACCEPTING_PKCS7 (LRWIZ_ERROR_BASE + 7)
#define LRWIZ_ERROR_DEPOSITING_CH_CERT (LRWIZ_ERROR_BASE + 8)
#define LRWIZ_ERROR_PROCSSING_CH_DISK (LRWIZ_ERROR_BASE + 9)
#define LRWIZ_ERROR_CREATING_PKCS10 (LRWIZ_ERROR_BASE + 10)
#define ERROR_CONNECTING_TO_RA (LRWIZ_ERROR_BASE + 11)
#define ERROR_INVALID_RA_RESPONSE (LRWIZ_ERROR_BASE + 12)
#define LRWIZ_ERROR_NO_CERT (LRWIZ_ERROR_BASE + 13)
#define ERROR_CONNECTING_TO_CH (LRWIZ_ERROR_BASE + 14)
#define ERROR_INVALID_CH_RESPONSE (LRWIZ_ERROR_BASE + 15)
#define LRWIZ_ERROR_UPGRADE_REQUIRED (LRWIZ_ERROR_BASE + 16)
#define LRWIZ_ERROR_LS_NOT_RUNNING (LRWIZ_ERROR_BASE + 17)
#define LRWIZ_ERROR_CREATE_FAILED (LRWIZ_ERROR_BASE + 18)
#define LRWIZ_ERROR_NTVERSION_LT_5 (LRWIZ_ERROR_BASE + 19)
#define LSERVERSTATUS_UNREGISTER 0 // server not register
#define LSERVERSTATUS_WAITFORPIN 1 // server is waiting for PIN
#define LSERVERSTATUS_REGISTER_INTERNET 2 // server is internet register
#define LSERVERSTATUS_REGISTER_OTHER 3 // server is non-internet register
typedef enum { WIZACTION_REGISTERLS, WIZACTION_DOWNLOADLKP, WIZACTION_UNREGISTERLS, WIZACTION_REREGISTERLS, WIZACTION_DOWNLOADLASTLKP, WIZACTION_SHOWPROPERTIES, WIZACTION_CONTINUEREGISTERLS } WIZACTION;
typedef enum { WIZTYPE_ACTIVATION, WIZTYPE_CAL } WIZTYPE;
typedef enum { CONNECTION_DEFAULT, CONNECTION_INTERNET, CONNECTION_WWW, CONNECTION_PHONE, CONNECTION_FAX // only used for backwards compatibility
} WIZCONNECTION;
#ifdef __cplusplus
extern "C" { #endif
//
// Function return ERROR_SUCCESS or error code,
// pConnectionType returns connection type set
// by user
//
DWORD GetConnectionType( HWND hWndParent, LPCTSTR pszLSName, WIZCONNECTION* pConnectionType );
//
// Function return ERROR_SUCCESS or error code.
// pdwServerStatus returns LSERVERSTATUS_XXXX
//
DWORD IsLicenseServerRegistered( HWND hWndParent, LPCTSTR pszLSName, PDWORD pdwServerStatus );
//
// Function return ERRROR_SUCCESS or error code.
// pbRefresh returns TRUE if LicMgr need to refresh server,
// FALSE otherwise.
//
DWORD StartWizard( HWND hWndParent, WIZACTION WizAction, LPCTSTR pszLSName, PBOOL pbRefresh );
#ifdef __cplusplus
} #endif
#endif
|