Jump to content

Recommended Posts

Posted

This function is used to create a unique system I/O control code (IOCTL).

; Ported from C to C#: http://www.emoticode.net/c-sharp/win32-ctl_code-macro-ported-to-c.html
Func _WinAPI_Create_CTL_CODE($iDeviceType, $iFunction, $iMethod, $iAccess)
    Return BitOR(BitShift($iDeviceType, -16), BitShift($iAccess, -14), BitShift($iFunction, -2), $iMethod)
EndFunc   ;==>_WinAPI_Create_CTL_CODE

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

Well so far I have only needed it in one example. Will have to look around for others..

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Already implemented in the UDFs as _WinAPI_IOCTL(). Oh well, at least I got the function right.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...