Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rekire committed Apr 9, 2024
1 parent 98a4954 commit f801951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autologin_windows/lib/src/ffi.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:ffi';

//import 'package:autologin_platform_interface/autologin_platform_interface.dart';
import 'package:autologin_platform_interface/src/credential.dart';
import 'package:autologin_platform_interface/autologin_platform_interface.dart';
import 'package:ffi/ffi.dart';

// Documentation from https://learn.microsoft.com/windows/win32/api/wincred/ns-wincred-credentialw
Expand Down Expand Up @@ -193,6 +192,7 @@ bool credWrite(String username, String password, String appName) {
/// The credential set used is the one associated with the logon session of the
/// current token. The token must not have the user's SID disabled.
Credential? credRead(String appName) {
// ignore: omit_local_variable_types
final Pointer<Pointer<WinapiCredential>> retrievedCredential = calloc();
final credRead = DynamicLibrary.open('Advapi32.dll')
.lookupFunction<CredReadNative, CredReadDart>('CredReadW');
Expand Down

0 comments on commit f801951

Please sign in to comment.