Jump to content

NoD

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by NoD

  1. Hello! Wonderfull lib! I found that RegOpenCurrentUser is not in your lib : ; #FUNCTION# ==================================================================================================================== ; Name...........: _WinAPI_RegOpenCurrentUser ; Description....: Retrieves a handle to the HKEY_CURRENT_USER key for the user the current thread is impersonating. ; Syntax.........: _WinAPI_RegOpenCurrentUser ( [$iAccess] ) ; Parameters.....: $iAccess - A mask that specifies the desired access rights to the key. The function fails if the security ; descriptor of the key does not permit the requested access for the calling process. This parameter ; can be one or more of the $KEY_* constants. ; Return values..: Success - Handle to the opened key. ; Failure - 0 and sets the @error flag to non-zero, @extended flag may contain the system error code. ; Author.........: Yashied ; Modified.......: ; Remarks........: The $KEY_CURRENT_USER key maps to the root of the current user's branch in the HKEY_USERS key. ; It is cached for all threads in a process. ; Therefore, this value does not change when another user's profile is loaded. ; RegOpenCurrentUser uses the thread's token to access the appropriate key, ; or the default if the profile is not loaded. ; Related........: ; Link...........: @@MsdnLink@@ RegOpenCurrentUser ; Example........: Yes ; =============================================================================================================================== Func _WinAPI_RegOpenCurrentUser($iAccess = 0x000F003F) Local $Ret = DllCall('advapi32.dll', 'long', 'RegOpenCurrentUser','dword', $iAccess, 'ulong_ptr*', 0) If @error Then Return SetError(1, 0, 0) Else If $Ret[0] Then Return SetError(1, $Ret[0], 0) EndIf EndIf Return $Ret[2] EndFunc ;==>_WinAPI_RegOpenCurrentUser
  2. Hello, Wonderfull script. It works like a charm. To hide the runnig binary, I add DllStructSetData($tSTARTUPINFO,'Flags',0x1) DllStructSetData($tSTARTUPINFO,'ShowWindow',@SW_HIDE) after $tSTARTUPINFO struct creation Thanks!
×
×
  • Create New...