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.
95 lines
1.1 KiB
95 lines
1.1 KiB
/*
|
|
* Concurrent.h
|
|
*
|
|
* Author: RashmiP
|
|
*
|
|
* The Per User licensing policy.
|
|
*/
|
|
|
|
#ifndef __LC_PerUser_H__
|
|
#define __LC_PerUser_H__
|
|
|
|
/*
|
|
* Includes
|
|
*/
|
|
|
|
#include "policy.h"
|
|
|
|
/*
|
|
* Class Definition
|
|
*/
|
|
|
|
class CPerUserPolicy : public CPolicy
|
|
{
|
|
public:
|
|
|
|
/*
|
|
* Creation Functions
|
|
*/
|
|
|
|
CPerUserPolicy(
|
|
);
|
|
|
|
~CPerUserPolicy(
|
|
);
|
|
|
|
/*
|
|
* 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
|
|
Logon(
|
|
CSession& Session
|
|
);
|
|
|
|
|
|
NTSTATUS
|
|
Reconnect(
|
|
CSession& Session,
|
|
CSession& TemporarySession
|
|
);
|
|
|
|
|
|
/*
|
|
* Private License Functions
|
|
*/
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
#endif
|
|
|