Здравствуйте, randydom, Вы писали:
R>I use and declare the function FilterConnectCommunicationPort as follows :
R>function FilterConnectCommunicationPort(lpPortName: pWideChar; dwOptions: DWORD;
R> lpContect: pBYTE; wSizeOfContext: WORD; lpSecurityAttributes: PSECURITY_ATTRIBUTES; hPort: PHANDLE): HRESULT;stdcall; external 'FLTLIB.dll';
from MSDN:
HRESULT
WINAPI
FilterConnectCommunicationPort(
IN LPCWSTR lpPortName,
IN DWORD dwOptions,
IN LPVOID lpContext OPTIONAL,
IN DWORD dwSizeOfContext, // <== DWORD
IN LPSECURITY_ATTRIBUTES lpSecurityAttributes OPTIONAL,
OUT HANDLE *hPort
);