Click here to Skip to main content
16,005,209 members
Home / Discussions / C#
   

C#

 
QuestionNetwork drives Pin
Libor Tinka24-Jan-06 12:01
Libor Tinka24-Jan-06 12:01 
AnswerRe: Network drives Pin
Heath Stewart24-Jan-06 16:19
protectorHeath Stewart24-Jan-06 16:19 
QuestionSetWindowsHookEx fails on WIN98 Pin
ranzask24-Jan-06 10:31
ranzask24-Jan-06 10:31 
AnswerRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
Heath Stewart24-Jan-06 11:41
protectorHeath Stewart24-Jan-06 11:41 
GeneralRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
ranzask24-Jan-06 11:48
ranzask24-Jan-06 11:48 
GeneralRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
Heath Stewart24-Jan-06 11:52
protectorHeath Stewart24-Jan-06 11:52 
GeneralRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
ranzask24-Jan-06 12:11
ranzask24-Jan-06 12:11 
GeneralRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
Heath Stewart24-Jan-06 12:15
protectorHeath Stewart24-Jan-06 12:15 
Assembly.ManifestModule is new in .NET 2.0, so if you're not programming against .NET 2.0 you won't have it.

P/Invoke is the act of calling native functions in .NET. It's what you call defining methods attributed with DllImportAttribute like you're doing.

Please add code to call Marshal.GetLastWin32Error and report what the error is on Win9x. The fact that 0 is returned simply means an error occured but there are many errors that could have occured and without knowing which one it's impossible to help you further.

I would also suggest looking for articles here on Code Project that use SetWindowsHookEx. Sample code works on both 9x and NT at least for the ones I have tested (some time back when I was an editor).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
GeneralRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
ranzask24-Jan-06 12:38
ranzask24-Jan-06 12:38 
GeneralRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
Heath Stewart24-Jan-06 13:08
protectorHeath Stewart24-Jan-06 13:08 
GeneralRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
ranzask24-Jan-06 13:27
ranzask24-Jan-06 13:27 
GeneralRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
Dave Kreskowiak24-Jan-06 14:45
mveDave Kreskowiak24-Jan-06 14:45 
GeneralRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
ranzask24-Jan-06 14:52
ranzask24-Jan-06 14:52 
GeneralRe: SetWindowsHookEx fails on VS Express and work on VS2003 Pin
Heath Stewart24-Jan-06 15:45
protectorHeath Stewart24-Jan-06 15:45 
QuestionDefaultValueAttribute Pin
tylerl24-Jan-06 10:07
tylerl24-Jan-06 10:07 
AnswerRe: DefaultValueAttribute Pin
Heath Stewart24-Jan-06 11:30
protectorHeath Stewart24-Jan-06 11:30 
QuestionSelf-deleting hashtable entries Pin
User 665824-Jan-06 10:02
User 665824-Jan-06 10:02 
AnswerRe: Self-deleting hashtable entries Pin
tylerl24-Jan-06 10:11
tylerl24-Jan-06 10:11 
GeneralRe: Self-deleting hashtable entries Pin
User 665824-Jan-06 12:58
User 665824-Jan-06 12:58 
AnswerRe: Self-deleting hashtable entries Pin
tarasn24-Jan-06 10:14
tarasn24-Jan-06 10:14 
GeneralRe: Self-deleting hashtable entries Pin
Dan Neely24-Jan-06 10:43
Dan Neely24-Jan-06 10:43 
GeneralRe: Self-deleting hashtable entries Pin
tarasn24-Jan-06 11:24
tarasn24-Jan-06 11:24 
GeneralRe: Self-deleting hashtable entries Pin
User 665824-Jan-06 12:56
User 665824-Jan-06 12:56 
GeneralRe: Self-deleting hashtable entries Pin
tarasn24-Jan-06 20:41
tarasn24-Jan-06 20:41 
QuestionManaged DirectX Question. Pin
cvetant24-Jan-06 9:03
cvetant24-Jan-06 9:03 

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.