Passfilt.dll
-
Hey guyz, I'm new here. I'm working on rewriting our company's password procedures. Dictionary base and such. All of the actual code for word lookup and such is done. It's now time for me to figure out a way to implement it in a DLL. I've decide to go the way of this example[^]. I've created the dll in VC but I get a massive list of errors which are the following: Compiling... StdAfx.cpp Compiling... beta.cpp H:\code_project\beta\beta.cpp(39) : error C2143: syntax error : missing ';' before '__stdcall' H:\code_project\beta\beta.cpp(39) : error C2501: 'NTSTATUS' : missing storage-class or type specifiers H:\code_project\beta\beta.cpp(41) : error C2065: 'PUNICODE_STRING' : undeclared identifier H:\code_project\beta\beta.cpp(41) : error C2146: syntax error : missing ')' before identifier 'UserName' H:\code_project\beta\beta.cpp(41) : warning C4229: anachronism used : modifiers on data are ignored H:\code_project\beta\beta.cpp(41) : error C2501: 'PasswordChangeNotify' : missing storage-class or type specifiers H:\code_project\beta\beta.cpp(44) : error C2059: syntax error : ')' H:\code_project\beta\beta.cpp(64) : error C2143: syntax error : missing ';' before '{' H:\code_project\beta\beta.cpp(64) : error C2447: missing function header (old-style formal list?) H:\code_project\beta\beta.cpp(96) : error C2146: syntax error : missing ')' before identifier 'UserName' H:\code_project\beta\beta.cpp(96) : warning C4229: anachronism used : modifiers on data are ignored H:\code_project\beta\beta.cpp(100) : error C2059: syntax error : ')' H:\code_project\beta\beta.cpp(127) : error C2143: syntax error : missing ';' before '{' H:\code_project\beta\beta.cpp(127) : error C2447: missing function header (old-style formal list?) Error executing cl.exe. beta.dll - 12 error(s), 2 warning(s) What's up with NTSTATUS giving me errors? Ne ideas? --------------------------------- I'm new here, pardon the n00bing ---------------------------------
-
Hey guyz, I'm new here. I'm working on rewriting our company's password procedures. Dictionary base and such. All of the actual code for word lookup and such is done. It's now time for me to figure out a way to implement it in a DLL. I've decide to go the way of this example[^]. I've created the dll in VC but I get a massive list of errors which are the following: Compiling... StdAfx.cpp Compiling... beta.cpp H:\code_project\beta\beta.cpp(39) : error C2143: syntax error : missing ';' before '__stdcall' H:\code_project\beta\beta.cpp(39) : error C2501: 'NTSTATUS' : missing storage-class or type specifiers H:\code_project\beta\beta.cpp(41) : error C2065: 'PUNICODE_STRING' : undeclared identifier H:\code_project\beta\beta.cpp(41) : error C2146: syntax error : missing ')' before identifier 'UserName' H:\code_project\beta\beta.cpp(41) : warning C4229: anachronism used : modifiers on data are ignored H:\code_project\beta\beta.cpp(41) : error C2501: 'PasswordChangeNotify' : missing storage-class or type specifiers H:\code_project\beta\beta.cpp(44) : error C2059: syntax error : ')' H:\code_project\beta\beta.cpp(64) : error C2143: syntax error : missing ';' before '{' H:\code_project\beta\beta.cpp(64) : error C2447: missing function header (old-style formal list?) H:\code_project\beta\beta.cpp(96) : error C2146: syntax error : missing ')' before identifier 'UserName' H:\code_project\beta\beta.cpp(96) : warning C4229: anachronism used : modifiers on data are ignored H:\code_project\beta\beta.cpp(100) : error C2059: syntax error : ')' H:\code_project\beta\beta.cpp(127) : error C2143: syntax error : missing ';' before '{' H:\code_project\beta\beta.cpp(127) : error C2447: missing function header (old-style formal list?) Error executing cl.exe. beta.dll - 12 error(s), 2 warning(s) What's up with NTSTATUS giving me errors? Ne ideas? --------------------------------- I'm new here, pardon the n00bing ---------------------------------
Just a wild guess, but it looks to me like a missing semicolon ( possibly in a header file ). Hard to tell for sure without seeing the code.
CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!
-
Hey guyz, I'm new here. I'm working on rewriting our company's password procedures. Dictionary base and such. All of the actual code for word lookup and such is done. It's now time for me to figure out a way to implement it in a DLL. I've decide to go the way of this example[^]. I've created the dll in VC but I get a massive list of errors which are the following: Compiling... StdAfx.cpp Compiling... beta.cpp H:\code_project\beta\beta.cpp(39) : error C2143: syntax error : missing ';' before '__stdcall' H:\code_project\beta\beta.cpp(39) : error C2501: 'NTSTATUS' : missing storage-class or type specifiers H:\code_project\beta\beta.cpp(41) : error C2065: 'PUNICODE_STRING' : undeclared identifier H:\code_project\beta\beta.cpp(41) : error C2146: syntax error : missing ')' before identifier 'UserName' H:\code_project\beta\beta.cpp(41) : warning C4229: anachronism used : modifiers on data are ignored H:\code_project\beta\beta.cpp(41) : error C2501: 'PasswordChangeNotify' : missing storage-class or type specifiers H:\code_project\beta\beta.cpp(44) : error C2059: syntax error : ')' H:\code_project\beta\beta.cpp(64) : error C2143: syntax error : missing ';' before '{' H:\code_project\beta\beta.cpp(64) : error C2447: missing function header (old-style formal list?) H:\code_project\beta\beta.cpp(96) : error C2146: syntax error : missing ')' before identifier 'UserName' H:\code_project\beta\beta.cpp(96) : warning C4229: anachronism used : modifiers on data are ignored H:\code_project\beta\beta.cpp(100) : error C2059: syntax error : ')' H:\code_project\beta\beta.cpp(127) : error C2143: syntax error : missing ';' before '{' H:\code_project\beta\beta.cpp(127) : error C2447: missing function header (old-style formal list?) Error executing cl.exe. beta.dll - 12 error(s), 2 warning(s) What's up with NTSTATUS giving me errors? Ne ideas? --------------------------------- I'm new here, pardon the n00bing ---------------------------------
Sometimes the compiler issues C2143 (the 1st error in your output) in lieu of saying it couldn't recognize the preceding identifier. If that's the case, you're missing an
#include
file somewhere. "NTSTATUS
" and "PUNICODE_STRING
" look like items fromwindows.h
, so I would check that you've included it, and properly defined things likeWINVER
to get the definitions you need. Gary R. Wheeler