怎样用api函数登录winnt.txt

来自「VB技巧问答10000例 VB技巧问答10000例」· 文本 代码 · 共 12 行

TXT
12
字号
使 用 LogonUser函 数 
    BOOL LogonUser( 
     LPTSTR lpszUsername, // string that specifies the user name 
     LPTSTR lpszDomain, // string that specifies the domain or 
     // server 
     LPTSTR lpszPassword, // string that specifies the password 
     DWORD dwLogonType, // specifies the type of logon operation 
     DWORD dwLogonProvider, // specifies the logon provider 
     PHANDLE phToken // pointer to variable to receive token 
     // handle 
    ); 
<END>    

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?