Пример #1
0
 public static extern int CredUIPromptForCredentialsW(ref _CREDUI_INFO creditUR,
                                                      string targetName,
                                                      IntPtr reserved1,
                                                      int iError,
                                                      StringBuilder userName,
                                                      int maxUserName,
                                                      StringBuilder password,
                                                      int maxPassword,
                                                      [MarshalAs(UnmanagedType.Bool)] ref bool pfSave,
                                                      int flags);
Пример #2
0
 public static extern uint CredUIPromptForWindowsCredentials(
     ref _CREDUI_INFO notUsedHere,
     int authError,
     ref uint authPackage,
     IntPtr InAuthBuffer,
     uint InAuthBufferSize,
     out IntPtr refOutAuthBuffer,
     out uint refOutAuthBufferSize,
     ref bool fSave,
     int flags);