class_docstr: Based on LockFile / UnlockFile from win32 API
  https://msdn.microsoft.com/en-us/library/windows/desktop/aa365202(v=vs.85).aspx
class_docstr_tok: ["Based","on","LockFile","\/","UnlockFile","from","win32","API","https",":","\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/aa365202","(","v=vs.85",")",".aspx"]
code: def __init__(self, path):
      super(_WinFileLock, self).__init__(path)
      self._lock = None
      try:
          with open(path, "w") as lock_file:
              lock_file.write(" " * self._LOCKED_BYTES_NUM)
      except IOError as e:
          if e.errno != errno.EACCES or not os.path.isfile(path):
              raise
  
imports: import errno
  import logging
  import os
  import sys
  import library.python.windows
label_desc: Use image node_id 1 to create a new _WinFileLock object from inherited base classes: AbstractFileLock with example: obj = _WinFileLock(path)