EldoS | Feel safer!

Software components for data protection, secure storage and transfer

GetOriginatorProcessName question

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#7084
Posted: 07/28/2008 05:32:08
by Dan Cooper (Basic support level)
Joined: 06/27/2007
Posts: 125

I am calling GetOriginatorProcessName from with the CbFltOpenFileCcallback to deny access to all processes except one, I can identify explorer.exe as this appears correctly but any calls from a process other than explorer result in the WCHAR array being filled with character as follows:

Code
282
0
52428
52428
52428
52428
....


The code I am using is as follows:

Code
WCHAR szProcess[MAX_PATH];
DWORD cbSize = MAX_PATH;
if( !Sender->GetOriginatorProcessName(szProcess, &cbSize) )
<.. snip ..>


Why would this work correctly for explorer.exe and not others?
#7088
Posted: 07/28/2008 09:48:56
by Eugene Mayevski (EldoS Corp.)

Moved to HelpDesk for investigation.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 2962 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!