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.
110 lines
1.2 KiB
110 lines
1.2 KiB
/*
|
|
* PerSeat.h
|
|
*
|
|
* Author: BreenH
|
|
*
|
|
* The Per-Seat licensing policy.
|
|
*/
|
|
|
|
#ifndef __LC_PERSEAT_H__
|
|
#define __LC_PERSEAT_H__
|
|
|
|
/*
|
|
* Includes
|
|
*/
|
|
|
|
#include "policy.h"
|
|
|
|
/*
|
|
* Constants
|
|
*/
|
|
|
|
#define LC_POLICY_PS_DEFAULT_LICENSE_SIZE 8192
|
|
|
|
/*
|
|
* Class Definition
|
|
*/
|
|
|
|
class CPerSeatPolicy : public CPolicy
|
|
{
|
|
private:
|
|
|
|
/*
|
|
* Licensing Functions
|
|
*/
|
|
NTSTATUS
|
|
MarkLicense(
|
|
CSession& Session
|
|
);
|
|
|
|
public:
|
|
|
|
/*
|
|
* Creation Functions
|
|
*/
|
|
|
|
CPerSeatPolicy(
|
|
);
|
|
|
|
~CPerSeatPolicy(
|
|
);
|
|
|
|
/*
|
|
* Administrative Functions
|
|
*/
|
|
|
|
ULONG
|
|
GetFlags(
|
|
);
|
|
|
|
ULONG
|
|
GetId(
|
|
);
|
|
|
|
NTSTATUS
|
|
GetInformation(
|
|
LPLCPOLICYINFOGENERIC lpPolicyInfo
|
|
);
|
|
|
|
/*
|
|
* Loading and Activation Functions
|
|
*/
|
|
|
|
NTSTATUS
|
|
Activate(
|
|
BOOL fStartup,
|
|
ULONG *pulAlternatePolicy
|
|
);
|
|
|
|
NTSTATUS
|
|
Deactivate(
|
|
BOOL fShutdown
|
|
);
|
|
|
|
/*
|
|
* Licensing Functions
|
|
*/
|
|
|
|
NTSTATUS
|
|
Connect(
|
|
CSession& pSession,
|
|
UINT32 &dwClientError
|
|
);
|
|
|
|
NTSTATUS
|
|
Logon(
|
|
CSession& Session
|
|
);
|
|
|
|
|
|
NTSTATUS
|
|
Reconnect(
|
|
CSession& Session,
|
|
CSession& TemporarySession
|
|
);
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|