|
i think WlxLoggedOnSAS of gina dll is called when user press ctrl+alt+del after logon
am i right ?
i also want when user press ctrl+alt+del nothing should be done.what should be the body of WlxLoggedOnSAS?
what it should return?
r00d0034@yahoo.com
|
|
|
|
|
You want to know how to write some code that does nothing ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Hi all,
I used FindExecute() to check whether the user given filename ( eg. c:\abc.ttp ) has an associated file/application (.exe file) to open/print with.
How can I set or tell the OS system to open/print this extention ( eg- .ttp ) to open/print with this associate application ( eg- notepad.exe )??
Like setting register key in register table.. but I want to done in programmatically.
I was trying RegOpenKey, RegCloseKey, RegCreateKey but dont really know how to use them.
Can someone kind enough to give me sample code of how to use those functions please if they are the right functions to use for setting associate files for given file extention?
thanks
|
|
|
|
|
ShellExecute(hwnd, _T("open"), _T(file.txt"), NULL, NULL, SW_SHOWNORMAL);
|
|
|
|
|
thanks but that wasn't what i wanted.
I found the way to set the associate file without showing openwith window.
ways to do it is I used system command,"ASSOC", to set the associate file for particular file.
|
|
|
|
|
Thanks for posting the answer, I missread what you were loking for, I did not know about assoc, thanks for teaching me something new!
|
|
|
|
|
I just started trying to use Doc/View to create an application. My MFC book has an example that doesn't really have any practical applications. I want to create a text editor, and have created good ones with Win32, but I don't understand how to do it in MFC. Where do I put the code in for the Edit Field?
-- Steve
|
|
|
|
|
The easiest way is to use a CEditView as your view class. You can also use a CFormView and base your view class on a dialog template which would contain an edit control.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
How can I hide a Windows Process from Windows Task List. This means that process should not appear in task bar, systems tray or in Task Manager Process's List, even Task Manager Process Count or Threads Count should not show a new Process or Threads running. How can I do this?? Another opposite problem is that, How can I find such Processes/Threads running on my System??? Please any experts do reply and keep the solution very simple.
Arsalan Malik
|
|
|
|
|
The only way to hide a process from the task manager is to... exit the process!
In other words: No way
|
|
|
|
|
Being able to do so would be a security compromise. I don't think it is possible
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
I dont know if it is possible to hide from task manager of NT/XP, but it is certainly possible to make the app hidden when you use CTRL+ALT+DEL in 9x/ME.
I am also looking for such code. I've seen some apps doing this.
Hari Krishnan
|
|
|
|
|
I think it is possible by making a service of your application.
MSDN can provide you with the details of how to make a service of your application.
Don't think you are, know you are...
|
|
|
|
|
Arsalan Malik wrote:
How can I find such Processes/Threads running on my System???
The process view applet which is part of the Visual Studio install (optional in VS7, optional but installs by default in VS6, I think.)
Also check out http://www.sysinternals.com/ntw2k/utilities.shtml[^] for several extremely useful utilities.
|
|
|
|
|
How do you add items to a list box??? I have created a dialog in my app and added a list box to it but I have no idea how to add items to it! Thanks in advance.
Paddy.
|
|
|
|
|
Call the AddString() method.
Dave
|
|
|
|
|
Thanks,
The problem I'm actually having is that I don't know how to reference the listbox that I have created with the dialog editor.
For example:
CListBox* myList;
myList->AddString( str );
Do you know What code I need to use so that myList refers to the listbox that I have created in ID_MYDIALOG? Does this make sense?
Thanks in advance
|
|
|
|
|
Take a look at this article about creating control variables: http://www.codeproject.com/cpp/nogetdlgitem.asp
Dave
|
|
|
|
|
Thanks Dave,
For some reason I can't add any member variables, the "variables" menu item is grayed out when I right click on a control in the dialog editor! It's ok coz I found an easier way of doing it using:
SendDlgItemMessage(hDlg, ID_MYLIST, LB_ADDSTRING, 0, (LPARAM)"Hi there!");
Thanks for the help,
Paddy.
|
|
|
|
|
Call AddString() method;
For example:
myListBox.AddString("Hello!:");
|
|
|
|
|
Hi There,
I have a problem. Everytime my recordset is opened, it makes a connection to my database (Access database). Is there a posibility to make a global pointer to the database? And where should i put it?
Thanks
|
|
|
|
|
I tend to place my single database connection object into my CWinApp derived class. I then access it using AfxGetApp.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
why am I getting runtime error at function < FindExecutable(fname,path,result) > called???
[code]
// To get the file's an appropriate associate execute file
int GetAssociation(FileInfo *fileinfo, CString &Result)
{
//seperating path and file's name
int found;
char fn[_MAX_FNAME];
char p[_MAX_PATH];
strcpy(fn,fileinfo->name);
strcpy(p,fileinfo->path);
LPTSTR fname,path,result;
fname =(LPTSTR) fn;
path = (LPTSTR) p;
//=(LPTSTR)(const char*)result;
// FindExecutable(fn,p,r);
int h =(int)FindExecutable(fname,path,result);
if( h <= 32)
{
Result.Format("%s",result);
found = 1;
}
else
found = 0;
return found;
}[/code]
thanks
|
|
|
|
|
in FindExecutable(fname,path,result) what is "result" set to?
I would suggest in your declaration should set
LPTSTR result = NULL;
then you would easily see what is going on
|
|
|
|
|
From MSDN:lpResult: Address of a buffer to receive the file name when the function returns. You're passing result which is just an uninitialized pointer, it's not a buffer nor is it pointing at a buffer.
--Mike--
Friday's GoogleFight results: Britney Spears 2,190,000 - Erica Weichers 23
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|