Click here to Skip to main content
16,004,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan open Software by Double Clicking the reistrated Filetype - but no reading Pin
tbrake29-Sep-05 1:18
tbrake29-Sep-05 1:18 
QuestionUser message Pin
karmendra_js29-Sep-05 0:43
karmendra_js29-Sep-05 0:43 
AnswerRe: User message Pin
ddmcr29-Sep-05 0:56
ddmcr29-Sep-05 0:56 
GeneralRe: User message Pin
Mircea Puiu29-Sep-05 1:32
Mircea Puiu29-Sep-05 1:32 
GeneralRe: User message Pin
bishbosh0229-Sep-05 12:20
bishbosh0229-Sep-05 12:20 
QuestionHow to get the system volume value using mixer apis Pin
ashwath200529-Sep-05 0:27
ashwath200529-Sep-05 0:27 
AnswerRe: How to get the system volume value using mixer apis Pin
mark novak29-Sep-05 2:21
mark novak29-Sep-05 2:21 
QuestionCreateprocess Issue. Pin
.NetRams29-Sep-05 0:04
.NetRams29-Sep-05 0:04 
Hi,
I need to restrict some html files on my machine needs to be restricted before it open. So, I used Hook process and call Createprocess API, my application filter such html files and I put return TRUE. But it shows me error message as

---------------------------
C:\For Test Different Extensions\1.htm
---------------------------
Windows cannot find 'C:\For Test Different Extensions\1.htm'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.
---------------------------
OK
---------------------------

If I put return FALSE, it shows me error messages as,
---------------------------
F:\differ ext\1.htm
---------------------------
There is not enough free memory to run this program. Quit one or more programs, and then try again.
---------------------------
OK
---------------------------

Let me know your ideas to quit those error messages.

My code is
DWORD WINAPI myCreateProcessW(
LPCWSTR lpApplicationName,
LPWSTR lpCommandLine,
LPSECURITY_ATTRIBUTES lpProcessAttributes,
LPSECURITY_ATTRIBUTES lpThreadAttributes,
BOOL bInheritHandles,
DWORD dwCreationFlags,
LPVOID lpEnvironment,
LPCWSTR lpCurrentDirectory,
LPSTARTUPINFOW lpStartupInfo,
LPPROCESS_INFORMATION lpProcessInformation
)
{
if (IsValidProcess == FALSE)
{
MessageBox (NULL,"ToughGuard Filter this Process","ToughGuard",MB_OK|MB_ICONINFORMATION|
MB_SETFOREGROUND|MB_TOPMOST);

return 0;
}

CreateProcessW( lpApplicationName, lpCommandLine,
lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags,
lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation);

}

Be simple and Be sample.
AnswerRe: Createprocess Issue. Pin
jeffrey@toad.net29-Sep-05 14:46
sussjeffrey@toad.net29-Sep-05 14:46 
QuestionEnable/Disable Menu items Pin
lavate malllik28-Sep-05 23:50
lavate malllik28-Sep-05 23:50 
QuestionPointer to function and templates Pin
vmaltsev28-Sep-05 23:19
vmaltsev28-Sep-05 23:19 
AnswerRe: Pointer to function and templates Pin
prasad_som29-Sep-05 0:05
prasad_som29-Sep-05 0:05 
GeneralRe: Pointer to function and templates Pin
vmaltsev29-Sep-05 0:24
vmaltsev29-Sep-05 0:24 
GeneralRe: Pointer to function and templates Pin
prasad_som29-Sep-05 1:29
prasad_som29-Sep-05 1:29 
AnswerRe: Pointer to function and templates Pin
Steen Krogsgaard30-Sep-05 3:00
Steen Krogsgaard30-Sep-05 3:00 
QuestionMFC object CFormView Pin
karmendra_js28-Sep-05 23:11
karmendra_js28-Sep-05 23:11 
AnswerRe: MFC object CFormView Pin
prasad_som29-Sep-05 0:36
prasad_som29-Sep-05 0:36 
QuestionRe: MFC object CFormView Pin
karmendra_js29-Sep-05 0:54
karmendra_js29-Sep-05 0:54 
AnswerRe: MFC object CFormView Pin
Steen Krogsgaard30-Sep-05 3:07
Steen Krogsgaard30-Sep-05 3:07 
QuestionVirtual function Pin
karmendra_js28-Sep-05 23:06
karmendra_js28-Sep-05 23:06 
AnswerRe: Virtual function Pin
Cedric Moonen28-Sep-05 23:43
Cedric Moonen28-Sep-05 23:43 
Questionvtbl question when derived Pin
followait28-Sep-05 22:44
followait28-Sep-05 22:44 
AnswerRe: vtbl question when derived Pin
Steen Krogsgaard30-Sep-05 3:37
Steen Krogsgaard30-Sep-05 3:37 
QuestionDeclare Byte Pin
Member 216100428-Sep-05 22:36
Member 216100428-Sep-05 22:36 
AnswerRe: Declare Byte Pin
kakan28-Sep-05 22:47
professionalkakan28-Sep-05 22:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.