PageRenderTime 106ms CodeModel.GetById 40ms app.highlight 14ms RepoModel.GetById 46ms app.codeStats 0ms

/admin/win/nsi/nsis_processes/src/processes.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 49 lines | 23 code | 20 blank | 6 comment | 0 complexity | 08784918d9caadd0867b41933d6e69b0 MD5 | raw file
 1#pragma once

 2
 3
 4
 5
 6
 7//-------------------------------------------------------------------------------------------
 8// PSAPI function pointers
 9typedef BOOL	(WINAPI *lpfEnumProcesses)			( DWORD *, DWORD, DWORD * );
10typedef BOOL	(WINAPI *lpfEnumProcessModules)		( HANDLE, HMODULE *, DWORD, LPDWORD );
11typedef DWORD	(WINAPI *lpfGetModuleBaseName)		( HANDLE, HMODULE, LPTSTR, DWORD );
12typedef BOOL	(WINAPI *lpfEnumDeviceDrivers)		( LPVOID *, DWORD, LPDWORD );
13typedef BOOL	(WINAPI *lpfGetDeviceDriverBaseName)( LPVOID, LPTSTR, DWORD );
14
15
16
17
18
19
20//-------------------------------------------------------------------------------------------
21// Internal use routines
22bool	LoadPSAPIRoutines( void );
23bool	FreePSAPIRoutines( void );
24
25bool	FindProc( char *szProcess );
26bool	KillProc( char *szProcess );
27
28bool	FindDev( char *szDriverName );
29
30
31
32
33
34//-------------------------------------------------------------------------------------------
35// Exported routines
36extern "C" __declspec(dllexport) void	FindProcess( HWND		hwndParent, 
37													 int		string_size,
38													 char		*variables, 
39													 stack_t	**stacktop );
40
41extern "C" __declspec(dllexport) void	KillProcess( HWND		hwndParent, 
42													 int		string_size,
43													 char		*variables, 
44													 stack_t	**stacktop );
45
46extern "C" __declspec(dllexport) void	FindDevice(  HWND		hwndParent, 
47													 int		string_size,
48													 char		*variables, 
49													 stack_t	**stacktop );