SEC_WINNT_AUTH_IDENTITY 这个sdk 要加入哪个pas?(100分)

  • 主题发起人 cqyyb2000
  • 开始时间
C

cqyyb2000

Unregistered / Unconfirmed
GUEST, unregistred user!
用d5实现vc下面的如下代码<br>SEC_WINNT_AUTH_IDENTITY SecAuthIdentity;<br>&nbsp;SecAuthIdentity.User = (unsigned char*)L"rcc";<br>&nbsp;SecAuthIdentity.UserLength = (ULONG)wcslen(L"rcc");<br>&nbsp;SecAuthIdentity.Domain = (unsigned char*)L"credit-wz";<br>&nbsp;SecAuthIdentity.DomainLength = (ULONG)wcslen(L"credit-wz");<br>&nbsp;SecAuthIdentity.Password = (unsigned char*)L"ccsscc";<br>&nbsp;SecAuthIdentity.PasswordLength = (ULONG)wcslen(L"ccsscc");<br>&nbsp;SecAuthIdentity.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE
 
1.类型定义<br>&nbsp; _SEC_WINNT_AUTH_IDENTITY_A = record<br>&nbsp; &nbsp; User: PChar;<br>&nbsp; &nbsp; UserLength: Cardinal;<br>&nbsp; &nbsp; Domain: PChar;<br>&nbsp; &nbsp; DomainLength: Cardinal;<br>&nbsp; &nbsp; Password: PChar;<br>&nbsp; &nbsp; PasswordLength: Cardinal;<br>&nbsp; &nbsp; Flags: Cardinal;<br>&nbsp; end;<br>&nbsp; {$EXTERNALSYM _SEC_WINNT_AUTH_IDENTITY_A}<br>&nbsp; SEC_WINNT_AUTH_IDENTITY_A = _SEC_WINNT_AUTH_IDENTITY_A;<br>&nbsp; SEC_WINNT_AUTH_IDENTITY=SEC_WINNT_AUTH_IDENTITY_A;<br>2.常量定义<br>SEC_WINNT_AUTH_IDENTITY_UNICODE=$02;<br><br>明白了吗?ok!
 
[?]还不行吗??????????????
 
rpc.pas,但Delphi本身没有带。照ligia的做就可以了,<br>或者去下一个Win32API的pascal声明:<br>http://service.lonetear.com/delphi/dispdoc.asp?id=152
 
SEC_WINNT_AUTH_IDENTITY_A = _SEC_WINNT_AUTH_IDENTITY_A;<br>&nbsp;SEC_WINNT_AUTH_IDENTITY=SEC_WINNT_AUTH_IDENTITY_A;<br><br>这两句通不过???
 
&nbsp;SEC_WINNT_AUTH_IDENTITY= record<br>&nbsp; &nbsp; User: PChar;<br>&nbsp; &nbsp; UserLength: Cardinal;<br>&nbsp; &nbsp; Domain: PChar;<br>&nbsp; &nbsp; DomainLength: Cardinal;<br>&nbsp; &nbsp; Password: PChar;<br>&nbsp; &nbsp; PasswordLength: Cardinal;<br>&nbsp; &nbsp; Flags: Cardinal;<br>&nbsp; end;<br>直接用
 
顶部