Module: WinCred::Native

Extended by:
Fiddle::Importer
Includes:
Fiddle::Win32Types
Defined in:
lib/wincred/native.rb

Overview

This module is in charge of interacting with the Credential Manager via libffi

Constant Summary collapse

CREDENTIAL_ATTRIBUTEW =
struct(
  [
    'LPWSTR    Keyword',
    'DWORD      Flags',
    'DWORD      ValueSize',
    'LPBYTE     Value',
  ],
)
CREDENTIALW =
struct(
  [
    'DWORD                 Flags',
    'DWORD                 Type',
    'LPWSTR                TargetName',
    'LPWSTR                Comment',

    # https://docs.microsoft.com/en-us/windows/desktop/api/minwinbase/ns-minwinbase-filetime
    'DWORD                  LastWritten_dwLowDateTime',
    'DWORD                  LastWritten_dwHighDateTime',

    'DWORD                  CredentialBlobSize',
    'LPBYTE                 CredentialBlob',
    'DWORD                  Persist',
    'DWORD                  AttributeCount',
    'PCREDENTIAL_ATTRIBUTEW Attributes',
    'LPWSTR                 TargetAlias',
    'LPWSTR                 UserName',
  ],
)
CRED_TYPE_GENERIC =
0x1
CRED_PERSIST_LOCAL_MACHINE =
0x2
FLAGS_NONE =
0x0