def lockFile(self, fileName, byteOffset, length, dokanFileInfo):
        """Lock a file.

        :param fileName: name of file to lock
        :type fileName: ctypes.c_wchar_p
        :param byteOffset: location to start lock
        :type byteOffset: ctypes.c_longlong
        :param length: number of bytes to lock
        :type length: ctypes.c_longlong
        :param dokanFileInfo: used by Dokan
        :type dokanFileInfo: PDOKAN_FILE_INFO
        :return: error code
        :rtype: ctypes.c_int

        """
        return self.operations('lockFile', fileName, byteOffset, length)
Lock a file.

        :param fileName: name of file to lock
        :type fileName: ctypes.c_wchar_p
        :param byteOffset: location to start lock
        :type byteOffset: ctypes.c_longlong
        :param length: number of bytes to lock
        :type length: ctypes.c_longlong
        :param dokanFileInfo: used by Dokan
        :type dokanFileInfo: PDOKAN_FILE_INFO
        :return: error code
        :rtype: ctypes.c_int