from .. import api


class sfc(api.ApiHandler):
    """
    Emulates functions from sfc.dll
    """

    name = "sfc"
    apihook = api.ApiHandler.apihook
    impdata = api.ApiHandler.impdata

    def __init__(self, emu):
        super().__init__(emu)
        super().__get_hook_attrs__(self)

    @apihook("SfcIsFileProtected", argc=2)
    def SfcIsFileProtected(self, emu, argv, ctx={}):
        return False

    @apihook("SfcTerminateWatcherThread", argc=0, ordinal=2)
    def SfcTerminateWatcherThread(self, emu, argv, ctx={}):
        return 0
