Windows2003-3790/windows/appcompat/shims/general/fusapi.h
2020-09-30 16:53:55 +02:00

42 lines
1.2 KiB
C++

// --------------------------------------------------------------------------
// Module Name: FUSAPI.h
//
// Copyright (c) 2000, Microsoft Corporation
//
// Class to manage communication with the BAM server for shims.
//
// History: 2000-11-03 vtan created
// --------------------------------------------------------------------------
#ifndef _FUSAPI_
#define _FUSAPI_
// --------------------------------------------------------------------------
// CFUSAPI
//
// Purpose: Class that knows how to communicate with the BAM server.
//
// History: 2000-11-03 vtan created
// --------------------------------------------------------------------------
class CFUSAPI
{
private:
CFUSAPI (void);
public:
CFUSAPI (const WCHAR *pszImageName);
~CFUSAPI (void);
bool IsRunning (void);
bool TerminatedFirstInstance (void);
void RegisterBadApplication (BAM_TYPE bamType);
private:
void DWORDToString (DWORD dwNumber, WCHAR *pszString);
private:
HANDLE _hPort;
WCHAR* _pszImageName;
};
#endif /* _FUSAPI_ */