求高手帮忙看看CreateProcessWithLogonW在VB下如何声明函数!
zolen 2005-07-03 02:36:08 BOOL CreateProcessWithLogonW(
LPCWSTR lpUsername,
LPCWSTR lpDomain,
LPCWSTR lpPassword,
DWORD dwLogonFlags,
LPCWSTR lpApplicationName,
LPWSTR lpCommandLine,
DWORD dwCreationFlags,
LPVOID lpEnvironment,
LPCWSTR lpCurrentDirectory,
LPSTARTUPINFOW lpStartupInfo,
LPPROCESS_INFORMATION lpProcessInfo
);
这个函数在VB下如何声明?
目的就是可以切换用户身份运行某些程序,前提当然是知道用户名和密码了。
哪位高手帮忙指点一下。