00001
00002
00003
00004
00005 #if ! defined( AFX_APIS_H__C2404C08_2791_41F1_A45E_A62EF7364105__INCLUDED_ )
00006 #define AFX_APIS_H__C2404C08_2791_41F1_A45E_A62EF7364105__INCLUDED_
00007 #pragma once
00008
00009
00017
00018
00019 namespace fksec {
00020
00021
00022
00024 void GetFileSecurity( const TCHAR *filename, SECURITY_INFORMATION whichParts, sd &sd );
00025
00027 void SetFileSecurity( const TCHAR *filename, SECURITY_INFORMATION whichParts, const sd &sd );
00028
00030 void GetKernelObjectSecurity( HANDLE h, SECURITY_INFORMATION whichParts, sd &sd );
00031
00033 void SetKernelObjectSecurity( HANDLE h, SECURITY_INFORMATION whichParts, const sd &sd );
00034
00036 void GetUserObjectSecurity( HANDLE h, SECURITY_INFORMATION whichParts, sd &sd );
00037
00039 void SetUserObjectSecurity( HANDLE h, SECURITY_INFORMATION whichParts, const sd &sd );
00040
00042 void QueryServiceObjectSecurity( SC_HANDLE hSvc, SECURITY_INFORMATION whichParts, sd &sd );
00043
00045 void SetServiceObjectSecurity( SC_HANDLE hSvc, SECURITY_INFORMATION whichParts, const sd &sd );
00046
00048 void RegGetKeySecurity( HKEY hk, SECURITY_INFORMATION whichParts, sd &sd );
00049
00051 void RegSetKeySecurity( HKEY hk, SECURITY_INFORMATION whichParts, const sd &sd );
00052
00054 void AdsGetObjectSecurity ( const TCHAR *AdsPath, SECURITY_INFORMATION whichParts, sd &sd ) ;
00055
00057 void AdsSetObjectSecurity ( const TCHAR *AdsPath, SECURITY_INFORMATION whichParts, const sd &sd ) ;
00058
00059 }
00060
00061
00062
00063 #endif // ! defined( AFX_APIS_H__C2404C08_2791_41F1_A45E_A62EF7364105__INCLUDED_ )