|
Yes, but why not??
I've read the MSDN up to now, but the only thing i get is this:
It#s not possible to disable Strg+Alt+Del under Win2k. Only way to do this is to write a replacemant of the Windows Gina DLL.
But I don't want to do this. ( To much effort)
I MUST be possible with an other method, because i have seen an application disabling it (i don't remember the app. )
Please let me know if you can help me.
thanks
Bernd
|
|
|
|
|
<quote>Yes, but why not???
... Because Ctrl+Alt+Del is the NT SAS (Secure Attention Sequence) which, due to the C2 security requirements, can only be intercepted by a trusted GINA .DLL -- so, as you point out, the only way to disable it would be to replace the default GINA.DLL with your own and implement WlxLoggedOnSAS() to return WLX_SAS_ACTION_NONE whenever it receives a WLX_SAS_TYPE_CTRL_ALT_DEL notification
|
|
|
|
|
Hi, my problem is, thet i want to write a logon/password dialog for all windows versions.
I have written some code which disables alt+esc and alt+f4 and alt+tab.
I used a low level Keyboard hook to do this.
But I am not able to disable Ctrl+Alt+Del.
I even thought about implementing some Onscreen Keyboard (code from codeproject). But i think this is not so good for a password dialog.
Any suggestions are welcome.
thanks
Bernd
|
|
|
|
|
In NT/2000 use gina dll!
in 95/98 use SystemParametersInfo
hi
|
|
|
|
|
Does anyone know how to launch the "Properties" common dialog box from an application?
I mean the dialog that's produced from the context menu in Explorer (right click -> Properties)
What information is needed in order for the dialog to display the properties of a file, does it just need the path and filename??
Thanks in advance!
Liam O'Hagan
Senior Test Engineer
GLI Australia
www.gli.com.au
|
|
|
|
|
|
Grrrr it doesn't seem to work!
I'm using the following code...
ShellExecute(NULL, "properties", Filename, NULL, NULL, 0);
where Filename is a CString containing the absolute filename i.e. c:\temp\test.txt
I am using it in a handler for double clicking on a listbox containing a bunch of files, similar to the listbox on the right of explorer..
Any ideas anyone? I'm stumped...
Senior Test Engineer
GLI Australia
www.gli.com.au
|
|
|
|
|
Hello,
I got a small linking problem, I get this error:
TabCtrlEx.obj : error LNK2001: unresolved external symbol __imp__PathCompactPathA@12
Debug/FileOpus2.exe : fatal error LNK1120: 1 unresolved externals
I try to use ::PathCompactPath(...);
I do include the "shlwapi.h" file in my project, but still doesn't want to work.
Any tips?
Cheers,
Henrik
|
|
|
|
|
You need to link with shlwapi.lib too, so the linker knows which DLL contains the PathCompactPath() function. On the Link tab of your project settings, add shlwapi.lib.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
Hello, the codegurus around the world.;)
The other way is to add the followings.
#include shlwapi.h
#pragma comment( lib, "shlwapi" )
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
I want to write a actviex control using Directx8 to draw something on it. so I use ATL to builld a full control project, and then select the window only option. Though I get a valid HWND(m_hWnd), I couldn't use this to initialize the D3D device, I always get a NULL LPDIRECT3DDEVICE8
------------------------
yupl@163.net
yupl@eyou.com
PHD YLLY
|
|
|
|
|
Hey ppl
I heard that there was a macro I could use in VC++ that would allow me to use dialog's etc... from a inside a DLL (ie. use in a plugin)
Regards
|
|
|
|
|
I'm using a CAxWindow to host a web browser in a shell namespace. To handle keys like backspace, delete, tab and not pass them on to windows explorer I use the following code to call the IOleInplaceActiveObject->TranslateAccelerators and then return S_OK so explorer does not process the keys as well. This works fine in Windows 2000 but on NT4 it returns a HRESULT
value of 1 (Incorrect Function). I can even call other IOleInplaceActiveObject methods without a problem but not TranslateAccelerators! Microsoft documentation just states that one should use basically the same code as below.
What does 'incorrect function' usually mean? Is this method not implemented?
ContainerWindow is declared as a CAxWindow
STDMETHODIMP CShellView::TranslateAccelerator(LPMSG pMsg)
{
if ((pMsg->message >= WM_KEYFIRST) && (pMsg->message <= WM_KEYLAST))
{
// Activate the control in the container
CComQIPtr<ioleobject, &iid_ioleobject=""> spOleObject;
ContainerWindow.QueryControl(IID_IOleObject, (LPVOID*)&spOleObject);
if (spOleObject)
{
RECT rect;
GetClientRect(hwndContainer, &rect);
spOleObject->DoVerb(OLEIVERB_UIACTIVATE, NULL, (IOleClientSite*)this, 0, hwndContainer, &rect);
}
}
if ( ((pMsg->message == WM_KEYDOWN || pMsg->message == WM_KEYUP) &&
(pMsg->wParam == VK_TAB || pMsg->wParam == VK_DELETE || pMsg->wParam == VK_BACK)))
{
CComQIPtr<ioleinplaceactiveobject, &iid_ioleinplaceactiveobject=""> spInPlaceActiveObject;
ContainerWindow.QueryControl(IID_IOleInPlaceActiveObject, (LPVOID*)&spInPlaceActiveObject);
if (spInPlaceActiveObject)
{
HRESULT hr;
//*******************************************************
// This returns "Incorrect Function" on NT
hr = spInPlaceActiveObject->TranslateAccelerator(pMsg);
return hr;
}
}
return S_FALSE;
}
|
|
|
|
|
Hello,
Anyone know how I can set the read-only attribute on a directory?
I tried ::SetFileAttribute(...); but it doesnt seem to work.
Also, if someone know how I can safedel files (delete them to the trashcan) I would be happy if you told me ...
Cheers,
Henrik
|
|
|
|
|
<<< In the name of GOD >>>
Hi.
If anyone have any notice about using of ActiveX, please write for me.
Thanks.
Hadi Rezaie
|
|
|
|
|
Hi: I have written the follow instruction in VC++ to execute a program in Unix machine:
system("rsh dirIP -l root -n sh path\name parameters -l")
but it open a cmd windows. What can I do to not to show this windows? Thanks
|
|
|
|
|
Hi,
I'm not sure, but i think you must use CreateProcess function, for running the file.
Hadi Rezaie
|
|
|
|
|
Hi
I think You can use pipe line like it [>nul].
Thanks a lot.
|
|
|
|
|
Hello, the codegurus around the world.;)
I'm curious why you use VC++ compiler to write the program in Unix box.
Unix has its own compiler like cc or gcc.
Or you don't know how to use vi editor or EMacs editor?
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
Why assume that someone doesn't *know* about other compilers ? Maybe they prefer VC++ ??
|
|
|
|
|
I prefer don´t tell you why I need it but I`m sure that it is that I need. I know vi perfectly, so I`m sorry but you are confuse cause I don´t need VC++ to write a program in Unix, a piece of program is in Unix and the rest is in VC++. Are you O.K.?
|
|
|
|
|
Hi.
I have a dll that exports a few functions. I called the same function in two threads which is running concurrently in the same process. Does it interfere with each other? Especially the variables defined in the function?
Thanks
Agus
|
|
|
|
|
if you didn't use static or global variable then you ok.
good luck,
Dror
|
|
|
|
|
Whether your code is thread-safe depends entirely on how you wrote it. Stack variables will not cause a problem, since each thread has its own stack. Any static or global variables in the DLL can be access from multiple threads, however, so you should protect access to them with critical sections.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
<<< In the name of GOD >>>
Hi.
My program is in SDI mode, and also i use of CFormView(Form-Based program).
I have Editbox in my document, i want to get data from Editbox, wihout CSDIFormView.
It mean when i have focus in other dialog ....
It's my source code:
// SOURCE IN DIALOG ...
#include "sdiformview.h"
.
.
.
void CMyDialog::Button()
{
CSDIFormView *pV;
CString szText = pV->m_Edit;
AfxMessageBox(szText);
}
Please help me ...
Hadi Rezaie
|
|
|
|