hwndParent
-
I am just checking out sample code on MSDN as see below, i have created a basic MFC app using the wizard and copying the code below into it and made a few changes for it to run. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/example\_\_getting\_wmi\_data\_from\_the\_local\_computer.asp in the code "CredUIPromptForCredentials" is called but a dialog doesnt pop up when run. there is a line of code "cui.hwndParent = NULL;" should that not point to a parent window, how do i point it to a parent window, is it using HWND somehow? thx
-
I am just checking out sample code on MSDN as see below, i have created a basic MFC app using the wizard and copying the code below into it and made a few changes for it to run. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/example\_\_getting\_wmi\_data\_from\_the\_local\_computer.asp in the code "CredUIPromptForCredentials" is called but a dialog doesnt pop up when run. there is a line of code "cui.hwndParent = NULL;" should that not point to a parent window, how do i point it to a parent window, is it using HWND somehow? thx
Can you give a specific of code form your project. If you want to assign the parent window, please assign the handle of the main window. But I can be more helpful if you can give sepcific of your code cheers, Super ------------------------------------------ Too much of good is bad,mix some evil in it