![]() When lpFileName points to a COM port to open, you must include a colon after the name. This limit is related to how the CreateFile function parses paths. ![]() If * lpFileName is a path, there is a default string size limit of MAX_PATH characters. Pointer to a null-terminated string that specifies the name of the object, such as file, COM port, disk device, or console, to create or open. HANDLECreateFile(LPCTSTRlpFileName, DWORDdwDesiredAccess, DWORDdwShareMode, LPSECURITY_ATTRIBUTESlpSecurityAttributes, DWORDdwCreationDisposition, DWORDdwFlagsAndAttributes, HANDLEhTemplateFile) It returns a handle that you can use to access the object.Ī RAPI version of this function exists, and it is named CeCreateFile (RAPI). This function creates, opens, or truncates a file, COM port, device, service, or console.
0 Comments
Leave a Reply. |