Exp=z
@p1='Ҫ
@c1=
@p2=
@c2=
@va=temp_a.value
@vb=temp_b.value
@vc=temp_c.value
@vd=temp_d.value
@end

#:CheckKey
#ĿģǷڶӦļ
#ؽ
#ؼ٣ʾδҵӦļδעע󣬷,ʾڶӦļ
def  CheckKey():
  #//칤ɵļܺļܱʽ
  #//бܵıʽΪ@exp

  global E_Hkey,E_Lkey,KeyPath,LastError
  ret=0
  InArray =c_ubyte*16
  InBuf=InArray( @ak100, @ak101, @ak102, @ak103, @ak104, @ak105, @ak106, @ak107, @ak108, @ak109,  @ak110, @ak111,  @ak112,  @ak113, @ak114, @ak115)
  OutArray=c_ubyte(16)
  LastError = 0 # ʼΪ޴

  #//ܺıʽ͵ннܲ¼ܣʹӦȨţעת
  #//Ȼ󷵻ؼܺݣüܺüӦ
  #//ֻбӦȨŽתݲܱӦļܲ
  LastError = E_Dec_6(E_Hkey, E_Lkey, InBuf, pointer(OutArray), KeyPath)
  if LastError != 0 :
    return 0
  #/////////////////////////////////////////////////////////////////////////////////////////////////////
  #
  a=c_ubyte(randint(0, 255))
  b=c_ubyte(randint(0, 255))
  c=c_ubyte(randint(0, 255))
  d=c_ubyte(randint(0, 255))
  
  temp_a = a
  temp_b = b
  temp_c = c
  temp_d = d
  #͵ڽ㣬
  if (windll.my3l_ex.CalculateEx_2(pointer(OutArray), byref(a), byref(b), byref(c), byref(d), KeyPath, 16, 2000) != 0):
    return 0

  ############ 
  @1


  #ͬڶӦ򣬲ڶӦļ
  if (a == temp_a) and (b == temp_b) and (c == temp_c) and (d == temp_d) :
    return 1
  else:
      return 0
