[ros-dev] Wmi declarations in wmilib stub

Felipe Villarroel fvillarroels at gmail.com
Mon Feb 5 00:00:26 CET 2007


>From winddk.h:

#define NTKERNELAPI DECLSPEC_IMPORT

NTKERNELAPI
NTSTATUS
NTAPI
WmiCompleteRequest(
  IN PDEVICE_OBJECT  DeviceObject,
  IN PIRP  Irp,
  IN NTSTATUS  Status,
  IN ULONG  BufferUsed,
  IN CCHAR  PriorityBoost);

In wmilib.c:

NTSTATUS
NTAPI
WmiCompleteRequest(IN PDEVICE_OBJECT DeviceObject,
                   IN PIRP Irp,
                   IN NTSTATUS Status,
                   IN ULONG BufferUsed,
                   IN CCHAR PriorityBoost)

winddk.h should be modified?

This difference (in the three functions) breaks build (also the
windows ddk define this as NTSTATUS only). (If i redefine the
functions in wmilib.c i get a strange bug in gcc:
[CC]       drivers\wmi\wmilib.c
drivers\wmi\wmilib.c: In function 'WmiSystemControl':
drivers\wmi\wmilib.c:62: internal compiler error: in
rest_of_handle_final, at final.c:3942
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
mingw32-make: *** [obj-i386\drivers\wmi\wmilib.o] Error 1

Best regards,
Logan_V8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winddk_h.diff
Type: application/octet-stream
Size: 536 bytes
Desc: not available
Url : http://www.reactos.org/pipermail/ros-dev/attachments/20070204/1c0b9517/attachment.obj 


More information about the Ros-dev mailing list