forked from OCSInventory-NG/WindowsAgent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCapExecute.h
39 lines (30 loc) · 1.3 KB
/
CapExecute.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//====================================================================================
// Open Computer and Software Inventory Next Generation
// Copyright (C) 2010 OCS Inventory NG Team. All rights reserved.
// Web: http://www.ocsinventory-ng.org
// This code is open source and may be copied and modified as long as the source
// code is always made freely available.
// Please refer to the General Public Licence V2 http://www.gnu.org/ or Licence.txt
//====================================================================================
// CapExecute.h: interface for the CCapExecute class.
//
//////////////////////////////////////////////////////////////////////
#ifndef _CAPEXECUTE_H_INCLUDED_
#define _CAPEXECUTE_H_INCLUDED_
#pragma once
#include "CapacityAbstract.h"
class CCapExecute : public CCapacityAbstract
{
public:
CCapExecute(void);
~CCapExecute(void);
// Execute plugins files find into plugins directory
BOOL executePlugins( LPCTSTR lpstrPath = NULL);
protected:
// Execute VBS scripts find into plugins directory if bScript = TRUE
// Execute executable files find into plugins directory if bScript = FALSE
BOOL execute( BOOL bScript, LPCTSTR lpstrPath = NULL);
// Encode file to UTF-8
BOOL encodeFileToUTF8( LPCTSTR lpstrFile);
};
#endif // _CAPSCRIPT_H_INCLUDED_