Questions tagged [credui]
9 questions
4
votes
1 answer
Windows 8 Credential Provider Domain Users
I have been having issues trying to get domain users to authenticate with my custom credential provider. From the Microsoft sample there is a _fIsLocalUser variable which is checked in CSampleCredential::GetSerialization. This is normally true for…

Mark.A
- 41
- 4
2
votes
0 answers
How to populate CredUIPromptForWindowsCredentials() username field?
Basically, all I'm interested in is to grab the password field in plain text from the data returned, to validate it later on in code. Currently, I'm using CREDUIWIN_GENERIC, but I hate that the user can mess with the username field, so I guess…

Pyhoma
- 21
- 2
0
votes
3 answers
DefaultNetworkCredentials has null values. Need to prompt user... how?
Under certain circumstances my desktop app using SharePoint web services ends up with DefaultNetworkCredentials having null values, and so the call fails. I need to then obtain the users credentials, but I haven't found a straightfoward way to do…

Steve
- 1,065
- 15
- 34
0
votes
0 answers
How to use CredUICmdLinePromptForCredentials?
I was tried for writing a application that use a function that nobody uses(CredUICmdLinePromptForCredentials). But the result is wrong, the user and pass variable is output as hex values.
This is my code:
#include
#include…

winapiadmin
- 13
- 1
- 7
0
votes
0 answers
How can I run the process as a different user while using CredUIPromptForCredentials
I did find this but can't figure out how to run the process as that user if the return code is NO ERROR
public bool PromptForPassword()
{
// Setup the flags and variables
StringBuilder userPassword = new StringBuilder(),…

software is fun
- 7,286
- 18
- 71
- 129
0
votes
1 answer
JNA Java CredUIPromptForWindowsCredentialsW
I'm trying to convert this function to JNA:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package…
0
votes
1 answer
.Net WebApp: Create a Form Signature Class/Methods
I have scoured the web looking for bits and pieces of a more comprehensive solution. I have been unsuccessful in my efforts, so I send up a call for help.
The problem:
I have a .Net/C# WebApp that uses windows integrated authentication. The…

Phil S.
- 1
0
votes
3 answers
CredWrite returns Win32 error code 2 (ERROR_INVALID_FUNCTION) "Incorrect function."
i'm trying to call CredWrite, but it is returning ERROR_INVALID_FUNCTION. i can call CredRead to fetch credentials out of the password store, and i can store new credentials by using CredUIPromptForCredentials.
But i cannot figure out how to get…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
0
votes
1 answer
Win32: CredUIConfirmCredentials behaves unexpectedly
I'm using CredUIConfirmCredentials in combination with
CredUIPromptForCredentials.
I set the EXPECT_CONFIRMATION, and when the credentials are first provided by
the user the call to CredUIConfirmCredentials returns NO_ERROR as expected.
However,…

Ian Boyd
- 246,734
- 253
- 869
- 1,219