Path: blob/main/crypto/krb5/src/windows/installer/wix/custom/custom.h
34923 views
/*12Copyright 2004 by the Massachusetts Institute of Technology34All rights reserved.56Permission to use, copy, modify, and distribute this software and its7documentation for any purpose and without fee is hereby granted,8provided that the above copyright notice appear in all copies and that9both that copyright notice and this permission notice appear in10supporting documentation, and that the name of the Massachusetts11Institute of Technology (M.I.T.) not be used in advertising or publicity12pertaining to distribution of the software without specific, written13prior permission.1415M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING16ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL17M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR18ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,19WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,20ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS21SOFTWARE.2223*/2425/* custom.h26*27* Declarations for Kerberos for Windows MSI setup tools28*29* rcsid : $Id$30*/3132#pragma once3334#include<windows.h>35#include<setupapi.h>36#include<msiquery.h>37#include<string.h>38#include<tchar.h>39#include<tlhelp32.h>4041#define MSIDLLEXPORT UINT __stdcall4243#define CHECK(x) if((x)) goto _cleanup4445#define CHECKX(x,y) if(!(x)) { msiErr = (y); goto _cleanup; }4647#define CHECK2(x,y) if((x)) { msiErr = (y); goto _cleanup; }4849#define STR_KEY_ORDER _T("SYSTEM\\CurrentControlSet\\Control\\NetworkProvider\\Order")50#define STR_VAL_ORDER _T("ProviderOrder")5152#define STR_SERVICE _T("MIT Kerberos")53#define STR_SERVICE_LEN 12545556void ShowMsiError(MSIHANDLE, DWORD, DWORD);57UINT SetAllowTgtSessionKey( MSIHANDLE hInstall, BOOL pInstall );58UINT KillRunningProcessesWorker( MSIHANDLE hInstall, BOOL bKill );5960/* exported */61MSIDLLEXPORT AbortMsiImmediate( MSIHANDLE );62MSIDLLEXPORT UninstallNsisInstallation( MSIHANDLE hInstall );63MSIDLLEXPORT RevertAllowTgtSessionKey( MSIHANDLE hInstall );64MSIDLLEXPORT EnableAllowTgtSessionKey( MSIHANDLE hInstall );65MSIDLLEXPORT KillRunningProcesses( MSIHANDLE hInstall ) ;66MSIDLLEXPORT ListRunningProcesses( MSIHANDLE hInstall );67MSIDLLEXPORT InstallNetProvider( MSIHANDLE );68MSIDLLEXPORT UninstallNetProvider ( MSIHANDLE );6970#define INP_ERR_PRESENT 171#define INP_ERR_ADDED 272#define INP_ERR_ABSENT 373#define INP_ERR_REMOVED 47475/* Custom errors */76#define ERR_CUSTACTDATA 400177#define ERR_NSS_FAILED 400378#define ERR_ABORT 400479#define ERR_PROC_LIST 400680#define ERR_NPI_FAILED 400781#define ERR_NSS_FAILED_CP 4008828384