Differences in Platforms

When developing applications for MS-DOS, you must feed in the password and credential information to RpcBindingSetAuthInfo manually. This is optional for a 16-bit or 32-bit Windows platform which, by default, uses the credentials for the currently logged-in user. If a Windows 95, Windows For Workgroups, or Windows 3.x workstation is not part of a domain, the user will be prompted for the password.

To manually pass credentials to RpcBindingSetAuthInfo, create a pointer to the SEC_WINNT_AUTH_IDENTITY structure and pass in the credential information under the AuthIdentity parameter. Note that this structure must remain valid for the lifetime of the binding handle.