Announcement

Collapse
No announcement yet.

Security Infos auflesen

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Security Infos auflesen

    Hallo

    Bin neu im Forum und auch neu in der Win32API Programmierung. Kennt jemand eine Lösung zu meinem Problem. Ich übergebe einer Funktion eine Var pBuffer vom Typ PVOID, das Ergebnis ist lauf MS [out] Pointer to a variable that receives a pointer to a structure containing the requested information. The type of structure depends on the value of the InformationClass parameter. Wie geht das ?<PRE>
    Var
    vPolicyHandle: TLsaHandle;
    vLsaStatus : NTSTATUS;
    vSystemName: TLsaUnicodeString;
    pBuffer : PVOID;
    </PRE>
    vLsaStatus:=LsaQueryInformationPolicy(vPolicyHandl e, PolicyDnsDomainInformation, pBuffer );

  • #2
    Habe die Lösung jetzt selber gefunden, muss halt im Forum etwas genauer suchen.

    Ergebnis:
    <PRE>
    Var
    vPolicyHandle: TLsaHandle;
    vLsaStatus : NTSTATUS;
    vSystemName: TLsaUnicodeString;
    pBuffer : PPOLICY_DNS_DOMAIN_INFO;
    </PRE>
    vLsaStatus:=LsaQueryInformationPolicy(vPolicyHandl e, PolicyDnsDomainInformation, Pointer(pBuffer) )

    Comment

    Working...
    X