|
I need the parent window -which is the main app- to be disabled (like a modal dialog box behaviour) until the new app -update application- will finish its job.
Did you try to hide or minimize the "parent window" instead?
|
|
|
|
|
Yes this way it works but I dont want to minimize the parent window. I need a modal like behaviour.
sdancer75
|
|
|
|
|
Hi Folks,
I have created a sample console app (windows universal) using VS2015. If I call the method QueryDosDevice(), it results into ERROR_ACCESS_DENIED error. I am deploying this app on Windows 10. Interestingly I can call APIs from ntdll. But seems like it gives access denied error if I try to call APIs from kernel32.
Are there are access (perhaps for volume management APIs) restrictions introduced for universal apps? If yes, Is there any way around it?
-- Vikram
|
|
|
|
|
|
I went thr the alternative API's, but seems that they are not available with VS2012. Do we have any alternative legacy API which I can probably use?
|
|
|
|
|
Unfortunately, no. The store app platform is very limited for security reasons.
Perhaps you could explain what you're trying to achieve and someone could suggest a workaround.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Is there any kernel equivalent of this method?
I can see IoVolumeDeviceToDosName(), not sure. if this is correct one.
|
|
|
|
|
Dear Friends,
I have requirement to disable UAC prompt through programmatically. Please anyone help me on this.
Thanks,
S Shanmuga Raja
|
|
|
|
|
No. The UAC prompt is there to protect the owner of the PC.
|
|
|
|
|
That is not possible for the current login session because it would defeat the purpose of UAC.
You can change the setting using the registry but that requires a reboot to become active (see Enable or Disable UAC From the Windows Command Line[^]; it is for the command line but shows the registry settings to be changed).
|
|
|
|
|
whether its possible to assign administrator right to my application though programmatically. So that I can set value 0 or 1 to EnableLUA in registry.
|
|
|
|
|
Assigning administrator rights to an application requires administrative privileges. So while it does not have these, you can't change it. And you can not elevate the privileges of a running process.
You can use a manifest to specify that your application should run elevated, use the "runas" command or start other applications elevated from within your program. But in all these cases there will be a UAC prompt.
UAC is there for a reason. It is a security feature. The user decides which level of security should be used. An application can not bypass these settings.
|
|
|
|
|
l want to ask how l can do the following things in a tab control.
1)That is, for instance: In tab1, when a button is clicked, previous text is wiped and another is written. l had tried but all the texts overlaps and none cleanses off for new texts.
2)How can l erase the content of a tab control when l switch tabs. As in, when tab2 is clicked, contents in tab1 clears off and the things in tab2 only shows.
Thanks.
modified 22-Feb-16 18:19pm.
|
|
|
|
|
1. That means you are doing something wrong. Clearing the text of a windows control is quite straightforward.
2. Do you mean that you want to delete the entire tab, or just erase any text?
|
|
|
|
|
Yes, how l can erase the content(text) in a tab control.
Like, when next button is clicked, text content on the display area of the tab clears and another text is displayed.
Or moreso, when Next button is clicked, another question shows and so on.
Thanks.
|
|
|
|
|
It is impossible to say, since you have not given us any information about what tab control methods you are using, what controls you have on the tab, etc.
|
|
|
|
|
Message Closed
modified 22-Feb-16 17:41pm.
|
|
|
|
|
Then you must be doing something wrong. But, as I said earlier, without more detailed information it is impossible to guess what.
|
|
|
|
|
When you get the TCN_SELCHANGE notification (in a WM_NOTIFY message) you have to clear or hide the contents of the old tab and show the contents of the new tab yourself - the API doesn't help you with it.
|
|
|
|
|
Do you have any idea on how l can show the contents of the new tab as am only using TextOut function and not child windows/controls?
|
|
|
|
|
|
l have gotten a solution. l added the following lines of codes base on msdn WM_SETREDRAW message (Windows)[^]
SendMessage(hWnd,WM_SETREDRAW,(WPARAM)TRUE,0);
RedrawWindow(hWnd,NULL,NULL,RDW_ERASE | RDW_FRAME | RDW_INVALIDATE |RDW_UPDATENOW |RDW_NOCHILDREN );
Thank you all who contributed.
|
|
|
|
|
Hi,
I have a CAsyncSocket which is a member of a CWinThread class. The notifications however m OnSend, OnReceive seem to go the Main Thread.
Do I need a Window or does the thread CWinThread ( a UI thread ) have to have the
CDialog which is using CWinThread have it s m_pMainWnd point to a CDialog to get the
notifications sent to that CWinThread
Thanks
|
|
|
|
|
1. MFC class CWinThread does not have a member of the CAsyncSocket type. Perhaps, you meant that you created a CWinThread derived class which contain a CAsyncSocket derived object?
2. To handle CAsyncSocket notifications you have to override the CAsyncSocket::OnSend, CAsyncSocket::OnReceive and probably other virtual methods. See MSDN article Windows Sockets: Socket Notifications[^]
|
|
|
|
|
CAsyncSocket is a member of my CWinThread
Joe Newcomber informed that if I declared the CAsynsocket on the stack instead of the heap I will get notification thru the main thread
Thanks
|
|
|
|