vladimir_
asked on
Please help me with OpenDriver function
Please describe me, how works OpenDrive function. I tried
to open the driver, such as in Delphi's help, but result was NULL :(
to open the driver, such as in Delphi's help, but result was NULL :(
ASKER
To Sperling :
Source looks like next:
{ HDRVR OpenDriver(LPCWSTR lpDriverName, LPCWSTR lpSectionName,
LONG lParam); }
var
lpDriverName : LPCWSTR;
lpSectionName : LPCWSTR;
lParam : Longint;
ID : HDRVR;
begin
lpDriverName :='ultrasnd.drv';
{if lpSectionName=NULL, it will automatically = Drivers16
(like Delphi's help)}
ID :=OpenDriver(lpDriverName, lpSectionN ame,lParam );
{and ID will be NULL :( )
Source looks like next:
{ HDRVR OpenDriver(LPCWSTR lpDriverName, LPCWSTR lpSectionName,
LONG lParam); }
var
lpDriverName : LPCWSTR;
lpSectionName : LPCWSTR;
lParam : Longint;
ID : HDRVR;
begin
lpDriverName :='ultrasnd.drv';
{if lpSectionName=NULL, it will automatically = Drivers16
(like Delphi's help)}
ID :=OpenDriver(lpDriverName,
{and ID will be NULL :( )
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please post the source you've written, and I'll look into it.
Regards,
Erik.